mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-10 06:46:15 +01:00
Merge branch 'handle_empty_releas_in_rpmquery' of https://github.com/lethliel/osc
Do not pass None as a release to RpmQuery.filename. The release might be None in case of a kiwi build (the returned canonname is not used in case of kiwi build).
This commit is contained in:
commit
fb9e64c2f1
@ -240,7 +240,7 @@ class Pac:
|
||||
elif pacsuffix == 'arch':
|
||||
canonname = archquery.ArchQuery.filename(self.mp['name'].encode(), epoch, self.mp['version'].encode(), release, self.mp['arch'].encode())
|
||||
else:
|
||||
canonname = rpmquery.RpmQuery.filename(self.mp['name'].encode(), epoch, self.mp['version'].encode(), release, self.mp['arch'].encode())
|
||||
canonname = rpmquery.RpmQuery.filename(self.mp['name'].encode(), epoch, self.mp['version'].encode(), release or b'0', self.mp['arch'].encode())
|
||||
|
||||
self.mp['canonname'] = decode_it(canonname)
|
||||
# maybe we should rename filename key to binary
|
||||
|
Loading…
Reference in New Issue
Block a user