[Bash-completion-commits] [debian] 18/19: look_for_pod.patch: perldoc: look for .pod in addition to .pm files, thanks to Carl Hayter (Closes: #708173)

David Paleino dapal at debian.org
Wed Mar 19 10:51:46 UTC 2014


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

dapal pushed a commit to branch master
in repository debian.

commit 2555be732359dee202d765bec2332a219b97282a
Author: David Paleino <dapal at debian.org>
Date:   Wed Mar 19 11:42:07 2014 +0100

    look_for_pod.patch: perldoc: look for .pod in addition to .pm files, thanks to Carl Hayter (Closes: #708173)
---
 debian/changelog                     |  4 +++-
 debian/patches/12-look_for_pod.patch | 23 +++++++++++++++++++++++
 debian/patches/series                |  1 +
 3 files changed, 27 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 5cb2aba..a85fdb8 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -34,12 +34,14 @@ bash-completion (1:2.1-3) UNRELEASED; urgency=medium
       awareness of ifconfig, thanks to Thilo Six (Closes: #704832)
     - dont_return_from_sourced_script.patch: avoid problems with shells
       not supporting returning from a sourced script (Closes: #741657)
+    - look_for_pod.patch: perldoc: look for .pod in addition to .pm
+      files, thanks to Carl Hayter (Closes: #708173)
   * debian/extra/debhelper/dh_bash-completion: fix installation process
     when more than one "proper snippet" is being installed, thanks to
     Jean-Michel Vourgère (Closes: #680852)
   * Dropped completions included in util-linux (Closes: #737672)
 
- -- David Paleino <dapal at debian.org>  Wed, 19 Mar 2014 11:38:38 +0100
+ -- David Paleino <dapal at debian.org>  Wed, 19 Mar 2014 11:41:27 +0100
 
 bash-completion (1:2.1-2) unstable; urgency=low
 
diff --git a/debian/patches/12-look_for_pod.patch b/debian/patches/12-look_for_pod.patch
new file mode 100644
index 0000000..c1bc662
--- /dev/null
+++ b/debian/patches/12-look_for_pod.patch
@@ -0,0 +1,23 @@
+From: Carl Hayter <zengargoyle at gmail.com>
+Subject: perldoc: look for .pod in addition to .pm files
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=708173
+Origin: vendor, https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=708173
+Forwarded: no
+
+---
+ helpers/perl |    4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+--- bash-completion.orig/helpers/perl
++++ bash-completion/helpers/perl
+@@ -23,8 +23,8 @@ sub print_modules_real {
+     chdir($dir) or return;
+ 
+     # print each file
+-    foreach my $file (glob('*.pm')) {
+-        $file =~ s/\.pm$//;
++    foreach my $file (glob('*.{pm,pod}')) {
++        $file =~ s/\.(?:pm|pod)$//;
+         my $module = $base . $file;
+         next if $module !~ /^\Q$word/;
+         next if $seen{$module}++;
diff --git a/debian/patches/series b/debian/patches/series
index fb225a2..2b1eaec 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -10,3 +10,4 @@
 09-aptitude_safe-upgrade.patch
 10-ifconfig_locale.patch
 11-dont_return_from_sourced_script.patch
+12-look_for_pod.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/bash-completion/debian.git



More information about the Bash-completion-commits mailing list