The following commit has been merged in the master branch:
commit 59c1513f8d83446e57dfc5e047840778601a8c60
Author: Raphaël Hertzog <[email protected]>
Date: Fri Feb 19 11:11:18 2010 +0100
Dpkg::Shlibs::Symbol::equals(): be explicit about default values of options
diff --git a/scripts/Dpkg/Shlibs/Symbol.pm b/scripts/Dpkg/Shlibs/Symbol.pm
index dc3d55f..717fde3 100644
--- a/scripts/Dpkg/Shlibs/Symbol.pm
+++ b/scripts/Dpkg/Shlibs/Symbol.pm
@@ -249,15 +249,17 @@ sub get_tag_value {
# tag sets, versioning info (minver and depid))
sub equals {
my ($self, $other, %opts) = @_;
+ $opts{versioning} = 1 unless exists $opts{versioning};
+ $opts{tags} = 1 unless exists $opts{tags};
return 0 if $self->{symbol} ne $other->{symbol};
- if (!exists $opts{versioning} || $opts{versioning}) {
+ if ($opts{versioning}) {
return 0 if $self->{minver} ne $other->{minver};
return 0 if $self->{dep_id} ne $other->{dep_id};
}
- if (!exists $opts{tags} || $opts{tags}) {
+ if ($opts{tags}) {
return 0 if scalar(@{$self->{tagorder}}) !=
scalar(@{$other->{tagorder}});
for (my $i = 0; $i < scalar(@{$self->{tagorder}}); $i++) {
--
dpkg's main repository
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]