summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2010-08-14 10:31:28 +0200
committerGuido Günther <agx@sigxcpu.org>2010-08-14 10:32:31 +0200
commit3d97dfe59fb4a318b6f2f0af24362d5af0cc6407 (patch)
treef94f82fa791b83c422f9650e738c2f7e52201b59
parent07c11d50949828279943e8783ea567991fb25e68 (diff)
downloadgit-buildpackage-3d97dfe59fb4a318b6f2f0af24362d5af0cc6407.tar.gz
git-buildpackage-3d97dfe59fb4a318b6f2f0af24362d5af0cc6407.tar.bz2
git-buildpackage-3d97dfe59fb4a318b6f2f0af24362d5af0cc6407.zip
Check for cowbuilder
The cowbuilder package depends on pbuilder so this is enough.
-rwxr-xr-xgit-pbuilder7
1 files changed, 7 insertions, 0 deletions
diff --git a/git-pbuilder b/git-pbuilder
index 74bab332..afc0f656 100755
--- a/git-pbuilder
+++ b/git-pbuilder
@@ -60,6 +60,13 @@ if [ ! -d "$BASE" ] && [ "$1" != "create" ]; then
exit 1
fi
+# Make sure we have the necessary tools
+if [ ! -x /usr/sbin/cowbuilder ]; then
+ echo "Cowbuilder not found, you need to install the cowbuilder package."
+ exit 1
+fi
+
+
# Set --debian-etch-workaround if DIST is etch. Assume that everything else
# is new enough that it will be fine.
OPTIONS=