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

Merge pull request #1031 from dirkmueller/restore_getbinaries_metadata

Stylistic cleanups
This commit is contained in:
Daniel Mach 2022-04-26 14:29:29 +02:00 committed by GitHub
commit f70b41ce32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7516,7 +7516,6 @@ Please submit there instead, or use --nodevelproject to force direct submission.
if architecture is None:
arches = [i.arch for i in repos if repository == i.name]
if package is None:
package_specified = False
package = meta_get_packagelist(apiurl, project, deleted=0)
@ -7541,21 +7540,19 @@ Please submit there instead, or use --nodevelproject to force direct submission.
binaries = get_binarylist(apiurl, project, repository, arch,
package=pac, verbose=True, withccache=opts.ccache)
if not binaries:
print('no binaries found: Either the package %s ' \
'does not exist or no binaries have been built.' % pac, file=sys.stderr)
print('no binaries found: Either the package %s '
'does not exist or no binaries have been built.' % pac, file=sys.stderr)
continue
for i in binaries:
if binary != None and binary != i.name:
continue
# skip source rpms
if not opts.sources and (i.name.endswith('src.rpm') or i.name.endswith('sdeb')):
if not opts.sources and (i.name.endswith('.src.rpm') or i.name.endswith('.sdeb')):
continue
# skip debuginfo rpms
if not opts.debug and ('-debuginfo-' in i.name or '-debugsource-' in i.name):
continue
if not opts.debug:
if i.name.find('-debuginfo-') >= 0:
continue
if i.name.find('-debugsource-') >= 0:
continue
if package_specified:
# if package is specified, download everything into the target dir