1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-27 02:16:12 +01:00

- fixed core.edit_meta

The change introduced in commit a20c6f5d99
broke the creation of new packages.
This commit is contained in:
Marcus Huewe 2014-02-25 14:06:20 +01:00
parent a20c6f5d99
commit d8e0b82b10

View File

@ -3407,7 +3407,7 @@ def edit_meta(metatype,
# check if the package is a link to a different project # check if the package is a link to a different project
project, package = path_args project, package = path_args
orgprj = ET.fromstring(''.join(data)).get('project') 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('The package is linked from a different project.')
print('If you want to edit the meta of the package create first a branch.') 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))) print(' osc branch %s %s %s' % (orgprj, package, unquote(project)))