summaryrefslogtreecommitdiff
path: root/dh_builddeb
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2011-09-09 11:17:27 -0400
committerJoey Hess <joey@kitenet.net>2011-09-09 11:17:27 -0400
commite845fcc47b244db30a8d19eaaf927de1d8c0a073 (patch)
tree81a08c988ca293f7ab097fe631ff9c5b88935cc6 /dh_builddeb
parentf3afdd51e82972541cefebb15ec5a1d78ce67215 (diff)
Tighten parsing of DEB_BUILD_OPTIONS.
A future nostripexceptonfullmoon option seems unlikely, but sure, let's be strict. More importantly, let's reuse good code.
Diffstat (limited to 'dh_builddeb')
-rwxr-xr-xdh_builddeb5
1 files changed, 1 insertions, 4 deletions
diff --git a/dh_builddeb b/dh_builddeb
index d187668..77da898 100755
--- a/dh_builddeb
+++ b/dh_builddeb
@@ -63,10 +63,7 @@ else {
$dh{FILENAME}="/$dh{FILENAME}";
}
-my $max_procs=1;
-if (defined $ENV{DEB_BUILD_OPTIONS} && $ENV{DEB_BUILD_OPTIONS}=~/parallel=(\d+)/) {
- $max_procs=$1;
-}
+my $max_procs=get_buildoption("parallel") || 1;
my $processes=1;
my $exit=0;