Skip to content

Commit 9b0e2ea

Browse files
committed
[link_mirror_project] fix package attr in local links
1 parent a51f43c commit 9b0e2ea

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

link_mirror_project.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,15 @@ def link_package (self, source_apiurl, dest_apiurl, source_proxy_name,
103103
root = tree.getroot ()
104104
link_cicount = root.get ('cicount')
105105
link_project = root.get ('project')
106+
link_package = root.get ('package')
106107
if link_project == None or link_project == source_project:
107-
link_data = '<link package="%s"'
108+
link_data = '<link package="%s"' % link_package
108109
if not link_cicount == None:
109-
print ' (local link with cicount=%s)' % link_cicount
110+
print ' (local link to %s with cicount=%s)' \
111+
% (link_package, link_cicount)
110112
link_data = link_data + ' cicount="%s"' % link_cicount
111113
else:
112-
print ' (local link)'
114+
print ' (local link to %s)' % link_package
113115
link_data = link_data + '/>'
114116
except:
115117
pass

0 commit comments

Comments
 (0)