diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2009-02-02 20:41:48 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2009-02-02 20:41:48 +0000 |
commit | 5fa03c36571581ed49e21a24e77dfcfc8d690b67 (patch) | |
tree | 2bdcc2b5bd593628ea219df3521b4926c390c32a /usr.sbin/pkg_add | |
parent | 474de50103057b09f9f16da8bac06b4730f49278 (diff) |
deals with shaddy repositories from backwards countries that implement
nlist incorrectly.
as diagnosed by kili@
Diffstat (limited to 'usr.sbin/pkg_add')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/PackageRepository.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm b/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm index ee9345b84e0..1e8d2fe7bc1 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.61 2008/12/11 15:43:19 espie Exp $ +# $OpenBSD: PackageRepository.pm,v 1.62 2009/02/02 20:41:47 espie Exp $ # # Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org> # @@ -757,7 +757,7 @@ sub _list while(<$fh>) { chomp; next if m/^\d\d\d\s+\S/; - next unless m/(\S+)\.tgz\s*$/; + next unless m/^(?:\.\/)?(\S+)\.tgz\s*$/; push(@$l, $1); } close($fh); |