From 08a70952c05f745f1c56ee04740c589f0f89585b Mon Sep 17 00:00:00 2001 From: Daniel Mach Date: Thu, 24 Feb 2022 10:22:55 +0100 Subject: [PATCH] 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. --- osc/commandline.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/osc/commandline.py b/osc/commandline.py index a97c7b40..21782578 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -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