| Summary: | typical perl error in if | ||
|---|---|---|---|
| Product: | Branch 3.0 | Reporter: | Mike Lykov <combr> |
| Component: | menu-devel | Assignee: | 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 | ||
* 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 придется изменить раздел (продукт) apparently wontfix |
в версии 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";