mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-03 18:16:17 +01:00
Skip fetching metadata and logs in the getbinaries command
They have identical names for all downloaded packages and get overwritten by the last downloaded file. Unless we dowload them into subdirs or prefix them with package name, it makes no sense to download them.
This commit is contained in:
parent
d222a38d03
commit
08a70952c0
@ -7524,6 +7524,12 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
for i in binaries:
|
||||
if binary != None and binary != i.name:
|
||||
continue
|
||||
# skip metadata (unless explicitly specified as the `FILE` (== `binary`) argument)
|
||||
if not binary and i.name.startswith("_"):
|
||||
continue
|
||||
# skip logs (unless explicitly specified as the `FILE` (== `binary`) argument)
|
||||
if not binary and i.name.endswith(".log"):
|
||||
continue
|
||||
# skip source rpms
|
||||
if not opts.sources and (i.name.endswith('src.rpm') or i.name.endswith('sdeb')):
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user