diff --git a/slpkg/binary/dependency.py b/slpkg/binary/dependency.py index eb6cee59..ba3198b2 100644 --- a/slpkg/binary/dependency.py +++ b/slpkg/binary/dependency.py @@ -37,7 +37,7 @@ class Dependencies(object): self.packages = PACKAGES_TXT self.repo = repo self.black = black - self.names = Utils().package_name(PACKAGES_TXT, self.repo) + self.names = Utils().package_name(PACKAGES_TXT) self.dep_results = [] self.meta = _meta_ diff --git a/slpkg/binary/search.py b/slpkg/binary/search.py index df62888a..1cd9c33f 100644 --- a/slpkg/binary/search.py +++ b/slpkg/binary/search.py @@ -39,7 +39,7 @@ def search_pkg(name, repo): try: PACKAGES_TXT = Utils().read_file(_meta_.lib_path + "{0}_repo/" "PACKAGES.TXT".format(repo)) - names = Utils().package_name(PACKAGES_TXT, repo) + names = Utils().package_name(PACKAGES_TXT) blacklist = BlackList().packages(pkgs=names, repo=repo) num_lines = sum(1 for line in PACKAGES_TXT) toolbar_width, index, step = 2, 0, num_lines diff --git a/slpkg/main.py b/slpkg/main.py index 1dda0eaf..83c0a622 100644 --- a/slpkg/main.py +++ b/slpkg/main.py @@ -287,7 +287,7 @@ class ArgParse(object): blacklist.add(self.args[1:-1]) elif (len(self.args) == 3 and self.args[0] in options and self.args[1] == "ALL" and self.args[-1] == flag[1]): - blacklist.remove(blacklist.packages()) + blacklist.remove(blacklist.get_black()) elif (len(self.args) > 2 and self.args[0] in options and self.args[-1] == flag[1]): blacklist.remove(self.args[1:-1]) diff --git a/slpkg/slpkg_update.py b/slpkg/slpkg_update.py index d8cf9787..4f30dbf8 100644 --- a/slpkg/slpkg_update.py +++ b/slpkg/slpkg_update.py @@ -69,7 +69,7 @@ def it_self_update(): __new_version__)] if not os.path.exists(_meta_.build_path): os.makedirs(_meta_.build_path) - Download(_meta_.build_path, dwn_link).start() + Download(_meta_.build_path, dwn_link, repo="").start() os.chdir(_meta_.build_path) slpkg_tar_file = "v" + __new_version__ + ".tar.gz" tar = tarfile.open(slpkg_tar_file) diff --git a/slpkg/utils.py b/slpkg/utils.py index 16029b5d..721c54da 100644 --- a/slpkg/utils.py +++ b/slpkg/utils.py @@ -57,7 +57,7 @@ class Utils(object): file_txt.close() return read_file - def package_name(self, PACKAGES_TXT, repo): + def package_name(self, PACKAGES_TXT): """ Returns list with all the names of packages repository """