summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD/PackageLocator.pm
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2005-09-14 09:50:41 +0000
committerMarc Espie <espie@cvs.openbsd.org>2005-09-14 09:50:41 +0000
commitd5e9772906ac3ed55f810884c0f27edaadf68e87 (patch)
tree1e1bf15a5f854128e7918d44c2d4a611e636c2ce /usr.sbin/pkg_add/OpenBSD/PackageLocator.pm
parent74a15b7c4f3ca42de7107311319c8f22424b59a4 (diff)
filter names out first, as it's slightly faster
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/PackageLocator.pm')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PackageLocator.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackageLocator.pm b/usr.sbin/pkg_add/OpenBSD/PackageLocator.pm
index ba47be960c8..0d4a503b6c7 100644
--- a/usr.sbin/pkg_add/OpenBSD/PackageLocator.pm
+++ b/usr.sbin/pkg_add/OpenBSD/PackageLocator.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: PackageLocator.pm,v 1.31 2005/09/13 21:20:01 espie Exp $
+# $OpenBSD: PackageLocator.pm,v 1.32 2005/09/14 09:50:40 espie Exp $
#
# Copyright (c) 2003-2004 Marc Espie <espie@openbsd.org>
#
@@ -232,8 +232,8 @@ sub available
my $dname = $self->{baseurl};
opendir(my $dir, $dname) or return $l;
while (my $e = readdir $dir) {
- next unless -f "$dname/$e";
next unless $e =~ m/\.tgz$/;
+ next unless -f "$dname/$e";
push(@$l, $`);
}
close($dir);