From 35e01c41659f5be8fc5deae011d61749daa5d6bc Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Fri, 1 Mar 2013 01:36:05 +0100 Subject: [PATCH] dom0/spec: improve PackageKit settings 1. Do not try to tell "no network detected" 2. Do not try to tell "Distribution upgrade detected - Fedora 16" --- rpm_spec/core-dom0.spec | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/rpm_spec/core-dom0.spec b/rpm_spec/core-dom0.spec index 873e9ec9..8a17f926 100644 --- a/rpm_spec/core-dom0.spec +++ b/rpm_spec/core-dom0.spec @@ -64,6 +64,10 @@ Requires: xen-hvm Requires: createrepo Requires: gnome-packagekit Requires: cronie + +# Prevent preupgrade from installation (it pretend to provide distribution upgrade) +Obsoletes: preupgrade < 2.0 +Provides: preupgrade = 2.0 %define _builddir %(pwd) %description @@ -369,6 +373,10 @@ sed -i 's/\/block /\/block.qubes /' /etc/udev/rules.d/xen-backend.rules %triggerin -- xorg-x11-drv-vmmouse mv -f /lib/udev/rules.d/69-xorg-vmmouse.rules /var/lib/qubes/removed-udev-scripts/ 2> /dev/null || : +%triggerin -- PackageKit +# dom0 have no network, but still can receive updates (qubes-dom0-update) +sed -i 's/^UseNetworkHeuristic=.*/UseNetworkHeuristic=false/' /etc/PackageKit/PackageKit.conf + %preun if [ "$1" = 0 ] ; then # no more packages left