mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-02 17:56:15 +01:00
- simplified show_upstream_xsrcmd5 a bit
This commit is contained in:
parent
d646915c04
commit
ec6fab6793
@ -3692,10 +3692,9 @@ def show_upstream_xsrcmd5(apiurl, prj, pac, revision=None, linkrev=None, linkrep
|
||||
et = ET.fromstring(''.join(m))
|
||||
if include_service_files:
|
||||
return et.get('srcmd5')
|
||||
try:
|
||||
# only source link packages have a <linkinfo> element.
|
||||
li_node = et.find('linkinfo')
|
||||
except:
|
||||
|
||||
li_node = et.find('linkinfo')
|
||||
if li_node is None:
|
||||
return None
|
||||
|
||||
li = Linkinfo()
|
||||
|
Loading…
Reference in New Issue
Block a user