1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-24 19:22:13 +01:00

- hrm newly created packages have no revision...

This commit is contained in:
Marcus Huewe 2010-09-06 17:57:30 +02:00
parent eb17e3ffe1
commit 1043bc8145

View File

@ -1626,7 +1626,7 @@ rev: %s
def __get_files(self, fmeta_root): def __get_files(self, fmeta_root):
f = [] f = []
if fmeta_root.get('rev') is None: if fmeta_root.get('rev') is None and len(fmeta_root.findall('entry')) > 0:
raise oscerr.APIError('missing rev attribute in _files:\n%s' % ''.join(ET.tostring(fmeta_root))) raise oscerr.APIError('missing rev attribute in _files:\n%s' % ''.join(ET.tostring(fmeta_root)))
for i in fmeta_root.findall('entry'): for i in fmeta_root.findall('entry'):
skipped = i.get('skipped') is not None skipped = i.get('skipped') is not None