diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2008-10-28 23:02:35 +0100 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2008-10-28 23:02:35 +0100 |
commit | 667747a0a9df9e6ad21bf7849a8e0ec80e4792f6 (patch) | |
tree | d123f95feabd0c9c05a75b0429ddc50f1f78db4a /portato/backend/portage | |
parent | 4ee82f29f045300268f4bbc0a100c8ed90d15c5f (diff) | |
download | portato-667747a0a9df9e6ad21bf7849a8e0ec80e4792f6.tar.gz portato-667747a0a9df9e6ad21bf7849a8e0ec80e4792f6.tar.bz2 portato-667747a0a9df9e6ad21bf7849a8e0ec80e4792f6.zip |
Remove some trailing whitespaces
Diffstat (limited to '')
-rw-r--r-- | portato/backend/portage/package.py | 8 | ||||
-rw-r--r-- | portato/backend/portage/system.py | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/portato/backend/portage/package.py b/portato/backend/portage/package.py index 0270029..250b491 100644 --- a/portato/backend/portage/package.py +++ b/portato/backend/portage/package.py @@ -156,7 +156,7 @@ class PortagePackage (Package): else: return reason - def get_iuse_flags (self, installed = False, removeForced = True): + def get_iuse_flags (self, installed = False, removeForced = True): if not self.is_in_system(): installed = True @@ -185,7 +185,7 @@ class PortagePackage (Package): deps = portage.dep_check(depstring, None, self._settings.settings, myuse = actual, trees = self._trees) if not deps: # FIXME: what is the difference to [1, []] ? - return [] + return [] if deps[0] == 0: # error raise DependencyCalcError, deps[1] @@ -209,7 +209,7 @@ class PortagePackage (Package): deps = portage.dep_check (depstring, self._settings.vartree.dbapi, self._settings.settings, myuse = actual, trees = self._trees) if not deps: # FIXME: what is the difference to [1, []] ? - return [] + return [] if deps[0] == 0: # error raise DependencyCalcError, deps[1] @@ -311,4 +311,4 @@ class PortagePackage (Package): return portage.pkgcmp(v1[1:],v2[1:]) def matches (self, criterion): - return system.cpv_matches(self.get_cpv(), criterion) + return system.cpv_matches(self.get_cpv(), criterion) diff --git a/portato/backend/portage/system.py b/portato/backend/portage/system.py index e81951e..1fd4782 100644 --- a/portato/backend/portage/system.py +++ b/portato/backend/portage/system.py @@ -297,7 +297,7 @@ class PortageSystem (SystemInterface): if p.get_slot_cp() in checked: return - else: + else: if (not p.is_installed()) and (not add_not_installed): # don't add these packages to checked as we may see them again # - and then we might have add_not_installed being True @@ -310,7 +310,7 @@ class PortageSystem (SystemInterface): if not p.is_installed(): oldList = self.find_packages(p.get_slot_cp(), self.SET_INSTALLED) - if oldList: + if oldList: old = oldList[0] # we should only have one package here - else it is a bug else: oldList = self.sort_package_list(self.find_packages(p.get_cp(), self.SET_INSTALLED)) @@ -356,7 +356,7 @@ class PortageSystem (SystemInterface): if i not in raw_checked or raw_checked[i] == False: raw_checked.update({i : state[1]}) bm = self.get_new_packages([i]) - if not bm: + if not bm: warning(_("Bug? No best match could be found for '%(package)s'. Needed by: '%(cpv)s'."), {"package" : i, "cpv": p.get_cpv()}) else: for pkg in bm: |