summaryrefslogtreecommitdiff
path: root/apt
diff options
context:
space:
mode:
authorSebastian Heinlein <sebi@glatzor.de>2008-08-27 14:48:14 +0200
committerSebastian Heinlein <sebi@glatzor.de>2008-08-27 14:48:14 +0200
commit9f4ab37f5f7736c112fbbb1c157321cdc3c0570f (patch)
tree5ca9ff1b2819070548f72479bea2dbc76edddc2b /apt
parent3415fb5d900cb75ac8159c6afd7301d09ad774ea (diff)
downloadpython-apt-9f4ab37f5f7736c112fbbb1c157321cdc3c0570f.tar.gz
For empt
Diffstat (limited to 'apt')
-rw-r--r--apt/package.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/apt/package.py b/apt/package.py
index 3b26fb2b..3eb692d8 100644
--- a/apt/package.py
+++ b/apt/package.py
@@ -376,16 +376,19 @@ class Package(object):
installedSize = property(installedSize)
def installedFiles(self):
- """ Return the list of files installed on the system by the package """
+ """
+ Return the list of unicode names of the files which have
+ been installed by this package
+ """
if not self.isInstalled:
- return None
+ return []
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)