Просмотр исходного кода

Strip any newlines from Uploaders field on dpkg-source -b.
Closes: #254449

Frank Lichtenheld лет назад: 20
Родитель
Сommit
7c7caa4eca
3 измененных файлов с 10 добавлено и 2 удалено
  1. 6 1
      ChangeLog
  2. 2 0
      debian/changelog
  3. 2 1
      scripts/dpkg-source.pl

+ 6 - 1
ChangeLog

@@ -1,7 +1,12 @@
 2006-02-11  Frank Lichtenheld  <djpig@debian.org>
 
 	* scripts/dpkg-source.pl: Add .git to
-	$diff_ignore_default_regexp
+	$diff_ignore_default_regexp.
+
+	* scripts/dpkg-source.pl: Remove any
+	newlines from Uploaders field to allow
+	people to make it multi-line in the
+	source package.
 
 2006-02-10  Denis Barbier  <barbier@linuxfr.org>
 

+ 2 - 0
debian/changelog

@@ -51,6 +51,8 @@ dpkg (1.13.14~) UNRELEASED; urgency=low
   * Let dpkg-source -x touch all patched files to have the same
     timestamp to mitigate time-skew problems (Denis Barbier).
     Closes: #105750
+  * Strip any newlines from Uploaders field on dpkg-source -b.
+    Closes: #254449
 
   [ Christian Perrier ]
   * Switch to po4a for manpages translation. Closes: #320122

+ 2 - 1
scripts/dpkg-source.pl

@@ -173,7 +173,8 @@ if ($opmode eq 'build') {
         $v= $fi{$_};
         if (s/^C //) {
             if (m/^Source$/i) { &setsourcepackage; }
-            elsif (m/^(Standards-Version|Origin|Maintainer|Uploaders)$/i) { $f{$_}= $v; }
+            elsif (m/^(Standards-Version|Origin|Maintainer)$/i) { $f{$_}= $v; }
+	    elsif (m/^Uploaders$/i) { ($f{$_}= $v) =~ s/[\r\n]//g; }
 	    elsif (m/^Build-(Depends|Conflicts)(-Indep)?$/i) {
 		my $dep = parsedep(substvars($v),1);
 		&error("error occoured while parsing $_") unless defined $dep;