From 371af8a555245db3d90fab06034f8840a55125f7 Mon Sep 17 00:00:00 2001 From: Kris Kennaway Date: Thu, 26 Jul 2001 20:25:50 +0000 Subject: [PATCH] Only match the first osreldate date range for constructing the FTP URL, not all of them. Noticed by: obrien --- usr.sbin/pkg_install/add/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/pkg_install/add/main.c b/usr.sbin/pkg_install/add/main.c index b152d3ab1af5..2844bf9a0b06 100644 --- a/usr.sbin/pkg_install/add/main.c +++ b/usr.sbin/pkg_install/add/main.c @@ -246,7 +246,7 @@ getpackagesite(void) if (reldate >= releases[i].lowver && reldate <= releases[i].hiver) { if (s_strlcat(sitepath, releases[i].directory, sizeof(sitepath))) return NULL; - continue; + break; } }