]> git.donarmstrong.com Git - debhelper.git/commit
split get_make_jobserver_status into two functions
authorJoey Hess <joey@gnu.kitenet.net>
Wed, 28 Oct 2009 20:45:12 +0000 (16:45 -0400)
committerJoey Hess <joey@gnu.kitenet.net>
Wed, 28 Oct 2009 21:02:41 +0000 (17:02 -0400)
commit76719d85abaa3a536af862b0aac2307d735e84d8
tree130293bc255d0fd6840bb7c9e8d39cb5def2d6db
parent4fb1f3b2d64a2faa9d961205b1c32f83028172c8
split get_make_jobserver_status into two functions

I disliked the complexity of the return values, and the boilerplate
code that followed the two calls to the function, to clean/unset
MAKEFLAGS. To solve both, I refactored it into two functions, one simply
tests to see if a jobserver is specified but unavailable, while the other
cleans/unsets MAKEFLAGS.

This loses the ability to pull the jobs-N count out of MAKEFLAGS,
but that was not currently used.
Debian/Debhelper/Buildsystem/makefile.pm
Debian/Debhelper/Dh_Lib.pm
dh
t/buildsystems/buildsystem_tests