1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-24 00:56:15 +01:00

- do_update: print the correct revision when unexpanding the wc

The old "p.linkinfo.lsrcmd5" was completely misleading because update to the
latest rev...
This commit is contained in:
Marcus Huewe 2012-03-28 22:58:09 +02:00
parent 081037e913
commit 25c4cb1cc1

View File

@ -4046,10 +4046,10 @@ Please submit there instead, or use --nodevelproject to force direct submission.
rev = p.linkinfo.xsrcmd5
print 'Expanding to rev', rev
elif opts.unexpand_link and p.islink() and p.isexpanded():
print 'Unexpanding to rev', p.linkinfo.lsrcmd5
p.update(rev, opts.server_side_source_service_files, opts.limit_size)
# XXX: calling update again is redundant (see below)
rev = p.rev
print 'Unexpanding to rev', rev
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)