From b4c88233aa6dabd2d9301350a240b8ddcf09255a Mon Sep 17 00:00:00 2001 From: necoro <> Date: Fri, 16 Feb 2007 18:14:08 +0000 Subject: Use icon instead of the asterisk Renamed wrong param name "allowed" to "use_keywords" in package.is_testing() --- portato/backend/package.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'portato/backend/package.py') 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 -- cgit v1.2.3-54-g00ecf