[arch-commits] CVS update of core/base/udev (PKGBUILD udev.install)

Tobias Powalowski tpowa at archlinux.org
Tue Mar 18 07:49:10 UTC 2008


    Date: Tuesday, March 18, 2008 @ 03:49:10
  Author: tpowa
    Path: /home/cvs-core/core/base/udev

Modified: PKGBUILD (1.159 -> 1.160) udev.install (1.9 -> 1.10)

'upgpkg: fixed .install message'


--------------+
 PKGBUILD     |    4 ++--
 udev.install |   20 +++++++++-----------
 2 files changed, 11 insertions(+), 13 deletions(-)


Index: core/base/udev/PKGBUILD
diff -u core/base/udev/PKGBUILD:1.159 core/base/udev/PKGBUILD:1.160
--- core/base/udev/PKGBUILD:1.159	Mon Mar 17 16:22:35 2008
+++ core/base/udev/PKGBUILD	Tue Mar 18 03:49:10 2008
@@ -1,9 +1,9 @@
-# $Id: PKGBUILD,v 1.159 2008/03/17 20:22:35 tpowa Exp $
+# $Id: PKGBUILD,v 1.160 2008/03/18 07:49:10 tpowa Exp $
 # Maintainer: Tobias Powalowski <tpowa at archlinux.org>
 # Maintainer: Thomas Bächler <thomas at archlinux.org>
 pkgname=udev
 pkgver=118
-pkgrel=6
+pkgrel=7
 pkgdesc="The userspace dev tools (udev)"
 arch=(i686 x86_64)
 url="http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html"
Index: core/base/udev/udev.install
diff -u core/base/udev/udev.install:1.9 core/base/udev/udev.install:1.10
--- core/base/udev/udev.install:1.9	Sat Nov 24 12:12:47 2007
+++ core/base/udev/udev.install	Tue Mar 18 03:49:10 2008
@@ -1,5 +1,12 @@
 # arg 1:  the new package version
-pre_install() {
+post_install() {
+  sbin/migrate-udev `pwd`
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_upgrade() {
+if [ "$(vercmp $2 100)" -lt 0 ]; then
   echo "ATTENTION UDEV:"
   echo "----------"
   echo "udev >=098 rules syntax has changed, please update your own rules."
@@ -7,16 +14,7 @@
   echo "Please read the instructions carefully before reboot."
   echo "They are located in /etc/udev/readme-udev-arch.txt"
   echo "----------"
-}
-
-post_install() {
-  sbin/migrate-udev `pwd`
-}
-
-# arg 1:  the new package version
-# arg 2:  the old package version
-pre_upgrade() {
-  pre_install $1
+fi
 }
 
 op=$1




More information about the arch-commits mailing list