diff options
author | Guido Günther <agx@sigxcpu.org> | 2015-10-25 17:52:04 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2015-10-25 17:52:04 +0100 |
commit | 003c7cf60eed303b712f37cdbb8e3f8378d8607a (patch) | |
tree | ba2f49fdde8c9881ad9b8f5450b45409427e90e6 /bin | |
parent | e96a162dffe57d3a5c732e015435d0d7bafef1f4 (diff) |
Update to git-pbuilder 1.37
incorporating our changes
Thanks: Russ Allberry
Diffstat (limited to 'bin')
-rw-r--r-- | bin/git-pbuilder | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/bin/git-pbuilder b/bin/git-pbuilder index bf5e5b8d..c5c621ca 100644 --- a/bin/git-pbuilder +++ b/bin/git-pbuilder @@ -1,5 +1,5 @@ #!/bin/bash -# $Id: git-pbuilder,v 1.35 2015/08/16 23:44:08 eagle Exp $ +# $Id: git-pbuilder,v 1.37 2015/10/25 00:56:37 eagle Exp $ # # git-pbuilder -- Wrapper around pbuilder for git-buildpackage # @@ -239,9 +239,15 @@ if [ -n "$action" ]; then OPTIONS+=( --configfile "$HOME/.pbuilderrc" ) fi + # Check that sudo is installed and try to provide a useful error if it + # is not. if ! which sudo >/dev/null 2>&1; then - echo 'sudo not found in $PATH; you need to install the sudo package' - echo 'and allow the current user to invoke the builder via sudo' >&2 + cat >&2 <<EOE +git-pbuilder: sudo not found in $PATH + +sudo was not found in your path. You need to install the sudo package and +allow the current user to invoke the builder via sudo. +EOE exit 1 fi @@ -428,6 +434,10 @@ will not read the user's F<.pbuilderrc> by default, so in this case B<git-pbuilder> will add an explicit B<--configfile> option pointing to the user's F<.pbuilderrc> if it exists. +If you use B<git-pbuilder> with one of these arguments, you must have +the C<sudo> package installed, and you must configure B<sudo> to let the +current user run the appropriate builder command. + =head1 ENVIRONMENT =over 4 |