changed manager.py in packages. Changed pkg_list to sort listwith all options

This commit is contained in:
Dave Reese 2014-08-15 12:28:49 -04:00
parent fd728c9f24
commit 85a84ae103

View file

@ -217,7 +217,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))
@ -226,7 +226,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))
@ -235,7 +235,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))
@ -244,7 +244,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: