diff options
author | necoro <> | 2007-02-16 18:14:08 +0000 |
---|---|---|
committer | necoro <> | 2007-02-16 18:14:08 +0000 |
commit | b4c88233aa6dabd2d9301350a240b8ddcf09255a (patch) | |
tree | 8fc90d05b8c6a1804df56e0cb897320a02a04dcb /portato/backend/package.py | |
parent | d0b2609768bc854468b56a63cc014650ffe3c51c (diff) | |
download | portato-b4c88233aa6dabd2d9301350a240b8ddcf09255a.tar.gz portato-b4c88233aa6dabd2d9301350a240b8ddcf09255a.tar.bz2 portato-b4c88233aa6dabd2d9301350a240b8ddcf09255a.zip |
Use icon instead of the asterisk
Renamed wrong param name "allowed" to "use_keywords" in package.is_testing()
Diffstat (limited to 'portato/backend/package.py')
-rw-r--r-- | portato/backend/package.py | 10 |
1 files changed, 5 insertions, 5 deletions
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 |