mirror of
https://github.com/openSUSE/osc.git
synced 2025-08-06 15:43:39 +02:00
- we only need the "<entry />" nodes - otherwise listing files of a linked package fails
This commit is contained in:
@@ -1428,12 +1428,12 @@ def meta_get_filelist(apiurl, prj, package, verbose=False):
|
||||
root = ET.parse(f).getroot()
|
||||
|
||||
if not verbose:
|
||||
return [ node.get('name') for node in root ]
|
||||
return [ node.get('name') for node in root.findall('entry') ]
|
||||
|
||||
else:
|
||||
l = []
|
||||
rev = int(root.get('rev'))
|
||||
for node in root:
|
||||
for node in root.findall('entry'):
|
||||
f = File(node.get('name'),
|
||||
node.get('md5'),
|
||||
int(node.get('size')),
|
||||
|
Reference in New Issue
Block a user