1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-26 12:12:11 +01:00

Add missing comment

Follow-up commit for f6f879d.
This commit is contained in:
Marcus Huewe 2017-10-10 16:35:47 +02:00
parent f6f879dac5
commit 0eecdaf830

View File

@ -6677,6 +6677,8 @@ def unpack_srcrpm(srpm, dir, *files):
with open(srpm, 'r') as fsrpm, open(os.devnull, 'w') as devnull:
rpm2cpio_proc = subprocess.Popen(['rpm2cpio'], stdin=fsrpm,
stdout=subprocess.PIPE)
# XXX: shell injection is possible via the files parameter, but the
# current osc code does not use the files parameter.
cpio_proc = subprocess.Popen(['cpio', '-i'] + list(files),
stdin=rpm2cpio_proc.stdout, stderr=devnull)
rpm2cpio_proc.stdout.close()