diff options
| author | Sebastian Heinlein <sebi@glatzor.de> | 2008-08-27 14:48:14 +0200 |
|---|---|---|
| committer | Sebastian Heinlein <sebi@glatzor.de> | 2008-08-27 14:48:14 +0200 |
| commit | 9f4ab37f5f7736c112fbbb1c157321cdc3c0570f (patch) | |
| tree | 5ca9ff1b2819070548f72479bea2dbc76edddc2b /apt | |
| parent | 3415fb5d900cb75ac8159c6afd7301d09ad774ea (diff) | |
| download | python-apt-9f4ab37f5f7736c112fbbb1c157321cdc3c0570f.tar.gz | |
For empt
Diffstat (limited to 'apt')
| -rw-r--r-- | apt/package.py | 11 |
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) |
