summaryrefslogtreecommitdiff
path: root/portato/backend
diff options
context:
space:
mode:
Diffstat (limited to 'portato/backend')
-rw-r--r--portato/backend/flags.py2
-rw-r--r--portato/backend/package.py10
2 files changed, 6 insertions, 6 deletions
diff --git a/portato/backend/flags.py b/portato/backend/flags.py
index d1187c9..a7ba125 100644
--- a/portato/backend/flags.py
+++ b/portato/backend/flags.py
@@ -542,7 +542,7 @@ def set_testing (pkg, enable):
if (enable and line != "-1") or (not enable and line == "-1"):
newTesting[cpv].remove((file, line))
- if (enable and not pkg.is_testing(allowed=True)) or (not enable and pkg.is_testing(allowed=True)):
+ if (enable and not pkg.is_testing(use_keywords=True)) or (not enable and pkg.is_testing(use_keywords=True)):
return
if not enable:
diff --git a/portato/backend/package.py b/portato/backend/package.py
index 92194d5..6ba47fe 100644
--- a/portato/backend/package.py
+++ b/portato/backend/package.py
@@ -82,23 +82,23 @@ class Package:
return True
return False
- def is_testing(self, allowed = False):
+ def is_testing(self, use_keywords = False):
"""Checks whether a package is marked as testing.
- @param allowed: Controls whether possible keywords are taken into account or not.
- @type allowed: boolean
+ @param use_keywords: Controls whether possible keywords are taken into account or not.
+ @type use_keywords: boolean
@returns: True if the package is marked as testing; else False.
@rtype: boolean"""
testArch = "~" + self.get_settings("ARCH")
- if not allowed: # keywords are NOT taken into account
+ if not use_keywords: # keywords are NOT taken into account
if testArch in self.get_env_var("KEYWORDS").split():
return True
return False
else: # keywords are taken into account
status = flags.new_testing_status(self.get_cpv())
- if status == None: # we haven't changed it in any way
+ if status is None: # we haven't changed it in any way
if self._status and testArch+" keyword" in self._status:
return True
return False