From ad930168edf31d64d3e2af1b52becc5662c4f140 Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Wed, 25 Nov 2015 23:00:15 +0000 Subject: runhooks: move (un)loadhooks() and executehooks() to pbuilder-modules. Merging the file means the hooks can use functions from the modules and viceversa safely; otherwise we would need both the scripts to source the other and this is not supported in bash. We can't delete it since it's referenced in pdebuild-internal, and since we can't assure the same pbuilder version outside and inside the chroot we have to be backward-compatible. Otherwise running an old pbuilder with a newer chroot would break badly. Thanks: Holger to notice this broke with the last release --- pbuilder-modules | 73 +++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 72 insertions(+), 1 deletion(-) (limited to 'pbuilder-modules') diff --git a/pbuilder-modules b/pbuilder-modules index 6c2836f..88d38e5 100644 --- a/pbuilder-modules +++ b/pbuilder-modules @@ -17,7 +17,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -. "${BASH_SOURCE%/*}/pbuilder-runhooks" +hooks=tmp/hooks function showhelp () { cat <