CROSSTOOLS support

This commit is contained in:
2020-05-04 12:51:01 +03:00
parent 920d13685c
commit 3386c7702c
4 changed files with 253 additions and 232 deletions

View File

@@ -366,7 +366,10 @@ bool procDpkg(const PIString & l) {
PIString dpkgdir;
if (!dpkg_workdir.isEmpty())
dpkgdir = " --admindir=" + dpkg_workdir;
PIString cmd = dpkg + dpkgdir + " -S " + l + " 2> /dev/null";
PIFile::FileInfo fi;
fi.path = l;
PIString cmd = dpkg + dpkgdir + " -S " + fi.name() + " 2> /dev/null";
//PICout(true) << cmd;
PIString vs = execute(cmd);
if (!vs.isEmpty()) {
vs = vs.left(vs.find(":"));