[opensuse-buildservice] [PATCH] print package name before complaining about broken link
Hi, Here is a one-liner patch that resolves an annoyance when updating a project with lots of links. osc will complain about broken links and being able to apply the project diff, but never prints what package is broken. Anas -- --- buildservice/src/clientlib/python/osc/osc/core.py (revision 7339) +++ buildservice/src/clientlib/python/osc/osc/core.py (working copy) @@ -443,6 +443,7 @@ elif state == ' ': # do a simple update p = Package(os.path.join(self.dir, pac)) + print 'Updating %s' % p.name rev = None if expand_link and p.islink() and not p.isexpanded(): rev = p.linkinfo.xsrcmd5 @@ -452,7 +453,6 @@ print 'Unexpanding to rev', rev elif p.islink() and p.isexpanded(): rev = p.latest_rev(); - print 'Updating %s' % p.name p.update(rev) elif state == 'D': # TODO: Package::update has to fixed to behave like svn does -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Hi, On 2009-05-15 10:01:22 -0400, Anas Nashif wrote:
Here is a one-liner patch that resolves an annoyance when updating a project with lots of links. osc will complain about broken links and being able to apply the project diff, but never prints what package is broken.
Thanks for the patch - I just fixed it in svn (r7345) but I used a slightly different solution. Marcus -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (2)
-
Anas Nashif
-
Marcus Hüwe