mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-26 19:58:50 +01:00
fix code look
This commit is contained in:
parent
f6165ae7a3
commit
1249a58d0f
1 changed files with 4 additions and 4 deletions
|
@ -213,7 +213,7 @@ def pkg_list(binary):
|
|||
page += 50
|
||||
if "sbo" in binary:
|
||||
for pkg in sorted(os.listdir(pkg_path)):
|
||||
if 'SBo' in pkg:
|
||||
if "_SBo" in pkg:
|
||||
index += 1
|
||||
print("{0}{1}:{2} {3}".format(colors.GREY, index, colors.ENDC, pkg))
|
||||
if index == page:
|
||||
|
@ -222,7 +222,7 @@ def pkg_list(binary):
|
|||
page += 50
|
||||
if "slack" in binary:
|
||||
for pkg in sorted(os.listdir(pkg_path)):
|
||||
if 'slack' in pkg:
|
||||
if "_slack" in pkg:
|
||||
index += 1
|
||||
print("{0}{1}:{2} {3}".format(colors.GREY, index, colors.ENDC, pkg))
|
||||
if index == page:
|
||||
|
@ -231,7 +231,7 @@ def pkg_list(binary):
|
|||
page += 50
|
||||
if "noarch" in binary:
|
||||
for pkg in sorted(os.listdir(pkg_path)):
|
||||
if 'noarch' in pkg:
|
||||
if "noarch" in pkg:
|
||||
index += 1
|
||||
print("{0}{1}:{2} {3}".format(colors.GREY, index, colors.ENDC, pkg))
|
||||
if index == page:
|
||||
|
@ -240,7 +240,7 @@ def pkg_list(binary):
|
|||
page += 50
|
||||
if "other" in binary:
|
||||
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
|
||||
else:
|
||||
index += 1
|
||||
|
|
Loading…
Add table
Reference in a new issue