mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-26 01:46:13 +01:00
- reverted commit 9acda37d5f
Now "get_built_files" always returns a tuple which consists of two strings. So no cast is needed anymore.
This commit is contained in:
parent
96183f41f3
commit
4736763c22
@ -269,11 +269,11 @@ def get_built_files(pacdir, pactype):
|
||||
b_built = subprocess.Popen(['find', os.path.join(pacdir, 'ARCHPKGS'),
|
||||
'-name', '*.pkg.tar*'],
|
||||
stdout=subprocess.PIPE).stdout.read().strip()
|
||||
s_built = []
|
||||
s_built = ''
|
||||
else:
|
||||
print('WARNING: Unknown package type \'%s\'.' % pactype, file=sys.stderr)
|
||||
b_built = []
|
||||
s_built = []
|
||||
b_built = ''
|
||||
s_built = ''
|
||||
return s_built, b_built
|
||||
|
||||
def get_repo(path):
|
||||
@ -939,7 +939,7 @@ def main(apiurl, opts, argv):
|
||||
print(b_built)
|
||||
|
||||
if opts.keep_pkgs:
|
||||
for i in str(b_built).splitlines() + str(s_built).splitlines():
|
||||
for i in b_built.splitlines() + s_built.splitlines():
|
||||
shutil.copy2(i, os.path.join(opts.keep_pkgs, os.path.basename(i)))
|
||||
|
||||
if bi_file:
|
||||
|
Loading…
Reference in New Issue
Block a user