summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2007-05-02 15:09:05 +0000
committerMarc Espie <espie@cvs.openbsd.org>2007-05-02 15:09:05 +0000
commit00f24a76e880990054c818c051a9955854318670 (patch)
tree8ac83078308e10e42fcdceddd8a556128022691a
parent850d571d26f7956f8733a9655f093a52d3e5ff3c (diff)
remove extra "" that don't make sense.
-rw-r--r--usr.sbin/pkg_add/OpenBSD/Replace.pm12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Replace.pm b/usr.sbin/pkg_add/OpenBSD/Replace.pm
index f8437cbf074..68181c38de7 100644
--- a/usr.sbin/pkg_add/OpenBSD/Replace.pm
+++ b/usr.sbin/pkg_add/OpenBSD/Replace.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: Replace.pm,v 1.6 2007/05/02 15:05:30 espie Exp $
+# $OpenBSD: Replace.pm,v 1.7 2007/05/02 15:09:04 espie Exp $
#
# Copyright (c) 2004-2006 Marc Espie <espie@openbsd.org>
#
@@ -199,9 +199,9 @@ sub mark_lib
my ($self, $libs, $libpatterns) = @_;
my $libname = $self->fullname;
if ($libname =~ m/^(.*\.so\.)(\d+)\.(\d+)$/) {
- $libpatterns->{"$1"} = [$2, $3, $libname];
+ $libpatterns->{$1} = [$2, $3, $libname];
}
- $libs->{"$libname"} = 1;
+ $libs->{$libname} = 1;
}
sub unmark_lib
@@ -210,13 +210,13 @@ sub unmark_lib
my $libname = $self->fullname;
if ($libname =~ m/^(.*\.so\.)(\d+)\.(\d+)$/) {
my ($pat, $major, $minor) = ($1, $2, $3);
- my $p = $libpatterns->{"$pat"};
+ my $p = $libpatterns->{$pat};
if (defined $p && $p->[0] == $major && $p->[1] <= $minor) {
my $n = $p->[2];
- delete $libs->{"$n"};
+ delete $libs->{$n};
}
}
- delete $libs->{"$libname"};
+ delete $libs->{$libname};
}
package OpenBSD::PackingElement::NewDepend;