>Number:         173316
>Category:       bin
>Synopsis:       pkg install gives misleading error when a package is specified 
>more than once
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Nov 03 02:20:00 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Adam McDougall
>Release:        9-STABLE amd64
>Organization:
MSU
>Environment:
FreeBSD test 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #0: Fri Oct  5 10:17:48 EDT 
2012     root@build9:/usr/obj/proto/src9/src/sys/AMD64-9  amd64
>Description:
Sometimes I compile a list of packages I want to install and sometimes it 
contains duplicate package names.  When that happens, instead of pkg 
eliminating duplicate names for me, it falsely claims the duplicate package 
names are not found in the repo (I already have rsync installed this the 
'already installed' is correct).
>How-To-Repeat:
root@test:/root # pkg install rsync rsync
Updating repository catalogue
Repository catalogue is up-to-date, no need to fetch fresh copy
pkg: Package 'rsync' was not found in the repositories
pkg: net/rsync is already installed and at the latest version

root@test:/root # pkg install net/rsync net/rsync
Updating repository catalogue
Repository catalogue is up-to-date, no need to fetch fresh copy
pkg: Package 'net/rsync' was not found in the repositories
pkg: net/rsync is already installed and at the latest version

root@test:/root # pkg install net/rsync net/rsync net/rsync
Updating repository catalogue
Repository catalogue is up-to-date, no need to fetch fresh copy
pkg: Package 'net/rsync' was not found in the repositories
pkg: Package 'net/rsync' was not found in the repositories
pkg: net/rsync is already installed and at the latest version
>Fix:
Eliminate duplicate package names (might be tricky if something like 'rsync' 
and 'net/rsync' were specified unless it resolves them to a unique port name 
first) or simply don't follow the code path that causes a misleading false 
error to be printed.

>Release-Note:
>Audit-Trail:
>Unformatted:
_______________________________________________
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to