From dab7ea2702857790d5b12ccc893ea3d026b4b18e Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Thu, 12 Apr 2012 18:03:48 +0200 Subject: [PATCH] [RigoDaemon] _update_repositories(): make possible to bypass authorization --- rigo/RigoDaemon/app.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/rigo/RigoDaemon/app.py b/rigo/RigoDaemon/app.py index d0c52fe59..cbd1693d9 100755 --- a/rigo/RigoDaemon/app.py +++ b/rigo/RigoDaemon/app.py @@ -928,12 +928,14 @@ class RigoDaemonService(dbus.service.Object): GLib.idle_add(self.updates_available, update, remove) - def _update_repositories(self, repositories, force, activity, pid): + def _update_repositories(self, repositories, force, activity, pid, + authorized=False): """ Repositories Update execution code. """ - authorized = self._authorize( - pid, PolicyActions.UPDATE_REPOSITORIES) + if not authorized: + authorized = self._authorize( + pid, PolicyActions.UPDATE_REPOSITORIES) if not authorized: write_output("_update_repositories: not authorized", debug=True)