Skip to content
This repository has been archived by the owner on Jan 11, 2019. It is now read-only.

Commit

Permalink
Now makes a deep copy when appending to tag list
Browse files Browse the repository at this point in the history
  • Loading branch information
Eitan Marder-Eppstein committed Dec 24, 2012
1 parent 1aa7b22 commit 0b55ab9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tags_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
from common import call, call_with_list, BuildException
import subprocess
import time
import copy

def build_tagfile(apt_deps, tags_db, rosdoc_tagfile, current_package, ordered_deps, docspace, ros_distro, tags_location):
#Get the relevant tags from the database
Expand All @@ -48,9 +49,10 @@ def build_tagfile(apt_deps, tags_db, rosdoc_tagfile, current_package, ordered_de
#bad things happen when we do this
for tag in tags_db.get_tags(dep):
if tag['package'] != current_package:
tag_copy = copy.deepcopy(tag)
#build the full path to the tagfiles
tag['location'] = 'file://%s' % os.path.join(tags_location, 'tags', tag['location'])
tags.append(tag)
tag_copy['location'] = 'file://%s' % os.path.join(tags_location, 'tags', tag['location'])
tags.append(tag_copy)

#Add tags built locally in dependency order
for dep in ordered_deps:
Expand Down

0 comments on commit 0b55ab9

Please sign in to comment.