1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-27 02:16:12 +01:00

Merge pull request #526 from lethliel/python3_fix_debquery_decoding

[python3] fix decoding issue in debquery.py
This commit is contained in:
Marco Strigl 2019-04-15 15:10:21 +02:00 committed by GitHub
commit 71770555ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -229,9 +229,9 @@ class DebQuery(packagequery.PackageQuery, packagequery.PackageQueryResult):
@staticmethod
def filename(name, epoch, version, release, arch):
if release:
return b'%s_%s-%s_%s.deb' % (name, version, release, arch)
return '%s_%s-%s_%s.deb' % (name, version, release, arch)
else:
return b'%s_%s_%s.deb' % (name, version, arch)
return '%s_%s_%s.deb' % (name, version, arch)
if __name__ == '__main__':
import sys