mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-18 10:26:29 +01:00
Fix pylint errors
This commit is contained in:
parent
a911f60881
commit
ed3b275dce
5 changed files with 5 additions and 5 deletions
|
@ -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_
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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])
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue