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

when checking out a project, and a linkerror occurs for one of the packages,

do a checkout in unexpanded form and continue checking out the rest of the
project [bnc#428303]
This commit is contained in:
Dr. Peter Poeml 2008-10-02 15:46:52 +00:00
parent 6a44bef9b5
commit df8ecce631

View File

@ -1069,8 +1069,15 @@ Please submit there instead, or use --nodevelproject to force direct submission.
# all packages
for package in meta_get_packagelist(conf.config['apiurl'], project):
checkout_package(conf.config['apiurl'], project, package,
expand_link=expand_link, prj_dir=project)
try:
checkout_package(conf.config['apiurl'], project, package,
expand_link=expand_link, prj_dir=project)
except oscerr.LinkExpandError, e:
print >>sys.stderr, 'Link cannot be expanded:\n', e
# check out in unexpanded form at least
checkout_package(conf.config['apiurl'], project, package,
expand_link=False, prj_dir=project)
else:
raise oscerr.WrongArgs('Missing argument.\n\n' \
+ self.get_cmd_help('checkout'))