Mailinglist Archive: opensuse-buildservice (239 mails)

< Previous Next >
[opensuse-buildservice] [PATCH] print package name before complaining about broken link
  • From: Anas Nashif <nashif@xxxxxxxxxxxxxxx>
  • Date: Fri, 15 May 2009 10:01:22 -0400
  • Message-id: <638F416D-8642-4F83-9144-3C5F72B60AF5@xxxxxxxxxxxxxxx>
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@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups