diff options
author | Joey Hess <joey@kitenet.net> | 2011-09-09 11:17:27 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-09-09 11:17:27 -0400 |
commit | e845fcc47b244db30a8d19eaaf927de1d8c0a073 (patch) | |
tree | 81a08c988ca293f7ab097fe631ff9c5b88935cc6 /dh_builddeb | |
parent | f3afdd51e82972541cefebb15ec5a1d78ce67215 (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-x | dh_builddeb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/dh_builddeb b/dh_builddeb index d1876687..77da898f 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; |