diff --git a/slpkg/__metadata__.py b/slpkg/__metadata__.py index 9a3c3345..3be07990 100644 --- a/slpkg/__metadata__.py +++ b/slpkg/__metadata__.py @@ -69,9 +69,9 @@ def update_repositories(repositories): repositories_list = f.read() f.close() for line in repositories_list.splitlines(): - line = line.lstrip() - if line and not line.startswith("#"): - repositories.append(line.split()[0]) + line = line.lstrip() + if line and not line.startswith("#"): + repositories.append(line.split()[0]) return repositories diff --git a/slpkg/pkg/manager.py b/slpkg/pkg/manager.py index 0b18fecd..743229c2 100644 --- a/slpkg/pkg/manager.py +++ b/slpkg/pkg/manager.py @@ -249,7 +249,7 @@ class PackageManager(object): break if matching == 0: message = "Can't find" - pkg_not_found("", pkg, message, "\n") + pkg_not_found("", self.binary, message, "\n") else: print("\n{0}Total found {1} matching packages.{2}".format( color['GREY'], matching, color['ENDC']))