diff options
author | Guido Günther <agx@sigxcpu.org> | 2010-09-27 09:42:48 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2010-09-27 09:42:48 +0200 |
commit | 4b23f2d738890db5d775225d2835cca1e47c5b1f (patch) | |
tree | 6c7b26f2f1fb0713316b152ab8814a3edc60d5dd | |
parent | efaf88c2aee5cbce71b3149124da1c6462e6f297 (diff) |
Warn if not invoked by git-buildpackage
git-pbuilder is supposed to be invoked by git-buildpackage. Otherwise
things like export-dir aren't respected.
Closes: #596625
-rwxr-xr-x | git-pbuilder | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/git-pbuilder b/git-pbuilder index 3d57ffb7..50443c7f 100755 --- a/git-pbuilder +++ b/git-pbuilder @@ -91,6 +91,11 @@ update|create|login) sudo cowbuilder --"$action" --basepath "$BASE" --dist "$DIST" $OPTIONS "$@" exit $? ;; +*) + if [ -z "$GBP_BUILD_DIR" ]; then + echo "WARNING: not invoked by git-buildpackage." >&2 + fi + ;; esac # Now we can finally run pdebuild. The quoting here is tricky, but this |