Skip to content

Commit

Permalink
fix: always run backend as root (RhBug: 1149274)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Lauridsen committed Oct 4, 2014
1 parent 8777a99 commit 9786b65
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/yumexgui/__init__.py
Expand Up @@ -282,7 +282,7 @@ def run(self):
# setup
try:
self.setup_gui()
self.backend.setup(need_root=False)
self.backend.setup(need_root=True)
gtk.main()
except YumexBackendFatalError, e:
self.handle_error(e.err, e.msg)
Expand Down Expand Up @@ -498,7 +498,7 @@ def setup_gui(self):
self.populate_package_cache()
self.notebook.set_active("package")
else:
self.backend.setup(repos=self.current_repos, need_root=False)
self.backend.setup(repos=self.current_repos, need_root=True)
self.notebook.set_active("repo")
self._setup_options()
# setup repository view
Expand Down Expand Up @@ -827,7 +827,7 @@ def populate_package_cache(self, repos=None, show_dupes=False):
progress = self.get_progress()
progress.set_pulse(True)
self.debug("Getting package lists - BEGIN")
self.backend.setup(self.is_offline, repos, need_root=False)
self.backend.setup(self.is_offline, repos, need_root=True)
self.debug("Getting package lists - END")
progress.set_pulse(False)
progress.hide()
Expand Down Expand Up @@ -1502,7 +1502,7 @@ def on_packageFilter_changed(self, widget, active):
if search_text == '': # This is not a search
self._last_filter = widget
self.debug('START: Getting %s packages' % active)
self.backend.setup(need_root=False)
self.backend.setup(need_root=True)
progress = self.get_progress()
progress.set_pulse(True)
cur_filter = active
Expand Down

0 comments on commit 9786b65

Please sign in to comment.