Skip to content

Commit

Permalink
- fixed core.edit_meta
Browse files Browse the repository at this point in the history
The change introduced in commit a20c6f5
broke the creation of new packages.
  • Loading branch information
marcus-h committed Feb 25, 2014
1 parent a20c6f5 commit d8e0b82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osc/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down

0 comments on commit d8e0b82

Please sign in to comment.