@davidep, I will need some help (disclosure: Iām not a developer ).
I was about to ask if the system commands (yum, rpmā¦) executed by the server-manager were aware of the locale context: now I know they use the language set at web login.
It is working almost well with rpm
, as it gives a clean output, but there are some cases (nethserver-ftp) where it does not give accurate information on whatrequires a specific package.
Help with regex
Now Iām trying with /usr/bin/yum -C --assumeno remove $@
. If you can help on getting a proper regex pattern to match all the packages shown on Keeping package: lines (regardless of language), because I am tempted to the ugliness of forcing the language at runtime .
ā> Keeping package: nethserver-samba-2.0.0-1.ns7.noarch due to nethserver-samba-audit-1.1.0-1.ns7.noarch
Some troublemakers:
// translation pattern: msgstr āā> č½Æ件å
%s.%s.%s.%s-%s å°č¢« %sā
// translation pattern: msgstr āā> äæēč½Æ件å
ļ¼%s ē±äŗ %sā
ā> č½Æ件å
nethserver-mysql.noarch.0.1.1.0-1.ns7 å°č¢« å é¤
ā> äæēč½Æ件å
ļ¼nethserver-mysql-1.1.0-1.ns7.noarch ē±äŗ nethserver-samba-audit-1.1.0-1.ns7.noarch
// translation pattern: msgstr āā> A(z) %s.%s %s:%s-%s csomaggal a kƶvetkezÅ tƶrtĆ©nik: %sā
// translation pattern: msgstr āā> A(z) %s Csomag megtartĆ”sa a kƶvetkezÅ miatt: %sā
ā> A(z) nethserver-mysql.noarch 0:1.1.0-1.ns7 csomaggal a kƶvetkezÅ tƶrtĆ©nik: tƶrƶlve
ā> A(z) nethserver-mysql-1.1.0-1.ns7.noarch Csomag megtartĆ”sa a kƶvetkezÅ miatt: nethserver-samba-audit-1.1.0-1.ns7.noarch
ā Manteniendo paquete: nethserver-samba-2.0.0-1.ns7.noarch debido a nethserver-samba-audit-1.1.0-1.ns7.noarch
ā> BalĆÄek nethserver-samba-2.0.0-1.ns7.noarch ponechĆ”n, protože: nethserver-samba-audit-1.1.0-1.ns7.noarch
Help with permissions
If a shell script under /usr/libexec/nethserver/
needs to run under sudo
when called from server-manager, do I need to set an acl on the file (for running tests)? how?
No hurry.
P.S. Donāt know if there is something in the yum python API that can be implemented to run at runtime without changing yum.conf