From df8ecce6316ad5275f4ac07dd5276fa70a270b4b Mon Sep 17 00:00:00 2001 From: "Dr. Peter Poeml" Date: Thu, 2 Oct 2008 15:46:52 +0000 Subject: [PATCH] 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] --- osc/commandline.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/osc/commandline.py b/osc/commandline.py index 604edffa..a226d8ea 100755 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -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'))