fix split

This commit is contained in:
Dimitris Zlatanidis 2015-02-03 06:34:56 +02:00
parent ff4a7c492d
commit 3dcf34afdf

View file

@ -108,7 +108,7 @@ class BuildPackage(object):
''' '''
pass_var = [] pass_var = []
bash_var = subprocess.check_output("set | grep 'SLPKG'", shell=True) bash_var = subprocess.check_output("set | grep 'SLPKG'", shell=True)
for var in bash_var.split(): for var in bash_var.splitlines():
if (var.startswith('SLPKG') and if (var.startswith('SLPKG') and
var.split('_')[-2].lower() == self.prgnam.lower()): var.split('_')[-2].lower() == self.prgnam.lower()):
pass_var.append(var[len('SLPKG') + len(self.prgnam) + 2:]) pass_var.append(var[len('SLPKG') + len(self.prgnam) + 2:])