Bug 9392 - typical perl error in if
Summary: typical perl error in if
Status: CLOSED WONTFIX
Alias: None
Product: Branch 3.0
Classification: Archive
Component: menu-devel (show other bugs)
Version: 3.0
Hardware: all Linux
: P2 normal
Assignee: Sergey V Turchin
QA Contact: Andrey Cherepanov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-11 14:52 MSD by Mike Lykov
Modified: 2008-02-15 20:01 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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