1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 06:46:15 +01:00

- do_update: use "rev" instead of "lsrcmd5" when running "osc up -u"

This commit is contained in:
Marcus Huewe 2012-03-27 18:38:00 +02:00
parent 8d5cc0a8d6
commit 081037e913

View File

@ -4048,7 +4048,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
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)
rev = p.linkinfo.lsrcmd5
# XXX: calling update again is redundant (see below)
rev = p.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)