]> granicus.if.org Git - sudo/commitdiff
Fix extended description in .deb files.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 4 Jun 2012 17:26:54 +0000 (13:26 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 4 Jun 2012 17:26:54 +0000 (13:26 -0400)
--HG--
branch : 1.7

pp

diff --git a/pp b/pp
index ff81201292c77e4bb7f7f74d633e51dc83fdda71..21baadfc1c5d7d5299aae66e93683a7241666b4b 100755 (executable)
--- a/pp
+++ b/pp
@@ -1,6 +1,6 @@
 #!/bin/sh
 # Copyright 2012 Quest Software, Inc. ALL RIGHTS RESERVED
-pp_revision="357"
+pp_revision="359"
  # Copyright 2012 Quest Software, Inc.  ALL RIGHTS RESERVED.
  #
  # Redistribution and use in source and binary forms, with or without
@@ -3863,9 +3863,6 @@ pp_backend_deb_init () {
 
     # Make sure any programs we require are installed
     pp_deb_check_required_programs
-
-    # Set generated/interrogated platforms variables
-    pp_deb_munge_description
 }
 
 pp_deb_check_required_programs () {
@@ -3896,10 +3893,8 @@ pp_deb_check_required_programs () {
 pp_deb_munge_description () {
     # Insert a leading space on each line, replace blank lines with a
     #space followed by a full-stop.
-    pp_deb_control_description=`echo ${pp_deb_description:-$description} | \
-        sed "s,^\(.*\)$, \1, " \
-        | sed "s,^[ \t]*$, .,g"`
-
+    pp_deb_control_description="`echo ${pp_deb_description:-$description} | \
+        sed 's,^\(.*\)$, \1, " \ | sed 's,^[ \t]*$, .,g' | fmt -w 80`"
 }
 
 pp_deb_detect_arch () {
@@ -4148,6 +4143,9 @@ pp_deb_makedeb () {
 pp_backend_deb () {
     local debname
 
+    # Munge description for control file inclusion
+    pp_deb_munge_description
+
     # Handle services
     pp_deb_handle_services $cmp