Fix: UnboundLocalError: local variable 'packages' referenced before assignment

This commit is contained in:
Dimitris Zlatanidis 2016-07-14 16:42:11 +03:00
parent 6fc26a3825
commit 169f088052

View file

@ -514,6 +514,7 @@ class PackageManager(object):
def list_lib(self, repo):
"""Return package lists
"""
packages = ""
if repo == "sbo":
if (os.path.isfile(
self.meta.lib_path + "{0}_repo/SLACKBUILDS.TXT".format(