remove revision number from distribution version

Remove the distribution version revision number becuase it
* is not a large enough change to effect installs
* needs the "." separator, which is currently removed, in the version number to
  be distinguished
* is not currently implemented for Sun and BSD installs
This commit is contained in:
ffa 2012-10-18 19:54:05 -07:00
parent 066daea949
commit ca278f2a11

View file

@ -181,7 +181,7 @@ __gather_linux_system_info() {
v=$(
(grep VERSION /etc/${rsource}; cat /etc/${rsource}) | grep '[0-9]' | sed -e 'q' |\
sed -e 's/^/#/' \
-e 's/^#[^0-9]*\([0-9][0-9]*\.[0-9][0-9]*\)\(\.[0-9][0-9]*\).*$/\1[\2]/' \
-e 's/^#[^0-9]*\([0-9][0-9]*\.[0-9][0-9]*\)\(\.[0-9][0-9]*\).*$/\1/' \
-e 's/^#[^0-9]*\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/' \
-e 's/^#[^0-9]*\([0-9][0-9]*\).*$/\1/' \
-e 's/^#.*$//'