~ubuntu-branches/debian/sid/libxml-twig-perl/sid

« back to all changes in this revision

Viewing changes to debian/patches/07_691028.diff

  • Committer: Package Import Robot
  • Author(s): Bart Martens
  • Date: 2014-01-05 22:58:27 UTC
  • mfrom: (1.3.5)
  • Revision ID: package-import@ubuntu.com-20140105225827-k8vqp9bffrupmdj5
Tags: 1:3.44-1
* New upstream release.  Closes: #720457, #721395, #694523.
* debian/control: Updated Homepage.  Closes: #720616.
* debian/patches/series: Added.  Enables patches.
* debian/patches/07_691028.diff: Added.  Closes: #691028.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--- ./tools/xml_grep/xml_grepORIG       2012-05-17 12:24:59.000000000 +0200
 
2
+++ ./tools/xml_grep/xml_grep   2014-01-06 07:58:22.000000000 +0100
 
3
@@ -123,8 +123,10 @@
 
4
      
 
5
 my $t= create_twig( %options);
 
6
 
 
7
-if( @ARGV)
 
8
-  { foreach my $file (@ARGV)
 
9
+my @files = @ARGV;
 
10
+push @files, '-' unless @files; # fixes http://bugs.debian.org/691028
 
11
+if( @files)
 
12
+  { foreach my $file (@files)
 
13
       { $current_file= $file;
 
14
 
 
15
         if( $nb_results_per_file) { $nb_results_left_in_current_file= $nb_results_per_file; }