Skip to content

Commit 2f6d8f3

Browse files
amoralejGerrit Code Review
authored andcommitted
Fix output of info-tags-diff for new packages
Currently the output of info-tags-diff is different when new packages are added and when tags are updated. Example, if i add in a commit a new package: - project: python-sphinx tags: test: and update pike-uc tag for existing python-designateclient, the output of info-tags-diff is: python-designateclient ['pike-uc'] python-sphinx {'dependency': None} This patch makes the same information and format for both cases: python-designateclient ['pike-uc'] python-sphinx ['dependency'] Change-Id: I8a401490c8624db48b5137b8f21cac7f8a660fab
1 parent 24de7f3 commit 2f6d8f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rdopkg/actionmods/rdoinfo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def tags_diff(info1, info2):
5959
if pkg2['tags'][tag] != tag1:
6060
updated_tags.append(tag)
6161
else:
62-
updated_tags = pkg2.get('tags')
62+
updated_tags = pkg2.get('tags').keys()
6363
if updated_tags:
6464
diff.append((pkg2['name'], updated_tags))
6565
return diff

0 commit comments

Comments
 (0)