summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2007-06-04 18:55:48 +0000
committerMarc Espie <espie@cvs.openbsd.org>2007-06-04 18:55:48 +0000
commit607d7d3def74c8ae4ad6591c8410d85773d80ff6 (patch)
tree7fa9c0641f2f8108effe49d0e269c1cd424c10ef /usr.sbin/pkg_add/OpenBSD/PackageRepository.pm
parent25d82b9da93421ba1710254be1ee6d96ef6a43cc (diff)
a few missed $' / $`
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/PackageRepository.pm')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PackageRepository.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm b/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm
index 7e699d3f907..101120f6843 100644
--- a/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm
+++ b/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: PackageRepository.pm,v 1.41 2007/06/04 18:52:02 espie Exp $
+# $OpenBSD: PackageRepository.pm,v 1.42 2007/06/04 18:55:47 espie Exp $
#
# Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org>
#
@@ -236,9 +236,9 @@ sub list
my $dname = $self->{baseurl};
opendir(my $dir, $dname) or return $l;
while (my $e = readdir $dir) {
- next unless $e =~ m/\.tgz$/o;
+ next unless $e =~ m/^(.*)\.tgz$/o;
next unless -f "$dname/$e";
- push(@$l, $`);
+ push(@$l, $1);
}
close($dir);
return $l;