summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Guthrie <colin@mageia.org>2013-10-13 11:29:42 +0100
committerColin Guthrie <colin@mageia.org>2013-10-13 11:38:08 +0100
commit845e19eb8b7535fb1025dd65752312b85ba0e3cf (patch)
tree2983b494814fe0f58322037bdac5d50851dc4c5f
parent63fed6e2954679f497a7cbea383176293dc464e7 (diff)
downloadmgaonline-845e19eb8b7535fb1025dd65752312b85ba0e3cf.tar
mgaonline-845e19eb8b7535fb1025dd65752312b85ba0e3cf.tar.gz
mgaonline-845e19eb8b7535fb1025dd65752312b85ba0e3cf.tar.bz2
mgaonline-845e19eb8b7535fb1025dd65752312b85ba0e3cf.tar.xz
mgaonline-845e19eb8b7535fb1025dd65752312b85ba0e3cf.zip
Add urpmi.update polkit wrapper.
We like to be able to run this command without any user interaction when checking for package updates. It's somewhat awkward to keep the policy and the binary in separate repositories, but keeping this split will prevent pulling in mgaonline during priority updates section of the distro upgrade.
-rw-r--r--NEWS2
-rw-r--r--polkit/org.mageia.urpmi.update.policy.in22
2 files changed, 24 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index b2d29148..19b1aa73 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- re-add polkit wrapper for urpmi.update (mga#11125)
+
Version 2.82 - 12 October 2013, Colin Guthrie
- use polkit for authorisation (mga#11125)
diff --git a/polkit/org.mageia.urpmi.update.policy.in b/polkit/org.mageia.urpmi.update.policy.in
new file mode 100644
index 00000000..dabef903
--- /dev/null
+++ b/polkit/org.mageia.urpmi.update.policy.in
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE policyconfig PUBLIC
+"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
+"http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
+<policyconfig>
+
+ <vendor>Mageia</vendor>
+ <vendor_url>http://www.mageia.org/</vendor_url>
+
+ <action id="org.mageia.urpmi.update.pkexec.run">
+ <_description>Run Mageia Package Media Updater</_description>
+ <_message>Authentication is required to run Mageia Package Media Updater</_message>
+ <icon_name>drakconf</icon_name>
+ <defaults>
+ <allow_any>no</allow_any>
+ <allow_inactive>no</allow_inactive>
+ <allow_active>yes</allow_active>
+ </defaults>
+ <annotate key="org.freedesktop.policykit.exec.path">/usr/libexec/urpmi.update</annotate>
+ <annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
+ </action>
+</policyconfig>