Bug 27282

Summary: ошибка определения версии cups в /usr/bin/loadconfig
Product: Sisyphus Reporter: Andrey Chichak <Andrey.Chichak>
Component: freenx-serverAssignee: Michael Shigorin <mike>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P3    
Version: unstable   
Hardware: all   
OS: Linux   

Description Andrey Chichak 2012-05-01 10:15:13 MSK
версия cups 1.5.2, как результат bc не может это сравнить с 1.2 и получаем ошибку:

/usr/bin/nxloadconfig: line 696: [: -ne: unary operator expected

как вариант обхода - прописываем неправильный COMMAND_CUPSD, ошибка пропадает вместе с возможностью печатать.
Comment 1 Andrey Chichak 2012-05-01 10:22:39 MSK
версии пакетов:

[root@i node.conf.d]# rpm -qa | grep nx
nx-3.5.0-alt1
freenx-server-0.7.4-alt30
Comment 2 Michael Shigorin 2012-05-06 00:53:17 MSK
-egrep 'CUPS\/1\.' | head -1 | sed 's|CUPS\/||'` >= 1.2" | bc
+egrep 'CUPS\/1\.' | head -1 | sed 's|CUPS\/\(1\.[0-9]\+\).*|\1|'` >= 1.2" | bc
Comment 3 Repository Robot 2012-05-06 02:18:14 MSK
freenx-server-0.7.4-alt31 -> sisyphus:

* Sat May 05 2012 Michael Shigorin <mike@altlinux> 0.7.4-alt31
- fix broken CUPS version test in nxloadconfig (closes: #27282)
- fix broken NX version test there either (closes: #27283)