aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristopher Harvey <chris@basementcode.com>2010-06-04 13:57:33 -0400
committerChristopher Harvey <chris@basementcode.com>2010-06-04 13:57:33 -0400
commit88dd556582a4ed8f06d84c7f8d95ecce32b727d9 (patch)
treeaa5062c6a742b767a62867d4df28733d3b5504cb /src
parentMerge remote branch 'laptop/fixWalk' into work (diff)
downloadventoo-88dd556582a4ed8f06d84c7f8d95ecce32b727d9.tar.gz
ventoo-88dd556582a4ed8f06d84c7f8d95ecce32b727d9.tar.bz2
ventoo-88dd556582a4ed8f06d84c7f8d95ecce32b727d9.zip
Removed duplicates that sometimes appeard in the tree.
Diffstat (limited to 'src')
-rw-r--r--src/frontend/main.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/frontend/main.py b/src/frontend/main.py
index 85348f2..2c1e63a 100644
--- a/src/frontend/main.py
+++ b/src/frontend/main.py
@@ -283,7 +283,7 @@ class MainWindow(gtk.Window):
childMult = self.currentModule.getMultOf(osp.join(xmlRoot, child.tag))
matches = self.a.match(osp.join(augeasFileRoot, child.tag))
matches.extend(self.a.match(osp.join(augeasFileRoot, child.tag)+'[*]'))
- #TODO: remove duplicates
+ matches = list(set(matches)) #remove dups from matches
listedNodes.extend(matches)
#add leaves if we're missing some required ones (in augeas itself)
@@ -299,7 +299,7 @@ class MainWindow(gtk.Window):
#update the matches, since we have added stuff to augeas, based on previous matches
matches = self.a.match(osp.join(augeasFileRoot, child.tag))
matches.extend(self.a.match(osp.join(augeasFileRoot, child.tag)+'[*]'))
- #TODO: remove duplicates.
+ matches = list(set(matches)) #remove dups from matches
for match in matches:
userData = self.a.get(match) #add all existing data
if userData == None: