summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Nicoletti <dantti12@gmail.com>2012-04-15 02:11:20 -0300
committerDaniel Nicoletti <dantti12@gmail.com>2012-04-15 02:11:20 -0300
commitc9c72949e6fbae0d22fa60a8709dfdc600aba2d7 (patch)
treee455a97cfd441c643667e4f6cc562aa697a1f35b
parentf60d34b7b1da681f2838d70b67597b0a63e6a283 (diff)
aptcc: When on multiarch some packages that should have the :arch appended to the installed list files aren't present so check if the :arch file exist and if not fallback to the old behavior
-rw-r--r--backends/aptcc/apt-intf.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/backends/aptcc/apt-intf.cpp b/backends/aptcc/apt-intf.cpp
index bc84327a..ea91abdc 100644
--- a/backends/aptcc/apt-intf.cpp
+++ b/backends/aptcc/apt-intf.cpp
@@ -1095,6 +1095,12 @@ void AptIntf::emitFiles(PkBackend *backend, const gchar *pi)
":" +
string(parts[PK_PACKAGE_ID_ARCH]) +
".list";
+ if (!FileExists(fName)) {
+ // if the file was not found try without the arch field
+ fName = "/var/lib/dpkg/info/" +
+ string(parts[PK_PACKAGE_ID_NAME]) +
+ ".list";
+ }
} else {
fName = "/var/lib/dpkg/info/" +
string(parts[PK_PACKAGE_ID_NAME]) +