mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-30 20:34:38 +01:00
fix pylint: W0612
This commit is contained in:
parent
ee7974aa5c
commit
6ea876bcf7
2 changed files with 3 additions and 4 deletions
|
@ -44,7 +44,7 @@ def pkg_upgrade(repo):
|
|||
Checking packages fro upgrade
|
||||
'''
|
||||
sys.stdout.write("{0}Checking ...{1}".format(color['GREY'], color['ENDC']))
|
||||
PACKAGES_TXT, mirror = RepoInit(repo).fetch()
|
||||
PACKAGES_TXT = RepoInit(repo).fetch()[0]
|
||||
pkgs_for_upgrade = []
|
||||
# name = data[0]
|
||||
# location = data[1]
|
||||
|
@ -55,8 +55,7 @@ def pkg_upgrade(repo):
|
|||
for pkg in installed():
|
||||
index += 1
|
||||
toolbar_width = status(index, toolbar_width, 30)
|
||||
for name, loc, comp, uncomp in zip(data[0], data[1], data[2],
|
||||
data[3]):
|
||||
for name in data[0]:
|
||||
inst_pkg = split_package(pkg)
|
||||
if name: # this tips because some pkg_name is empty
|
||||
repo_pkg = split_package(name[:-4])
|
||||
|
|
|
@ -151,7 +151,7 @@ def main():
|
|||
PackageManager(None).list(args[1], False)
|
||||
elif len(args) == 3 and args[0] == '-c' and args[2] == '--upgrade':
|
||||
if args[1] in repositories and args[1] not in ['slack', 'sbo']:
|
||||
Case('').others_upgrade(args[1])
|
||||
Case('').binary_upgrade(args[1])
|
||||
elif args[1] in ['slack', 'sbo']:
|
||||
upgrade = {
|
||||
'sbo': Case('').sbo_upgrade,
|
||||
|
|
Loading…
Add table
Reference in a new issue