From fd728c9f24e12e865f8ab5831aa9bceb44591101 Mon Sep 17 00:00:00 2001 From: Dave Reese Date: Fri, 15 Aug 2014 12:05:35 -0400 Subject: [PATCH 1/2] changed manager.py in packages. Changed pkg_list to sort list --- slpkg/pkg/manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slpkg/pkg/manager.py b/slpkg/pkg/manager.py index b6fbfe23..247674e1 100755 --- a/slpkg/pkg/manager.py +++ b/slpkg/pkg/manager.py @@ -209,7 +209,7 @@ def pkg_list(binary): print # new line at start index, page = 0, 50 if "all" in binary: - for pkg in os.listdir(pkg_path): + for pkg in sorted(os.listdir(pkg_path)): index += 1 print("{0}{1}:{2} {3}".format(colors.GREY, index, colors.ENDC, pkg)) if index == page: From 85a84ae10323ff271a540bb412de8f6c338917a1 Mon Sep 17 00:00:00 2001 From: Dave Reese Date: Fri, 15 Aug 2014 12:28:49 -0400 Subject: [PATCH 2/2] changed manager.py in packages. Changed pkg_list to sort listwith all options --- slpkg/pkg/manager.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/slpkg/pkg/manager.py b/slpkg/pkg/manager.py index 247674e1..d4e757b0 100755 --- a/slpkg/pkg/manager.py +++ b/slpkg/pkg/manager.py @@ -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: