summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apt/package.py17
-rw-r--r--debian/changelog5
2 files changed, 16 insertions, 6 deletions
diff --git a/apt/package.py b/apt/package.py
index 29eec909..7de35687 100644
--- a/apt/package.py
+++ b/apt/package.py
@@ -1045,12 +1045,17 @@ class Package(object):
Return a list of unicode names of the files which have
been installed by this package
"""
- path = "/var/lib/dpkg/info/%s.list" % self.name
- try:
- with open(path, "rb") as file_list:
- return file_list.read().decode("utf-8").split(u"\n")
- except EnvironmentError:
- return []
+ for name in self.shortname, self.fullname:
+ path = "/var/lib/dpkg/info/%s.list" % name
+ try:
+ with open(path, "rb") as file_list:
+ return file_list.read().decode("utf-8").split(u"\n")
+ except OSError as error:
+ continue
+ except EnvironmentError:
+ return []
+
+ raise error
def get_changelog(self, uri=None, cancel_lock=None):
"""
diff --git a/debian/changelog b/debian/changelog
index 8e5784d7..8b13ed70 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,7 +1,12 @@
python-apt (0.8.8.2) UNRELEASED; urgency=low
+ [ David Prévot ]
* po/no.po: Remove useless translation (superseded by nb.po)
+ [ Julian Andres Klode ]
+ * apt/package.py: Try both filenames for package file lists
+ (Closes: #700715)
+
-- David Prévot <taffit@debian.org> Wed, 28 Nov 2012 21:37:17 -0400
python-apt (0.8.8.1) unstable; urgency=low