From a69af4ad7b2a029fd9902df6e4b7ee824151020a Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 15 Oct 2016 17:50:26 +0100 Subject: Infra: dgit-infrastructure has, and uses, its own copies of the perl modules This avoids introducing a versioned dependency between dgit and dgit-infrastructure (and also makes it easier to test cross-version compatibility). Signed-off-by: Ian Jackson --- Debian/Dgit/Infra.pm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'Debian') diff --git a/Debian/Dgit/Infra.pm b/Debian/Dgit/Infra.pm index 1f2c702..eff460b 100644 --- a/Debian/Dgit/Infra.pm +++ b/Debian/Dgit/Infra.pm @@ -5,6 +5,13 @@ package Debian::Dgit::Infra; use strict; use warnings; -# push @INC, q{usr/share/dgit/infra/perl5}; ###substituted### +# Scripts and programs which are going to `use Debian::Dgit' but which +# live in dgit-infrastructure (ie are installed with install-infra) +# should `use Debian::Dgit::Infra' first. All this module does is +# adjust @INC so that the script gets the version of the script from +# the dgit-infrastructure package (which is installed in a different +# location and may be a different version). + +# unshift @INC, q{/usr/share/dgit/infra/perl5}; ###substituted### 1; -- cgit v1.2.3