[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[SCM] Debian package checker branch, master, updated. 2.2.1-1-g42e0f31



The following commit has been merged in the master branch:
commit 42e0f310dd81e14109a3ea3892bc8c6414371f15
Author: Adam D. Barratt <adam@adam-barratt.org.uk>
Date:   Sun Feb 1 15:05:20 2009 +0000

    Use "local $_" in parse_dpkg_control to avoid stamping on the global version.
    
    Lintian::Tag::Info::_load_tag_data (called from ::New) in turn calls
    read_dpkg_control (and therefore parse_dpkg_control) which stamped on $_.
    
    As we now call Lintian::Tag::Info::new when outputting extended tag
    information using -i, doing so trampled on $_ in the current check script.
    
    * lib/Util.pm:
       + [ADB] Localise a use of $_ in control file parsing to avoid overwriting
         it and leading to uninitialized value warnings in check scripts.
         (Closes: #513795)

diff --git a/debian/changelog b/debian/changelog
index b284c4d..814543b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,12 @@
+lintian (2.2.2) UNRELEASED; urgency=low
+
+  * lib/Util.pm:
+    + [ADB] Localise a use of $_ in control file parsing to avoid overwriting
+      it and leading to uninitialized value warnings in check scripts.
+      (Closes: #513795)
+
+ -- Adam D. Barratt <adam@adam-barratt.org.uk>  Sun, 01 Feb 2009 15:03:44 +0000
+
 lintian (2.2.1) unstable; urgency=low
 
   * Summary of tag changes:
diff --git a/lib/Util.pm b/lib/Util.pm
index 3f5e06d..688f1f0 100644
--- a/lib/Util.pm
+++ b/lib/Util.pm
@@ -69,6 +69,7 @@ sub parse_dpkg_control {
     my $open_section = 0;
     my $last_tag;
 
+    local $_;
     while (<$CONTROL>) {
 	chomp;
 

-- 
Debian package checker


Reply to: