diff options
author | Todd C. Miller <Todd.Miller@courtesan.com> | 2010-07-15 22:19:13 -0400 |
---|---|---|
committer | Todd C. Miller <Todd.Miller@courtesan.com> | 2010-07-15 22:19:13 -0400 |
commit | 5e6caac8e6bc2db1df45ebf46a498bac6a2f3da9 (patch) | |
tree | a8a0e63e55f0a36d8921cd19e9632c29286e87d9 /pp | |
parent | 788581a777ec282973c1847d40f9505cb51e775d (diff) | |
download | sudo-5e6caac8e6bc2db1df45ebf46a498bac6a2f3da9.tar.gz |
Restore the dot removal in the os version reported by polypkg.
Adapt mkpkg and sudo.pp to the change.
Diffstat (limited to 'pp')
-rwxr-xr-x | pp | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -3762,7 +3762,6 @@ pp_deb_make_data() { done # If no copyright file is present add one. This is a debian requirement. - # XXX - include the LICENSE file instead? share_doc="/usr/share/doc/`pp_deb_cmp_full_name $cmp`" if [ ! -f "$data/$share_doc/copyright" ] then @@ -3957,8 +3956,7 @@ pp_backend_deb_probe() { ;; *) # Remove trailing revision number and any dots - #release=`echo $release | cut -dr -f1 | tr -d .` - release=`echo $release | cut -dr -f1` + release=`echo $release | cut -dr -f1 | tr -d .` ;; esac @@ -5036,7 +5034,7 @@ pp_rpm_detect_distro () { /^SuSE SLES-[0-9]/ { print "sles" substr($2,6); exit; } ' /etc/SuSE-release` fi - #pp_rpm_distro=`echo $pp_rpm_distro | tr -d .` + pp_rpm_distro=`echo $pp_rpm_distro | tr -d .` test -z "$pp_rpm_distro" && pp_warn "unknown distro" } |