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

lintian: r1128 - in trunk: checks debian



Author: rra
Date: 2008-01-15 20:41:45 +0100 (Tue, 15 Jan 2008)
New Revision: 1128

Modified:
   trunk/checks/menu-format
   trunk/debian/changelog
Log:
* checks/menu-format:
  + [RA] Avoid a Perl warning for desktop entries without Exec.

Modified: trunk/checks/menu-format
===================================================================
--- trunk/checks/menu-format	2008-01-11 04:23:05 UTC (rev 1127)
+++ trunk/checks/menu-format	2008-01-15 19:41:45 UTC (rev 1128)
@@ -810,7 +810,7 @@
     #
     # TODO:  Should check quoting and the check special field
     # codes in Exec for desktop files.
-    if ($file =~ m,usr/share/applications/[^/]+$, and $vals{'Exec'} =~ /\S/) {
+    if ($file =~ m,usr/share/applications/[^/]+$, and $vals{'Exec'} and $vals{'Exec'} =~ /\S/) {
         my ($okay, $command) = VerifyCmd ($file, undef, $vals{'Exec'});
         tag "desktop-command-not-in-package", "$file $command"
             unless $okay or $command eq 'kcmshell';

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog	2008-01-11 04:23:05 UTC (rev 1127)
+++ trunk/debian/changelog	2008-01-15 19:41:45 UTC (rev 1128)
@@ -5,6 +5,8 @@
   * checks/fields:
     + [RA] The CDBS ant rules are in class, not rules.  Thanks, Cyril
       Brulebois.  (Closes: #460168)
+  * checks/menu-format:
+    + [RA] Avoid a Perl warning for desktop entries without Exec.
 
   * lib/Spelling.pm:
     + [RA] Add a spelling correction for PostgreSQL and capitalization


Reply to: