Bug 23800

Summary: Wrong debug mode check in /usr/bin/mongrel_cluster
Product: Sisyphus Reporter: Nikolay A. Fetisov <naf>
Component: ruby-mongrel_clusterAssignee: nbr <nbr>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P3 CC: cas, imz, led, majioa, mike, rider, stalker, stanv, timonbl4
Version: unstable   
Hardware: all   
OS: Linux   

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)