summaryrefslogtreecommitdiff
path: root/jenkinstool
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2012-08-31 19:45:26 +0100
committerLars Wirzenius <liw@liw.fi>2012-08-31 19:45:26 +0100
commit2792b48c060ca5f9fe96e84314df6912e9d6b6d3 (patch)
tree0a9367b77b09f57a77c3c4e567cac080b42ec6e2 /jenkinstool
parent0a24d6d7df90b72e92884d6d2d16670a52905d79 (diff)
downloadjenkinstool-2792b48c060ca5f9fe96e84314df6912e9d6b6d3.tar.gz
Give pbuilder --allow-untrusted only if it is OK
Diffstat (limited to 'jenkinstool')
-rwxr-xr-xjenkinstool8
1 files changed, 7 insertions, 1 deletions
diff --git a/jenkinstool b/jenkinstool
index 9045794..b5e6a77 100755
--- a/jenkinstool
+++ b/jenkinstool
@@ -548,7 +548,13 @@ temp="$(mktemp -d)"
cd "$temp"
dget -u "$dsc_url"
mkdir result
-sudo pbuilder --build --buildresult result --allow-untrusted \
+if man pbuilder | grep -e --allow-untrusted
+then
+ untrusted="--allow-untrusted"
+else
+ untrusted=""
+fi
+sudo pbuilder --build --buildresult result $untrusted \
--debbuildopts $binopt *.dsc
dput jenkins "result/${sourcepkg}_${version}-1_%(host.arch)s.changes"
cd "$curdir"