mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-04 10:36:17 +01:00
- fix for #492369 ("no warning on failed osc expansion")
This commit is contained in:
parent
8b1081a2af
commit
68f5d72061
@ -1456,6 +1456,9 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
if len(pacs) > 1:
|
if len(pacs) > 1:
|
||||||
print 'Updating %s' % p.name
|
print 'Updating %s' % p.name
|
||||||
|
|
||||||
|
if opts.expand_link and p.haslinkerror():
|
||||||
|
raise oscerr.LinkExpandError(p.linkerror())
|
||||||
|
|
||||||
if not rev:
|
if not rev:
|
||||||
if opts.expand_link and p.islink() and not p.isexpanded():
|
if opts.expand_link and p.islink() and not p.isexpanded():
|
||||||
print 'Expanding to rev', p.linkinfo.xsrcmd5
|
print 'Expanding to rev', p.linkinfo.xsrcmd5
|
||||||
|
14
osc/core.py
14
osc/core.py
@ -904,6 +904,20 @@ class Package:
|
|||||||
Returns True if the package is expanded, otherwise False."""
|
Returns True if the package is expanded, otherwise False."""
|
||||||
return self.linkinfo.isexpanded()
|
return self.linkinfo.isexpanded()
|
||||||
|
|
||||||
|
def haslinkerror(self):
|
||||||
|
"""
|
||||||
|
Returns True if the link is broken otherwise False.
|
||||||
|
If the package is not a link it returns False.
|
||||||
|
"""
|
||||||
|
return self.linkinfo.haserror()
|
||||||
|
|
||||||
|
def linkerror(self):
|
||||||
|
"""
|
||||||
|
Returns an error message if the link is broken otherwise None.
|
||||||
|
If the package is not a link it returns None.
|
||||||
|
"""
|
||||||
|
return self.linkinfo.error
|
||||||
|
|
||||||
def update_local_pacmeta(self):
|
def update_local_pacmeta(self):
|
||||||
"""
|
"""
|
||||||
Update the local _meta file in the store.
|
Update the local _meta file in the store.
|
||||||
|
Loading…
Reference in New Issue
Block a user