mirror of
https://github.com/openSUSE/osc.git
synced 2025-10-04 16:49:20 +02:00
bugfix for broken canonname
b'name'-b'version'-b'release'-b'arch'.rpm --> name-version-release-arch.rpm * switch shebang to #!/usr/bin/python3 for osc-wrapper.py * switch regex string to b''
This commit is contained in:
@@ -78,9 +78,9 @@ class Fetcher:
|
||||
raise oscerr.APIError('CPIO archive is incomplete '
|
||||
'(see .errors file)')
|
||||
if package == '_repository':
|
||||
n = re.sub(rb'\.pkg\.tar\..z$', b'.arch', hdr.filename)
|
||||
n = re.sub(b'\.pkg\.tar\..z$', b'.arch', hdr.filename)
|
||||
if n.startswith(b'container:'):
|
||||
n = re.sub(rb'\.tar\..z$', b'.tar', hdr.filename)
|
||||
n = re.sub(b'\.tar\..z$', b'.tar', hdr.filename)
|
||||
pac = pkgs[decode_it(n.rsplit(b'.', 1)[0])]
|
||||
pac.canonname = hdr.filename
|
||||
else:
|
||||
|
Reference in New Issue
Block a user