summaryrefslogtreecommitdiff
path: root/sysutils/xentools41
diff options
context:
space:
mode:
authorjym <jym>2012-07-16 22:55:25 +0000
committerjym <jym>2012-07-16 22:55:25 +0000
commitc06542ff50b5d3db7bfffd88ac224ed515c69062 (patch)
treecee51c6f1d8b0304f3d3bf946b2e402f95d3eed4 /sysutils/xentools41
parenteaa92788758915ad9d2676d19fe0f1d3e7e3f177 (diff)
downloadpkgsrc-c06542ff50b5d3db7bfffd88ac224ed515c69062.tar.gz
Do not skip domain's creation when a prehook cmd has been executed.
Reported by Brook Milligan on port-xen@.
Diffstat (limited to 'sysutils/xentools41')
-rw-r--r--sysutils/xentools41/Makefile4
-rw-r--r--sysutils/xentools41/files/xendomains.sh6
2 files changed, 6 insertions, 4 deletions
diff --git a/sysutils/xentools41/Makefile b/sysutils/xentools41/Makefile
index 15b65d52280..9450766477d 100644
--- a/sysutils/xentools41/Makefile
+++ b/sysutils/xentools41/Makefile
@@ -1,11 +1,11 @@
-# $NetBSD: Makefile,v 1.19 2012/05/30 08:29:43 bouyer Exp $
+# $NetBSD: Makefile,v 1.20 2012/07/16 22:55:25 jym Exp $
#
# VERSION is set in version.mk as it is shared with other packages
.include "version.mk"
DISTNAME= xen-${VERSION}
PKGNAME= xentools41-${VERSION}
-PKGREVISION= 7
+PKGREVISION= 8
CATEGORIES= sysutils
MASTER_SITES= http://bits.xensource.com/oss-xen/release/${VERSION}/
diff --git a/sysutils/xentools41/files/xendomains.sh b/sysutils/xentools41/files/xendomains.sh
index 7a8292b6b52..5af00c4ee9d 100644
--- a/sysutils/xentools41/files/xendomains.sh
+++ b/sysutils/xentools41/files/xendomains.sh
@@ -50,8 +50,10 @@ xendomains_start()
cmdline=`printf "${xendomains_prehook}" $domain`
cmd="${cmdline%% *}"
if [ -x "$cmd" ]; then
- $cmdline || echo "Pre-hook \`\`$cmdline'' failed... skipping $domain."
- continue
+ if ! $cmdline; then
+ echo "Pre-hook \`\`$cmdline'' failed... skipping $domain."
+ continue
+ fi
fi
fi