mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-16 03:41:11 +01:00
fix split
This commit is contained in:
parent
ff4a7c492d
commit
3dcf34afdf
1 changed files with 1 additions and 1 deletions
|
@ -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:])
|
||||||
|
|
Loading…
Reference in a new issue