diff options
author | Daniel Nicoletti <dantti12@gmail.com> | 2012-04-15 02:11:20 -0300 |
---|---|---|
committer | Daniel Nicoletti <dantti12@gmail.com> | 2012-04-15 02:11:20 -0300 |
commit | c9c72949e6fbae0d22fa60a8709dfdc600aba2d7 (patch) | |
tree | e455a97cfd441c643667e4f6cc562aa697a1f35b | |
parent | f60d34b7b1da681f2838d70b67597b0a63e6a283 (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.cpp | 6 |
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]) + |