Bug 9392

Summary: typical perl error in if
Product: Branch 3.0 Reporter: Mike Lykov <combr>
Component: menu-develAssignee: Sergey V Turchin <zerg>
Status: CLOSED WONTFIX QA Contact: Andrey Cherepanov <cas>
Severity: normal    
Priority: P2 CC: mike
Version: 3.0   
Hardware: all   
OS: Linux   

Description Mike Lykov 2006-04-11 14:52:43 MSD
в версии menu-devel-0.1.1-alt1
 в скрипте есть такая ошибка:

$ freedesktop2menu.pl xpad "Office/Accessories" xpad.desktop xpad.menu

....
Argument "text" isn't numeric in numeric eq (==) at /usr/bin/freedesktop2menu.pl
line 128.
Argument "x11" isn't numeric in numeric eq (==) at /usr/bin/freedesktop2menu.pl
line 128.

вызвано это применением оператора сравнения  ==  там, где должен быть eq.

если заменить строку 128 , то все становится нормально (без ошибок)

--- freedesktop2menufixed.pl    2006-04-11 15:51:26 +0500
+++ freedesktop2menu.pl 2006-04-11 15:05:19 +0500
@@ -125,7 +125,7 @@
 #  if ($mdk_version >= 8.1) {
   if (1) {
     $_ = $command;
-    if ( $requires == "text" or $requires == "x11" ) {
+    if ( $requires eq "text" or $requires eq "x11" ) {
       if (/.*%u.*/) {
        $accept_url = "true";
        $multiple_files = "false";
Comment 1 Andrey Rahmatullin 2006-04-11 15:31:47 MSD
* Mon Apr 03 2006 Sergey V Turchin <zerg at altlinux dot org> 0.2.0-alt1
- deprecate freedesktop2menu.pl; it produce only empty files now
Comment 2 Mike Lykov 2006-04-11 15:55:09 MSD
придется изменить раздел (продукт)
Comment 3 Michael Shigorin 2008-02-15 19:40:58 MSK
apparently wontfix