From Nehal@shaw.ca  Sun Oct 10 15:29:05 2004
Return-Path: <Nehal@shaw.ca>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 467E716A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 10 Oct 2004 15:29:05 +0000 (GMT)
Received: from shaw.ca (S0106000ae6ceb225.vf.shawcable.net [70.68.12.33])
	by mx1.FreeBSD.org (Postfix) with ESMTP id BE80143D2F
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 10 Oct 2004 15:29:04 +0000 (GMT)
	(envelope-from Nehal@shaw.ca)
Received: from Nehal.Home (somebody@localhost.Home [127.0.0.1])
	by Nehal.Home (8.13.1/8.13.1) with ESMTP id i9AFJ72M002283
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 10 Oct 2004 08:19:07 -0700 (PDT)
	(envelope-from Nehal@Nehal.Home)
Received: (from Nehal@localhost)
	by Nehal.Home (8.13.1/8.13.1/Submit) id i9AFJ7RK002282;
	Sun, 10 Oct 2004 08:19:07 -0700 (PDT)
	(envelope-from Nehal)
Message-Id: <200410101519.i9AFJ7RK002282@Nehal.Home>
Date: Sun, 10 Oct 2004 08:19:07 -0700 (PDT)
From: Nehal Mistry <nehalmistry@gmx.net>
Reply-To: Nehal Mistry <nehalmistry@gmx.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: pkg_add -r unnecessarily downloads package
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         72485
>Category:       bin
>Synopsis:       pkg_add -r unnecessarily downloads package
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    krion
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Oct 10 15:30:25 GMT 2004
>Closed-Date:    Sat Nov 12 12:31:53 GMT 2005
>Last-Modified:  Sat Nov 12 12:31:53 GMT 2005
>Originator:     Nehal Mistry
>Release:        FreeBSD 5.3-BETA7 i386
>Organization:
>Environment:
System: FreeBSD Nehal 5.3-BETA7 FreeBSD 5.3-BETA7 #0: Sat Oct 2 21:01:00 UTC 2004 root@wv1u.samsco.home:/usr/obj/usr/src/sys/GENERIC i386


	
>Description:
'pkg_add -r' first retrieves the package, and then checks to see if a 
package by the same name is already installed. it would be more convenient 
if it did the check first, so it doesn't waste time/bandwidth downloading 
if not necessary.
	
>How-To-Repeat:
	
>Fix:

	


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->eik 
Responsible-Changed-By: ceri 
Responsible-Changed-When: Mon Oct 11 15:48:39 GMT 2004 
Responsible-Changed-Why:  
eik is working on pkg_foo of late. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=72485 
State-Changed-From-To: open->feedback 
State-Changed-By: eik 
State-Changed-When: Tue Oct 12 01:07:13 CEST 2004 
State-Changed-Why:  
Asked for the likelihood. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=72485 

From: Oliver Eikemeier <eikemeier@fillmore-labs.com>
To: freebsd-gnats-submit@FreeBSD.org, nehalmistry@gmx.net
Cc:  
Subject: Re: bin/72485: pkg_add -r unnecessarily downloads package
Date: Tue, 12 Oct 2004 01:07:20 +0200

 pkg_add also checks for packages with the same origin (different 
 versions of the same package) and for conflicts, which is difficult to 
 do without downloading the package first.
 
 So this would only be an optimization when exactly the same version is 
 added. Is this really likely to happen?
 -Oliver
 
Responsible-Changed-From-To: eik->krion 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon Jul 18 05:37:12 GMT 2005 
Responsible-Changed-Why:  
krion is looking after these tools now. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=72485 
State-Changed-From-To: feedback->closed 
State-Changed-By: krion 
State-Changed-When: Sat Nov 12 12:31:51 GMT 2005 
State-Changed-Why:  
It's a necessary to download packages first to check conflicts and 
origins. But if you can come with a optimization patch, you're welcome. 

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