mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-10 06:46:15 +01:00
- fix "osc up -S" including service files, regression in 0.142 from commit 930974b4ab
This commit is contained in:
parent
cf35fb441f
commit
9e07851310
@ -3410,7 +3410,7 @@ def show_upstream_srcmd5(apiurl, prj, pac, expand=False, revision=None, meta=Fal
|
||||
if include_service_files:
|
||||
try:
|
||||
sinfo = et.find('serviceinfo')
|
||||
if sinfo and sinfo.get('xsrcmd5') and not sinfo.get('error'):
|
||||
if sinfo != None and sinfo.get('xsrcmd5') and not sinfo.get('error'):
|
||||
return sinfo.get('xsrcmd5')
|
||||
except:
|
||||
pass
|
||||
@ -3447,7 +3447,7 @@ def show_upstream_rev(apiurl, prj, pac, revision=None, expand=False, linkrev=Non
|
||||
if include_service_files:
|
||||
try:
|
||||
sinfo = et.find('serviceinfo')
|
||||
if sinfo and sinfo.get('xsrcmd5') and not sinfo.get('error'):
|
||||
if sinfo != None and sinfo.get('xsrcmd5') and not sinfo.get('error'):
|
||||
return sinfo.get('xsrcmd5')
|
||||
except:
|
||||
pass
|
||||
|
Loading…
Reference in New Issue
Block a user