mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-18 10:26:29 +01:00
Merge branch 'master' of https://github.com/dslackw/slpkg
This commit is contained in:
commit
b473e0a202
1 changed files with 5 additions and 5 deletions
|
@ -204,7 +204,7 @@ def pkg_list(binary):
|
||||||
print # new line at start
|
print # new line at start
|
||||||
index, page = 0, 50
|
index, page = 0, 50
|
||||||
if "all" in binary:
|
if "all" in binary:
|
||||||
for pkg in os.listdir(pkg_path):
|
for pkg in sorted(os.listdir(pkg_path)):
|
||||||
index += 1
|
index += 1
|
||||||
print("{0}{1}:{2} {3}".format(colors.GREY, index, colors.ENDC, pkg))
|
print("{0}{1}:{2} {3}".format(colors.GREY, index, colors.ENDC, pkg))
|
||||||
if index == page:
|
if index == page:
|
||||||
|
@ -212,7 +212,7 @@ def pkg_list(binary):
|
||||||
colors.CYAN, colors.ENDC))
|
colors.CYAN, colors.ENDC))
|
||||||
page += 50
|
page += 50
|
||||||
if "sbo" in binary:
|
if "sbo" in binary:
|
||||||
for pkg in os.listdir(pkg_path):
|
for pkg in sorted(os.listdir(pkg_path)):
|
||||||
if 'SBo' in pkg:
|
if 'SBo' in pkg:
|
||||||
index += 1
|
index += 1
|
||||||
print("{0}{1}:{2} {3}".format(colors.GREY, index, colors.ENDC, pkg))
|
print("{0}{1}:{2} {3}".format(colors.GREY, index, colors.ENDC, pkg))
|
||||||
|
@ -221,7 +221,7 @@ def pkg_list(binary):
|
||||||
colors.CYAN, colors.ENDC))
|
colors.CYAN, colors.ENDC))
|
||||||
page += 50
|
page += 50
|
||||||
if "slack" in binary:
|
if "slack" in binary:
|
||||||
for pkg in os.listdir(pkg_path):
|
for pkg in sorted(os.listdir(pkg_path)):
|
||||||
if 'slack' in pkg:
|
if 'slack' in pkg:
|
||||||
index += 1
|
index += 1
|
||||||
print("{0}{1}:{2} {3}".format(colors.GREY, index, colors.ENDC, pkg))
|
print("{0}{1}:{2} {3}".format(colors.GREY, index, colors.ENDC, pkg))
|
||||||
|
@ -230,7 +230,7 @@ def pkg_list(binary):
|
||||||
colors.CYAN, colors.ENDC))
|
colors.CYAN, colors.ENDC))
|
||||||
page += 50
|
page += 50
|
||||||
if "noarch" in binary:
|
if "noarch" in binary:
|
||||||
for pkg in os.listdir(pkg_path):
|
for pkg in sorted(os.listdir(pkg_path)):
|
||||||
if 'noarch' in pkg:
|
if 'noarch' in pkg:
|
||||||
index += 1
|
index += 1
|
||||||
print("{0}{1}:{2} {3}".format(colors.GREY, index, colors.ENDC, pkg))
|
print("{0}{1}:{2} {3}".format(colors.GREY, index, colors.ENDC, pkg))
|
||||||
|
@ -239,7 +239,7 @@ def pkg_list(binary):
|
||||||
colors.CYAN, colors.ENDC))
|
colors.CYAN, colors.ENDC))
|
||||||
page += 50
|
page += 50
|
||||||
if "other" in binary:
|
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:
|
if 'SBo' in pkg or 'slack' in pkg or 'noarch' in pkg:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue