Procházet zdrojové kódy

dpkg-genchanges: Fix handling of 'all' in Architecture field

Exclude it for -B, exclude all other arches for -A
Frank Lichtenheld před 18 roky
rodič
revize
4476d61767
1 změnil soubory, kde provedl 3 přidání a 0 odebrání
  1. 3 0
      scripts/dpkg-genchanges.pl

+ 3 - 0
scripts/dpkg-genchanges.pl

@@ -420,6 +420,9 @@ if (!defined($f{'Date'})) {
 $f{'Binary'}= join(' ',grep(s/C //,keys %p2i));
 $f{'Binary'}= join(' ',grep(s/C //,keys %p2i));
 
 
 unshift(@archvalues,'source') unless is_binaryonly;
 unshift(@archvalues,'source') unless is_binaryonly;
+@archvalues = ('all') if $include == ARCH_INDEP;
+@archvalues = grep {!debarch_eq('all',$_)} @archvalues
+    unless $include & ARCH_INDEP;
 $f{'Architecture'}= join(' ',@archvalues);
 $f{'Architecture'}= join(' ',@archvalues);
 
 
 $f{'Description'}= "\n ".join("\n ",sort @descriptions);
 $f{'Description'}= "\n ".join("\n ",sort @descriptions);