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

fix getbinaries --sources

This commit is contained in:
Ludwig Nussel 2010-06-23 14:47:32 +02:00
parent a9b05119d6
commit c6f770cf27

View File

@ -4398,6 +4398,9 @@ Please submit there instead, or use --nodevelproject to force direct submission.
os.makedirs(target_dir, 0755) os.makedirs(target_dir, 0755)
for i in binaries: for i in binaries:
# skip source rpms
if not opts.sources and i.name.endswith('.src.rpm'):
continue
fname = '%s/%s' % (target_dir, i.name) fname = '%s/%s' % (target_dir, i.name)
if os.path.exists(fname): if os.path.exists(fname):
st = os.stat(fname) st = os.stat(fname)