summaryrefslogtreecommitdiff
path: root/pp
diff options
context:
space:
mode:
authorTodd C. Miller <Todd.Miller@courtesan.com>2010-07-15 22:19:13 -0400
committerTodd C. Miller <Todd.Miller@courtesan.com>2010-07-15 22:19:13 -0400
commit5e6caac8e6bc2db1df45ebf46a498bac6a2f3da9 (patch)
treea8a0e63e55f0a36d8921cd19e9632c29286e87d9 /pp
parent788581a777ec282973c1847d40f9505cb51e775d (diff)
downloadsudo-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-xpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/pp b/pp
index 223ddb6bd..ae43a5fe1 100755
--- a/pp
+++ b/pp
@@ -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"
}