Bug 23800 - Wrong debug mode check in /usr/bin/mongrel_cluster
Summary: Wrong debug mode check in /usr/bin/mongrel_cluster
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: ruby-mongrel_cluster (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: nbr
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-22 14:52 MSD by Nikolay A. Fetisov
Modified: 2010-07-23 15:33 MSD (History)
9 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nikolay A. Fetisov 2010-07-22 14:52:42 MSD
Для текущего ruby-mongrel_cluster-1.0.5-alt4 в /usr/bin/mongrel_cluster проверка включения режима отладки mongrel в файле конфигурации выполняется как (строки 225-226)

    ! shell_var_is_no "$opt_debug" ||
            args="$args -B"

При явном выключении в файле конфигурации параметра debug (при наличии в нём строки 'debug: no'), mongrel_rails запускается с ключом -B, т.е. с _включённой_ отладкой.

По-видимому, правильный вариант 
   ! shell_var_is_yes "$opt_debug" || args="$args -B"
Comment 1 Repository Robot 2010-07-23 15:33:37 MSD
ruby-mongrel_cluster-1.0.5-alt5 -> sisyphus:

* Fri Jul 23 2010 Alexey I. Froloff <raorn@altlinux> 1.0.5-alt5
- Fixed usage output to match expected arguments (closes: #23799)
- Fixed debug option processing (closes: #23800)