From nobody@FreeBSD.org  Fri Nov 11 19:36:44 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 945591065673
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 11 Nov 2011 19:36:44 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 845178FC0A
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 11 Nov 2011 19:36:44 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id pABJaiVK093304
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 11 Nov 2011 19:36:44 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id pABJaiJu093303;
	Fri, 11 Nov 2011 19:36:44 GMT
	(envelope-from nobody)
Message-Id: <201111111936.pABJaiJu093303@red.freebsd.org>
Date: Fri, 11 Nov 2011 19:36:44 GMT
From: "Luchesar V. ILIEV" <luchesar.iliev@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: pkg_add(1) fails to fetch packages remotely on stable/9
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         162490
>Category:       bin
>Synopsis:       pkg_add(1) fails to fetch packages remotely on stable/9
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 11 19:40:02 UTC 2011
>Closed-Date:    Sun Jan 08 00:49:44 UTC 2012
>Last-Modified:  Sun Jan 08 00:49:44 UTC 2012
>Originator:     Luchesar V. ILIEV
>Release:        9.0-RC2
>Organization:
i.dea.is
>Environment:
FreeBSD bluestorm 9.0-RC2 FreeBSD 9.0-RC2 #0 r227367M: Wed Nov  9 01:44:21 EET 2011     root@bluestorm:/usr/obj/usr/src/sys/BLUESTORM  amd64
>Description:
On stable/9, when using pkg_add(1)'s "-r" option to remotely fetch packages, the necessary OS release directory name is incorrectly identified to be "packages-9-current", while on the FTP sites this has already been (correctly) changed to "packages-9-stable". As a consequence, the "pkg_add -r" command fails with "pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/<arch>/packages-9-current/Latest/<packagename>' by URL"
>How-To-Repeat:
# pkg_add -r <any_package_name>
>Fix:
MFC r225757 with respect to /stable/9/usr.sbin/pkg_install/add/main.c

http://svnweb.freebsd.org/base/head/usr.sbin/pkg_install/add/main.c?r1=222035&r2=225757

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Sun Jan 8 00:49:22 UTC 2012 
State-Changed-Why:  
Should be fixed by http://svn.freebsd.org/changeset/base/229748 . 

http://www.freebsd.org/cgi/query-pr.cgi?pr=162490 
>Unformatted:
