diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2016-10-15 17:50:26 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2016-10-15 19:38:09 +0100 |
commit | a69af4ad7b2a029fd9902df6e4b7ee824151020a (patch) | |
tree | 67876f54e402e2aa69f7e33924c54f6313da76d7 /Debian/Dgit | |
parent | 02bc0d2ca13bda7484c72b30cd20a7e36097da34 (diff) |
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 <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'Debian/Dgit')
-rw-r--r-- | Debian/Dgit/Infra.pm | 9 |
1 files changed, 8 insertions, 1 deletions
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; |