Sfoglia il codice sorgente

dpkg-name: Do not handle Revision and Package_Revision fields

Those fields have already been parsed and handled by “dpkg-deb -I”.
Guillem Jover 17 anni fa
parent
commit
ed4065c246
2 ha cambiato i file con 2 aggiunte e 5 eliminazioni
  1. 2 0
      debian/changelog
  2. 0 5
      scripts/dpkg-name.pl

+ 2 - 0
debian/changelog

@@ -3,6 +3,8 @@ dpkg (1.15.4) UNRELEASED; urgency=low
   * Call _g instead of g_ in dpkg-name.
   * Fix inverted logic when deciding to assume the architecture in dpkg-name
     when the package didn't have such field.
+  * Do not take into account Revision and Package_Revision fields in dpkg-name
+    as they have been handled already by “dpkg-deb -I”.
 
  -- Guillem Jover <guillem@debian.org>  Sat, 27 Jun 2009 19:25:30 +0200
 

+ 0 - 5
scripts/dpkg-name.pl

@@ -122,11 +122,6 @@ sub getname($$$)
 
     my $pkg = $fields->{Package};
     (my $version = $fields->{Version}) =~ s/.*://;
-    my $revision = $fields->{Revision} || $fields->{Package_Revision};
-    if ($revision) {
-        $version .= "-$revision";
-    }
-
     my $type = $fields->{'Package-Type'} || 'deb';
 
     my $tname;