summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSérgio Almeida <mephx.x@gmail.com>2009-07-29 17:49:34 +0100
committerSérgio Almeida <mephx.x@gmail.com>2009-07-29 17:49:34 +0100
commita9f6822384c8bfa171dc266ba012678e99034ba7 (patch)
tree265fd803b8041992fdda69245565636099051020
parentuprofile with no arguments now defaults do folder (diff)
downloaduselect-a9f6822384c8bfa171dc266ba012678e99034ba7.tar.gz
uselect-a9f6822384c8bfa171dc266ba012678e99034ba7.tar.bz2
uselect-a9f6822384c8bfa171dc266ba012678e99034ba7.zip
fixed link family bug
-rw-r--r--umodule.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/umodule.py b/umodule.py
index ae4f818..7f5ff24 100644
--- a/umodule.py
+++ b/umodule.py
@@ -174,7 +174,6 @@ class Sym(Action):
return options
-
def get_targets(self, links, option, family = []):
"""
Builds a nested list of targets.
@@ -187,8 +186,10 @@ class Sym(Action):
family.append(parent)
return family
else:
- family = []
+ for member in family:
+ family.pop()
elif isinstance(link, list) and isinstance(link[0], int):
+
if option == link[0]:
family.append(link)
return True