Author: rra
Date: 2008-02-03 22:28:53 +0100 (Sun, 03 Feb 2008)
New Revision: 1159

Modified:
   trunk/checks/infofiles
   trunk/checks/menus
   trunk/debian/changelog
   trunk/testset/scripts/debian/rules
Log:
  + [RA] Fix Perl warnings given a zero-byte maintainer script.  Thanks,
    Thijs Kinkhorst.  (Closes: #460966)
  + [RA] Fix Perl warnings given a zero-byte maintainer script.

Modified: trunk/checks/infofiles
===================================================================
--- trunk/checks/infofiles      2008-02-03 21:22:35 UTC (rev 1158)
+++ trunk/checks/infofiles      2008-02-03 21:28:53 UTC (rev 1159)
@@ -171,6 +171,7 @@
     open(IN, '<', "control/$script") or
        fail("cannot open maintainer script control/$script for reading: $!");
     $interp = <IN>;
+    $interp = '' unless defined $interp;
     if ($interp =~ m,^\#\!\s*/bin/(a|ba|k|pdk)?sh,) {
        $interp = 'sh';
     } elsif ($interp =~ m,^\#\!\s*/usr/bin/perl,) {

Modified: trunk/checks/menus
===================================================================
--- trunk/checks/menus  2008-02-03 21:22:35 UTC (rev 1158)
+++ trunk/checks/menus  2008-02-03 21:28:53 UTC (rev 1159)
@@ -545,6 +545,7 @@
     open(IN, '<', "control/$script") or
        fail("cannot open maintainer script control/$script for reading: $!");
     $interp = <IN>;
+    $interp = '' unless defined $interp;
     if ($interp =~ m,^\#\!\s*/bin/(a|ba|k|pdk)?sh,) {
         $interp = 'sh';
     } elsif ($interp =~ m,^\#\!\s*/usr/bin/perl,) {

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog      2008-02-03 21:22:35 UTC (rev 1158)
+++ trunk/debian/changelog      2008-02-03 21:28:53 UTC (rev 1159)
@@ -27,6 +27,8 @@
     + [RA] Don't issue unknown-intepreter for maintainer scripts with
       weird interpreters.  checks/scripts already handles this and the tag
       wasn't defined.  Thanks, Thijs Kinkhorst.  (Closes: #460964)
+    + [RA] Fix Perl warnings given a zero-byte maintainer script.  Thanks,
+      Thijs Kinkhorst.  (Closes: #460966)
   * checks/init.d{.desc,}:
     + [RA] Downgrade a missing LSB Short-Description keyword to info since
       it's not required for functionality.  Thanks, Petter Reinholdtsen.
@@ -48,6 +50,7 @@
   * checks/menus:
     + [RA] Don't issue unknown-interpreter for maintainer scripts with
       weird interpreters.
+    + [RA] Fix Perl warnings given a zero-byte maintainer script.
   * checks/po-debconf:
     + [RA] Exclude from not-using-po-debconf template files with only the
       shared templates used for coordination with dictionaries-common.

Modified: trunk/testset/scripts/debian/rules
===================================================================
--- trunk/testset/scripts/debian/rules  2008-02-03 21:22:35 UTC (rev 1158)
+++ trunk/testset/scripts/debian/rules  2008-02-03 21:28:53 UTC (rev 1159)
@@ -84,6 +84,8 @@
        cp debian/scripts.conffiles $(tmp)/DEBIAN/conffiles
        install -m 755 debian/postinst $(tmp)/DEBIAN/postinst
        install -m 755 debian/postrm $(tmp)/DEBIAN/postrm
+       touch $(tmp)/DEBIAN/prerm
+       chmod 755 $(tmp)/DEBIAN/prerm
        dpkg-gencontrol -isp
        dpkg --build $(tmp) ..
 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to