mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-30 20:34:38 +01:00
changed manager.py in packages. Changed pkg_list to sort listwith all options
This commit is contained in:
parent
fd728c9f24
commit
85a84ae103
1 changed files with 4 additions and 4 deletions
|
@ -217,7 +217,7 @@ def pkg_list(binary):
|
|||
colors.CYAN, colors.ENDC))
|
||||
page += 50
|
||||
if "sbo" in binary:
|
||||
for pkg in os.listdir(pkg_path):
|
||||
for pkg in sorted(os.listdir(pkg_path)):
|
||||
if 'SBo' in pkg:
|
||||
index += 1
|
||||
print("{0}{1}:{2} {3}".format(colors.GREY, index, colors.ENDC, pkg))
|
||||
|
@ -226,7 +226,7 @@ def pkg_list(binary):
|
|||
colors.CYAN, colors.ENDC))
|
||||
page += 50
|
||||
if "slack" in binary:
|
||||
for pkg in os.listdir(pkg_path):
|
||||
for pkg in sorted(os.listdir(pkg_path)):
|
||||
if 'slack' in pkg:
|
||||
index += 1
|
||||
print("{0}{1}:{2} {3}".format(colors.GREY, index, colors.ENDC, pkg))
|
||||
|
@ -235,7 +235,7 @@ def pkg_list(binary):
|
|||
colors.CYAN, colors.ENDC))
|
||||
page += 50
|
||||
if "noarch" in binary:
|
||||
for pkg in os.listdir(pkg_path):
|
||||
for pkg in sorted(os.listdir(pkg_path)):
|
||||
if 'noarch' in pkg:
|
||||
index += 1
|
||||
print("{0}{1}:{2} {3}".format(colors.GREY, index, colors.ENDC, pkg))
|
||||
|
@ -244,7 +244,7 @@ def pkg_list(binary):
|
|||
colors.CYAN, colors.ENDC))
|
||||
page += 50
|
||||
if "other" in binary:
|
||||
for pkg in os.listdir(pkg_path):
|
||||
for pkg in sorted(os.listdir(pkg_path)):
|
||||
if 'SBo' in pkg or 'slack' in pkg or 'noarch' in pkg:
|
||||
pass
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue