summaryrefslogtreecommitdiff
path: root/apt/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'apt/package.py')
-rw-r--r--apt/package.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/apt/package.py b/apt/package.py
index 3b26fb2b..f63c13de 100644
--- a/apt/package.py
+++ b/apt/package.py
@@ -376,16 +376,17 @@ class Package(object):
installedSize = property(installedSize)
def installedFiles(self):
- """ Return the list of files installed on the system by the package """
- if not self.isInstalled:
- return None
+ """
+ Return the list of unicode names of the files which have
+ been installed by this package
+ """
path = "/var/lib/dpkg/info/%s.list" % self.name
try:
list = open(path)
- files = list.read().split("\n")
+ files = list.read().decode().split("\n")
list.close()
except:
- return None
+ return []
return files
installedFiles = property(installedFiles)