[pkg-php-pear] Bug#717340: [PATCH] Remove tabs from Description, and handle lists

David Prévot taffit at debian.org
Sun Dec 22 13:42:49 UTC 2013


Closes: #717340
---
 bin/dh_phppear | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/bin/dh_phppear b/bin/dh_phppear
index 7a3c7b5..257af94 100755
--- a/bin/dh_phppear
+++ b/bin/dh_phppear
@@ -119,9 +119,12 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
 		$summary =~ s/\.$//;
 		addsubstvar($package, "phppear:summary", $summary);
 		my $description = _shell_exec('/usr/share/pkg-php-tools/scripts/phppkginfo -d description .');
+		$description =~ s/^\s*//mg;
+		$description =~ s/^\*/ */mg;
 		local($Text::Wrap::separator) = '${Newline}';
 		# Wrap and replace empty lines with a dot
 		$description = join('${Newline}.${Newline}', split('${Newline}${Newline}', wrap("", "", $description)));
+		$description =~ s/\t+/ /g;
 		addsubstvar($package, "phppear:description", $description);
 		addsubstvar($package, "phppear:channel", _shell_exec('/usr/share/pkg-php-tools/scripts/phppkginfo -d channel .'));
 	}
-- 
1.8.5.2



More information about the pkg-php-pear mailing list