summaryrefslogtreecommitdiff
path: root/portato/backend/system_interface.py
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2008-07-09 22:00:49 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2008-07-09 22:00:49 +0200
commit01fa05da0d80aab1aa1526a5302b3a798d0f0179 (patch)
tree90d4d694eb62fd707a64e19d6ac26a6f125d16ee /portato/backend/system_interface.py
parent09f790063e70515fbcb828676f639740b1c67885 (diff)
downloadportato-01fa05da0d80aab1aa1526a5302b3a798d0f0179.tar.gz
portato-01fa05da0d80aab1aa1526a5302b3a798d0f0179.tar.bz2
portato-01fa05da0d80aab1aa1526a5302b3a798d0f0179.zip
Renamed generic package sets
Diffstat (limited to '')
-rw-r--r--portato/backend/system_interface.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/portato/backend/system_interface.py b/portato/backend/system_interface.py
index c118f6d..1cb0ed1 100644
--- a/portato/backend/system_interface.py
+++ b/portato/backend/system_interface.py
@@ -11,6 +11,11 @@
# Written by René 'Necoro' Neumann <necoro@necoro.net>
class SystemInterface (object):
+
+ SET_ALL = "__portato_all__"
+ SET_TREE = "__portato_tree__"
+ SET_INSTALLED = "__portato_installed__"
+ SET_UNINSTALLED = "__portato_uninstalled__"
def has_set_support (self):
"""Signals, whether this backend supports sets.
@@ -90,7 +95,7 @@ class SystemInterface (object):
raise NotImplementedError
- def find_packages (self, key, pkgSet = "all", masked = False, with_version = True, only_cpv = False):
+ def find_packages (self, key, pkgSet = SET_ALL, masked = False, with_version = True, only_cpv = False):
"""This returns a list of packages matching the key.
As key, it is allowed to use basic regexps (".*") and the normal package specs. But not a combination
of them.