[arch-commits] Commit in dkms/trunk (PKGBUILD hook.sh)
Sébastien Luttringer
seblu at archlinux.org
Sat Apr 16 21:10:42 UTC 2016
Date: Saturday, April 16, 2016 @ 23:10:42
Author: seblu
Revision: 265066
upgpkg: dkms 2.2.0.3+git151023-10
Modified:
dkms/trunk/PKGBUILD
dkms/trunk/hook.sh
----------+
PKGBUILD | 4 ++--
hook.sh | 9 +++++++++
2 files changed, 11 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-04-16 19:35:11 UTC (rev 265065)
+++ PKGBUILD 2016-04-16 21:10:42 UTC (rev 265066)
@@ -4,7 +4,7 @@
pkgname=dkms
pkgver=2.2.0.3+git151023
-pkgrel=9
+pkgrel=10
pkgdesc='Dynamic Kernel Modules System'
arch=('any')
url='http://linux.dell.com/dkms/'
@@ -26,7 +26,7 @@
'82d520c39c99c34977e48b313a189c6c'
'e6eada07fc3a56a491e14dfeafec746f'
'57d90c89a221c52d78d0ec3953fe2fcf'
- '297fa3df7770d46aca6b0457ddb7cfad')
+ '11ab1f9d2b602cbf4817abce110681c1')
prepare() {
cd dkms
Modified: hook.sh
===================================================================
--- hook.sh 2016-04-16 19:35:11 UTC (rev 265065)
+++ hook.sh 2016-04-16 21:10:42 UTC (rev 265066)
@@ -91,6 +91,15 @@
install_tree='/usr/lib/modules'
source /etc/dkms/framework.conf
+ # check source_tree and install_tree exists
+ local path
+ for path in "$source_tree" "$install_tree"; do
+ if [[ ! -d "$path" ]]; then
+ echo "==> Missing mandatory directory: $path. Exiting!"
+ return 1
+ fi
+ done
+
# parse stdin paths to guess what do do
while read -r path; do
if [[ "/$path" =~ ^$source_tree/([^/]+)-([^/]+)/dkms\.conf$ ]]; then
More information about the arch-commits
mailing list