Fix unused var

This commit is contained in:
Dimitris Zlatanidis 2015-07-05 07:42:36 +03:00
parent 02054aa3c7
commit e6524b4825
2 changed files with 2 additions and 4 deletions

View file

@ -48,7 +48,7 @@ def pkg_upgrade(repo, skip):
# location = data[1]
# size = data[2]
# unsize = data[3]
data = repo_data(PACKAGES_TXT, 2000, repo, flag="")
data = repo_data(PACKAGES_TXT, repo, flag="")
for pkg in installed():
status(0.0003)
inst_pkg = split_package(pkg)

View file

@ -71,10 +71,8 @@ class Patches(object):
if self.version == "stable":
self.PACKAGES_TXT = URL(mirrors("PACKAGES.TXT",
"patches/")).reading()
self.step = 20
else:
self.PACKAGES_TXT = URL(mirrors("PACKAGES.TXT", "")).reading()
self.step = 700
def start(self):
"""
@ -135,7 +133,7 @@ class Patches(object):
"""
Store and return packages for upgrading
"""
data = repo_data(self.PACKAGES_TXT, self.step, "slack", self.flag)
data = repo_data(self.PACKAGES_TXT, "slack", self.flag)
black = BlackList().packages(pkgs=data[0], repo="slack")
for name, loc, comp, uncomp in zip(data[0], data[1], data[2], data[3]):
repo_pkg_name = split_package(name)[0]