Date: Mon, 16 Feb 2009 10:57:35 +0100 From: Gianni Doe <gdoe6545@yahoo.it> To: freebsd-stable@freebsd.org Subject: Re: Invalid path for portupgrade ftp.FreeBSD.orgpub Message-ID: <E1AA0E67-422F-452E-BE69-8E7458606661@yahoo.it> In-Reply-To: <20090216094707.GA15055@lpthe.jussieu.fr> References: <20090216094707.GA15055@lpthe.jussieu.fr>
next in thread | previous in thread | raw e-mail | index | archive | help
On 16/feb/09, at 10:47, Michel Talon wrote:
> I think you can access that in the ruby program pkg_fetch
> (/usr/local/sbin/pkg_fetch)
> in function real_fetch_pkg, i have the following:
> $pkg_site_uris.each do |uri_base|
> PKG_SUFFIXES.each do |suffix|
> uri = uri_base + (subdir + '/' + pkgname + suffix)
> path = path_base + suffix
>
> fetch(uri, path) and return path
> end
> end
>
> Here probably you lack the '/'
>
>
> --
>
> Michel TALON
I've got the same as you:
$pkg_site_uris.each do |uri_base|
PKG_SUFFIXES.each do |suffix|
uri = uri_base + (subdir + '/' + pkgname + suffix)
path = path_base + suffix
fetch(uri, path) and return path
end
end
Which version of the file do you have?
MYREVISION = %w$Rev: 52 $[1]
MYDATE = %w$Date: 2008/01/08 11:32:27 $[1]
MYNAME = File.basename($0)
-Gianni
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1AA0E67-422F-452E-BE69-8E7458606661>
