summaryrefslogtreecommitdiff
path: root/portato/backend
diff options
context:
space:
mode:
Diffstat (limited to 'portato/backend')
-rw-r--r--portato/backend/flags.py8
-rw-r--r--portato/backend/portage/system.py4
2 files changed, 6 insertions, 6 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 ():
diff --git a/portato/backend/portage/system.py b/portato/backend/portage/system.py
index eae8465..7470fdc 100644
--- a/portato/backend/portage/system.py
+++ b/portato/backend/portage/system.py
@@ -23,7 +23,7 @@ from . import sets as syssets
from .package import PortagePackage
from .settings import PortageSettings
from ..system_interface import SystemInterface
-from ...helper import debug, info, warning, unique_array
+from ...helper import debug, info, warning
class PortageSystem (SystemInterface):
"""This class provides access to the portage-system."""
@@ -193,7 +193,7 @@ class PortageSystem (SystemInterface):
t += self.find_packages(search_key, self.SET_INSTALLED, only_cpv=True)
if t:
- t = unique_array(t)
+ t = list(set(t))
return self.find_best(t, only_cpv)
return None