Date: Monday, January 19, 2015 @ 12:16:08
  Author: eworm
Revision: 126213

make the daemon exit after time

This is a workaround for packagekit. It does not notice changes made by
pacman while daemon is running.
https://github.com/hughsie/PackageKit/issues/15

Modified:
  packagekit/trunk/PKGBUILD

----------+
 PKGBUILD |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2015-01-19 10:47:39 UTC (rev 126212)
+++ PKGBUILD    2015-01-19 11:16:08 UTC (rev 126213)
@@ -4,7 +4,7 @@
 pkgbase='packagekit'
 pkgname=('packagekit' 'python2-packagekit' 'python-packagekit')
 pkgver=1.0.3
-pkgrel=8
+pkgrel=9
 pkgdesc='A system designed to make installation and updates of packages easier'
 arch=('i686' 'x86_64')
 url='http://www.packagekit.org/'
@@ -47,6 +47,11 @@
        patch -Np1 < ${srcdir}/0009-alpm-pk_backend_sync_thread.patch
        patch -Np1 < 
${srcdir}/0010-alpm-clean-logic-in-pk_alpm_transaction_packages.patch
 
+       # packagekit does not know about updates made by pacman while daemon is 
running
+       # https://github.com/hughsie/PackageKit/issues/15
+       # For now we just exit the daemon... It will launch with a clean status 
if required.
+       sed -i '/ExecStart=/s/$/ --timed-exit/' data/packagekit.service.in
+
        # copy after patching but before fixing for python2
        cp -r "${srcdir}/PackageKit-${pkgver}" 
"${srcdir}/PackageKit-${pkgver}-python3"
 

Reply via email to