summaryrefslogtreecommitdiff
path: root/portato/backend/package.py
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2008-05-21 20:19:41 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2008-05-21 20:19:41 +0200
commitadb8acd0b90992a8281494c76d30a529bde45fea (patch)
tree568be900b3d4eab14422147f099536cc2ede9c57 /portato/backend/package.py
parent6337bce4fd5ca7a7e7c16602fe7136bd6fdf4786 (diff)
downloadportato-adb8acd0b90992a8281494c76d30a529bde45fea.tar.gz
portato-adb8acd0b90992a8281494c76d30a529bde45fea.tar.bz2
portato-adb8acd0b90992a8281494c76d30a529bde45fea.zip
Ported package
Diffstat (limited to '')
-rw-r--r--portato/backend/package.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/portato/backend/package.py b/portato/backend/package.py
index 4dc439a..6d73a42 100644
--- a/portato/backend/package.py
+++ b/portato/backend/package.py
@@ -88,13 +88,15 @@ class Package (_Package):
if f[0] == "~":
f = f[1:]
removed = True
+
+ invf = flags.invert_use_flag(f)
if f[0] == '-':
- if flags.invert_use_flag(f) in i_flags and not (removed and flags.invert_use_flag(f) in m_flags):
- i_flags.remove(flags.invert_use_flag(f))
+ if invf in i_flags and not (removed and invf in m_flags):
+ i_flags.remove(invf)
elif f not in i_flags:
- if not (removed and flags.invert_use_flag(f) in m_flags):
+ if not (removed and invf in m_flags):
i_flags.append(f)
return i_flags
@@ -270,7 +272,7 @@ class Package (_Package):
raise NotImplementedError
- def is_testing(self, use_keywords = False):
+ def is_testing(self, use_keywords = True):
"""Checks whether a package is marked as testing.
@param use_keywords: Controls whether possible keywords are taken into account or not.