diff options
| author | Sebastian Heinlein <sebi@glatzor.de> | 2008-08-29 13:39:50 +0200 |
|---|---|---|
| committer | Sebastian Heinlein <sebi@glatzor.de> | 2008-08-29 13:39:50 +0200 |
| commit | 12a80ede382e83bec4ebc7ff22aa25c97f809dd2 (patch) | |
| tree | d4b506dab97ecd58952f6cf0dd55c37f6a9fe332 /apt/package.py | |
| parent | 3415fb5d900cb75ac8159c6afd7301d09ad774ea (diff) | |
| parent | e260803ebac317471ad185e2efffd1c4b09c887c (diff) | |
| download | python-apt-12a80ede382e83bec4ebc7ff22aa25c97f809dd2.tar.gz | |
Push train work
Diffstat (limited to 'apt/package.py')
| -rw-r--r-- | apt/package.py | 11 |
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) |
