The following commit has been merged in the master branch:
commit ed4065c246bba34784b6babaff3a9a6b93fcc793
Author: Guillem Jover <[email protected]>
Date: Mon Jun 29 09:34:20 2009 +0200
dpkg-name: Do not handle Revision and Package_Revision fields
Those fields have already been parsed and handled by “dpkg-deb -I”.
diff --git a/debian/changelog b/debian/changelog
index bc05dc6..7832c77 100644
--- a/debian/changelog
+++ b/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 <[email protected]> Sat, 27 Jun 2009 19:25:30 +0200
diff --git a/scripts/dpkg-name.pl b/scripts/dpkg-name.pl
index 0c6b96b..a17cab2 100755
--- a/scripts/dpkg-name.pl
+++ b/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;
--
dpkg's main repository
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]