I'v just downloaded webmin 1.670 src.rpm package and re-packet it into our (CentOs based) distribution. But new rpm failed to install on our system.
rpm install command failed with prein script failure with this error:
Unable to identify operating system
error: %pre(webmin-1.670-lb6.01.noarch) scriptlet failed, exit status 2
Our system is ussualy detected as "generic linux"
such detection is made by command "uname -r" run in preinst script of the rpm package.
such command produces this line on our system "3.10.33lb6.01"
However this is matched against regular expression "/^([0-9]+\.[0-9+])\./"
Obviously the regexp in prein script is wrong - match for second digit is "[0-9+]" but should be "[0-9]+".
The error i in package rpm SPECFILE.
After fixing the rpm prein scrtip, webmin still failed to properly install, as the same error is also in webmin os_list.txt file.
webmin setup.sh fail to produce config files as it finish with this error "Failed to detect operating system" reported in webmin-setup.out file.
I do not know how to inform directly person responsible for the files (os_lists.txt and rpm SPEC file), therefore i've filed this bug report.
Thank You and wish You a nice day