diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2009-04-07 23:48:55 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2009-04-07 23:48:55 +0200 |
commit | f2b0f5db230e8fdfec3f5fa0fcc53766582daf6b (patch) | |
tree | 9c837c9a9e7e32f904021e46a519e46885152b11 /portato/backend/flags.py | |
parent | 4ae9bd9a9c6ffca3301858b3c8d95ca4cf2b78dc (diff) | |
download | portato-f2b0f5db230e8fdfec3f5fa0fcc53766582daf6b.tar.gz portato-f2b0f5db230e8fdfec3f5fa0fcc53766582daf6b.tar.bz2 portato-f2b0f5db230e8fdfec3f5fa0fcc53766582daf6b.zip |
Removed the obsolete single unittest and the unique_array function
Diffstat (limited to '')
-rw-r--r-- | portato/backend/flags.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/portato/backend/flags.py b/portato/backend/flags.py index 8f5723d..f23e245 100644 --- a/portato/backend/flags.py +++ b/portato/backend/flags.py @@ -17,7 +17,7 @@ import itertools as itt from subprocess import Popen, PIPE # needed for grep from . import system, is_package -from ..helper import debug, error, warning, unique_array +from ..helper import debug, error, warning CONFIG = { "usefile" : "portato", @@ -298,7 +298,7 @@ def set_use_flag (pkg, flag): except ValueError: # not in UseFlags newUseFlags[cpv].append((path, -1, flag, False)) - newUseFlags[cpv] = unique_array(newUseFlags[cpv]) + newUseFlags[cpv] = list(set(newUseFlags[cpv])) debug("newUseFlags: %s", str(newUseFlags)) def remove_new_use_flags (cpv): @@ -497,7 +497,7 @@ def set_masked (pkg, masked = True): file = path link_neq[cpv].append((file, "-1")) - link_neq[cpv] = unique_array(link_neq[cpv]) + link_neq[cpv] = list(set(link_neq[cpv])) debug("new_(un)masked: %s",str(link_neq)) def remove_new_masked (cpv): @@ -700,7 +700,7 @@ def set_testing (pkg, enable): file = CONST.testing_path() newTesting[cpv].append((file, "-1")) - newTesting[cpv] = unique_array(newTesting[cpv]) + newTesting[cpv] = list(set(newTesting[cpv])) debug("newTesting: %s",str(newTesting)) def write_testing (): |