1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-11 16:36:14 +01:00

download debugsource with --debug rather than --source

This commit is contained in:
Ludwig Nussel 2010-12-23 10:32:50 +01:00
parent 497f97fc85
commit 6be91ceda0

View File

@ -4975,11 +4975,11 @@ Please submit there instead, or use --nodevelproject to force direct submission.
if not opts.sources:
if i.name.endswith('.src.rpm'):
continue
if i.name.find('-debugsource-') >= 0:
continue
if not opts.debug:
if i.name.find('-debuginfo-') >= 0:
continue
if i.name.find('-debugsource-') >= 0:
continue
fname = '%s/%s' % (target_dir, i.name)
if os.path.exists(fname):
st = os.stat(fname)