From d8e0b82b10c6442ae5d62730c0016a41a1516f0f Mon Sep 17 00:00:00 2001 From: Marcus Huewe Date: Tue, 25 Feb 2014 14:06:20 +0100 Subject: [PATCH] - fixed core.edit_meta The change introduced in commit a20c6f5d99287f529d2a290b2953cd41b027efff broke the creation of new packages. --- osc/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osc/core.py b/osc/core.py index 0b86a435..c4854997 100644 --- a/osc/core.py +++ b/osc/core.py @@ -3407,7 +3407,7 @@ def edit_meta(metatype, # check if the package is a link to a different project project, package = path_args orgprj = ET.fromstring(''.join(data)).get('project') - if project != orgprj: + if orgprj is not None and project != orgprj: print('The package is linked from a different project.') print('If you want to edit the meta of the package create first a branch.') print(' osc branch %s %s %s' % (orgprj, package, unquote(project)))