[libconfig-model-perl] 01/01: Added patch to fix debci (Closes: #785528)

dod at debian.org dod at debian.org
Mon May 18 19:41:30 UTC 2015


This is an automated email from the git hooks/post-receive script.

dod pushed a commit to branch master
in repository libconfig-model-perl.

commit 9eaa424ecc6505c98767c6ca1d6be5988e973e00
Author: Dominique Dumont <dod at debian.org>
Date:   Mon May 18 21:41:00 2015 +0200

    Added patch to fix debci (Closes: #785528)
---
 debian/patches/fix-debci | 21 +++++++++++++++++++++
 debian/patches/series    |  1 +
 2 files changed, 22 insertions(+)

diff --git a/debian/patches/fix-debci b/debian/patches/fix-debci
new file mode 100644
index 0000000..3ee3961
--- /dev/null
+++ b/debian/patches/fix-debci
@@ -0,0 +1,21 @@
+Description: Fix debci by altering available_models
+ Quoting Niko, Config::Model::Lister::available_models() argument needs
+ to be different when running under autopkgtest to force looking in @INC
+ instead of lib/. Basing it on the ADTTMP environment variable is probably
+ the best choice.
+ .
+ So @INC is used when ADTTMP is true-ish. Its value is not verified.
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=785528
+Forwarded: NA
+Author: dod
+--- a/lib/Config/Model/Lister.pm
++++ b/lib/Config/Model/Lister.pm
+@@ -22,7 +22,7 @@
+ 
+     my ( %categories, %appli_info, %applications );
+     my %done_cat;
+-    my @dir_to_scan = $test ? qw/lib/ : @INC;
++    my @dir_to_scan = ( $ENV{ADTTMP} or not $test ) ? @INC : qw/lib/;
+ 
+     foreach my $dir ( map { glob("$_/Config/Model/*.d") } @dir_to_scan ) {
+         my ($cat) = ( $dir =~ m!.*/([\w\-]+)\.d! );
diff --git a/debian/patches/series b/debian/patches/series
index 1c5676b..1e5c50e 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 #fix-cryptic-message
+fix-debci
 remove-call-to-env
 add_dh_config

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libconfig-model-perl.git



More information about the Pkg-perl-cvs-commits mailing list