mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-10 06:46:15 +01:00
- fix broken update after commit with service run
- fix up -S on unexpanded checkouts
This commit is contained in:
parent
95febe963b
commit
eb6a42713d
@ -3871,7 +3871,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
print 'Unexpanding to rev', p.linkinfo.lsrcmd5
|
||||
p.update(rev, opts.server_side_source_service_files, opts.limit_size)
|
||||
rev = p.linkinfo.lsrcmd5
|
||||
elif p.islink() and p.isexpanded():
|
||||
elif (p.islink() and p.isexpanded()) or opts.server_side_source_service_files:
|
||||
rev = p.latest_rev(include_service_files=opts.server_side_source_service_files)
|
||||
|
||||
p.update(rev, opts.server_side_source_service_files, opts.limit_size)
|
||||
|
11
osc/core.py
11
osc/core.py
@ -1336,11 +1336,13 @@ class Package:
|
||||
sfilelist = ET.parse(f).getroot()
|
||||
s = sfilelist.find('serviceinfo')
|
||||
if s.get('code') == "running":
|
||||
print '.',
|
||||
sys.stdout.write('.')
|
||||
sys.stdout.flush()
|
||||
else:
|
||||
break
|
||||
self.update()
|
||||
print " updated"
|
||||
print ""
|
||||
rev=self.latest_rev()
|
||||
self.update(rev=rev)
|
||||
|
||||
|
||||
def __write_storelist(self, name, data):
|
||||
@ -3351,8 +3353,7 @@ def show_upstream_rev(apiurl, prj, pac, revision=None, expand=False, linkrev=Non
|
||||
et = ET.fromstring(''.join(m))
|
||||
if include_service_files:
|
||||
try:
|
||||
if et.find('serviceinfo') and et.find('serviceinfo').get('xsrcmd5'):
|
||||
return et.find('serviceinfo').get('xsrcmd5')
|
||||
return et.find('serviceinfo').get('xsrcmd5')
|
||||
except:
|
||||
pass
|
||||
return et.get('rev')
|
||||
|
Loading…
Reference in New Issue
Block a user