From owner-freebsd-stable@FreeBSD.ORG Mon Feb 16 09:57:39 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3690F1065679 for ; Mon, 16 Feb 2009 09:57:39 +0000 (UTC) (envelope-from gdoe6545@yahoo.it) Received: from n29.bullet.mail.ukl.yahoo.com (n29.bullet.mail.ukl.yahoo.com [87.248.110.146]) by mx1.freebsd.org (Postfix) with SMTP id 9740C8FC14 for ; Mon, 16 Feb 2009 09:57:38 +0000 (UTC) (envelope-from gdoe6545@yahoo.it) Received: from [217.12.4.215] by n29.bullet.mail.ukl.yahoo.com with NNFMP; 16 Feb 2009 09:57:37 -0000 Received: from [87.248.110.115] by t2.bullet.ukl.yahoo.com with NNFMP; 16 Feb 2009 09:57:37 -0000 Received: from [127.0.0.1] by omp220.mail.ukl.yahoo.com with NNFMP; 16 Feb 2009 09:57:39 -0000 X-Yahoo-Newman-Id: 135160.7401.bm@omp220.mail.ukl.yahoo.com Received: (qmail 79134 invoked from network); 16 Feb 2009 09:57:37 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.it; h=Received:X-YMail-OSG:X-Yahoo-Newman-Property:Message-Id:From:To:In-Reply-To:Content-Type:Content-Transfer-Encoding:Mime-Version:Subject:Date:References:X-Mailer; b=Rr8GDKU60XcS3U7/uK3N9OaZJMlC3aLJfe8npK9TfE6qePFEwkRWjU7uRSwL0xTGViLFqAXc+jdPXZQ0+zEn3luLNJTMhvwrtLm56iVZ7fEpsLyfsynYoLQrUQtNW+Zwu5u5m/hJytb48OT5ny73xCB9rOhmXWhB0WoPnKxi30I= ; Received: from unknown (HELO zao.smersh.casa) (gdoe6545@88.149.154.198 with plain) by smtp128.mail.ukl.yahoo.com with SMTP; 16 Feb 2009 09:57:37 -0000 X-YMail-OSG: 5U4.bhEVM1kVkOYxJPA_YYy8ea.OXNWsajtersV7Kjwe0xQU6rmkvG.kHexiykPqyd2_MSznzXhXjvr0JA7jMIIRV6rxulgxVJVxgYyk.K.yFajQrARWvweglhKveJAd1RKQnvKG1KbgR5eT6NFV2niHDweQrw8SZXqDCdBmwObPHN_tJbyJlulDwLyS2kgqcvQaWNDfAnoAPp03 X-Yahoo-Newman-Property: ymail-3 Message-Id: From: Gianni Doe To: freebsd-stable@freebsd.org In-Reply-To: <20090216094707.GA15055@lpthe.jussieu.fr> Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Date: Mon, 16 Feb 2009 10:57:35 +0100 References: <20090216094707.GA15055@lpthe.jussieu.fr> X-Mailer: Apple Mail (2.930.3) Subject: Re: Invalid path for portupgrade ftp.FreeBSD.orgpub X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Feb 2009 09:57:39 -0000 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