debian: Only notify dom0 on apt-get post hook; don't update package index

There is a possiblilty of the apt-get post hook getting triggered
more than once for each apt-get session, therefore we only notify
dom0 that there are no updates available and do not perform an
apt-get update.

The qubes-update-check.service will still perform an update so even
if the dist-upgrade failed and there was actually more files to update
the qubes-update-check.serivce would then at some point notify dom0
about those updates being available
This commit is contained in:
Jason Mehring 2015-05-01 01:35:36 -04:00
parent 4a7b355490
commit 293aab9e6a
No known key found for this signature in database
GPG Key ID: 1BB9B1FB5A4C6DAD

View File

@ -1,2 +1 @@
#DPkg::Post-Invoke {"echo 'invoked' >> /tmp/apt-post-invoke; systemctl start qubes-update-check.service";};
DPkg::Post-Invoke {"systemctl start qubes-update-check.service";};
DPkg::Post-Invoke {"/usr/lib/qubes/qrexec-client-vm dom0 qubes.NotifyUpdates /bin/sh -c 'echo 0'";};