diff options
author | Lars Wirzenius <liw@liw.fi> | 2012-08-31 19:45:26 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2012-08-31 19:45:26 +0100 |
commit | 2792b48c060ca5f9fe96e84314df6912e9d6b6d3 (patch) | |
tree | 0a9367b77b09f57a77c3c4e567cac080b42ec6e2 /jenkinstool | |
parent | 0a24d6d7df90b72e92884d6d2d16670a52905d79 (diff) | |
download | jenkinstool-2792b48c060ca5f9fe96e84314df6912e9d6b6d3.tar.gz |
Give pbuilder --allow-untrusted only if it is OK
Diffstat (limited to 'jenkinstool')
-rwxr-xr-x | jenkinstool | 8 |
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" |