Mailinglist Archive: opensuse-buildservice (275 mails)

< Previous Next >
[opensuse-buildservice] Re: [PATCH] - do_update: rewrote code path for expanding/unexpanding a wc
On Wed, Mar 28, 2012 at 10:45:34PM +0200, OBS osc wrote:
From: Marcus Huewe <suse-tux@xxxxxx>

The way for determining the revision was completely "wrong".
- rev = show_upstream_xsrcmd5(p.apiurl, p.prjname,, revision=p.rev, linkrev='base')
- p.mark_frozen()
- else:
- p.update(rev, opts.server_side_source_service_files,
- rev = p.linkinfo.xsrcmd5
+ rev = p.latest_rev(expand=True)
print 'Expanding to rev', rev
elif opts.unexpand_link and p.islink() and p.isexpanded():
- p.update(rev, opts.server_side_source_service_files,
- # XXX: calling update again is redundant (see below)
- rev = p.rev
+ rev = show_upstream_rev(p.apiurl, p.prjname,,
print 'Unexpanding to rev', rev

That can't work if you didn't check out the latest version, but some
older rev.

Really, you can check out an expanded link (by supplying the xsrcmd5)
and then it should be possible to switch to the unexpanded view.
That's what the linkrev's lsrcmd5 is for. If you're not using it
you're doing somethink wrong ;)


Michael Schroeder mls@xxxxxxx
SUSE LINUX Products GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-buildservice+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups