mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-02-05 08:46:20 +01:00
Fix print list file package contents
This commit is contained in:
parent
866e828c56
commit
97b90efd01
1 changed files with 4 additions and 3 deletions
|
@ -298,11 +298,12 @@ class PackageManager(object):
|
|||
"""Print the Slackware packages contents
|
||||
"""
|
||||
for pkg in self.binary:
|
||||
print pkg
|
||||
find = find_package(pkg + self.meta.sp, self.meta.pkg_path)
|
||||
if find:
|
||||
package = Utils().read_file(self.meta.pkg_path + "".join(find))
|
||||
for line in package.splitlines():
|
||||
print(line).strip()
|
||||
package = Utils().read_file(
|
||||
self.meta.pkg_path + "".join(find[0]))
|
||||
print(package)
|
||||
print("") # new line per file
|
||||
else:
|
||||
message = "Can't dislpay"
|
||||
|
|
Loading…
Add table
Reference in a new issue