diff options
Diffstat (limited to '')
-rw-r--r-- | portato/gui/queue.py | 6 | ||||
-rw-r--r-- | portato/gui/utils.py | 4 | ||||
-rw-r--r-- | portato/gui/windows/main.py | 12 |
3 files changed, 11 insertions, 11 deletions
diff --git a/portato/gui/queue.py b/portato/gui/queue.py index 610bc49..66d6054 100644 --- a/portato/gui/queue.py +++ b/portato/gui/queue.py @@ -144,7 +144,7 @@ class EmergeQueue: pkg = self._get_pkg_from_cpv(cpv, unmask) if not pkg.is_installed(): old = system.find_packages(pkg.get_slot_cp(), system.SET_INSTALLED) - if old: + if old: old = old[0] # assume we have only one there cmp = pkg.compare_version(old) if cmp > 0: @@ -260,7 +260,7 @@ class EmergeQueue: for block in self.blocks[type]: for c in self.iters[type]: if system.cpv_matches(c, block): - blocked = ", ".join(self.blocks[type][block]) + blocked = ", ".join(self.blocks[type][block]) warning("'%s' is blocked by: %s", c, blocked) self.remove_with_children(self.iters[type][c], False) raise BlockedException(c, blocked) @@ -428,7 +428,7 @@ class EmergeQueue: its = {} for k in queue: list += ["="+k] - if self.tree: + if self.tree: its.update({k : self.iters["install"][k]}) return list, its diff --git a/portato/gui/utils.py b/portato/gui/utils.py index 661af6b..8bf076e 100644 --- a/portato/gui/utils.py +++ b/portato/gui/utils.py @@ -25,7 +25,7 @@ import gtk # some backend things from ..backend import flags, system, set_system -from ..helper import debug, info, set_log_level +from ..helper import debug, info, set_log_level from ..constants import APP, LOCALE_DIR # parser @@ -72,7 +72,7 @@ class Config (ConfigParser): @see: L{flags.set_config()}""" flagCfg = { - "usefile": self.get("useFile"), + "usefile": self.get("useFile"), "usePerVersion" : self.get_boolean("usePerVersion"), "maskfile" : self.get("maskFile"), "maskPerVersion" : self.get_boolean("maskPerVersion"), diff --git a/portato/gui/windows/main.py b/portato/gui/windows/main.py index 562e603..8728d57 100644 --- a/portato/gui/windows/main.py +++ b/portato/gui/windows/main.py @@ -133,7 +133,7 @@ class PackageTable: self.instantChange = instantChange self.type = type - if not self.queue or not self.doEmerge: + if not self.queue or not self.doEmerge: self.emergeBtn.set_sensitive(False) self.unmergeBtn.set_sensitive(False) @@ -533,7 +533,7 @@ class PackageTable: if not store[path][0]: prefix = "-" - pkg.set_use_flag(prefix+flag) + pkg.set_use_flag(prefix+flag) if self.instantChange: self._update_keywords(True, update = True) @@ -551,7 +551,7 @@ class MainWindow (Window): LOG_PAGE ) = range(3) - def __init__ (self, splash = None): + def __init__ (self, splash = None): """ Build up window. @@ -1199,9 +1199,9 @@ class MainWindow (Window): self.tray.set_tooltip(title) window_title_update(title) - if title is None or not self.cfg.get_boolean("updateConsole", "GUI"): + if title is None or not self.cfg.get_boolean("updateConsole", "GUI"): title = _("Console") - else: + else: title = ("%s (%s)") % (_("Console"), title) tlength = int(self.cfg.get("titlelength", "GUI")) @@ -1588,7 +1588,7 @@ class MainWindow (Window): Show the list of updateble packages. """ - def __update(): + def __update(): def cb_idle_show(packages): """ Callback opening the menu when the calculation is finished. |