Date: Sat, 3 Nov 2012 02:12:18 GMT From: Adam McDougall <mcdouga9@egr.msu.edu> To: freebsd-gnats-submit@FreeBSD.org Subject: bin/173316: pkg install gives misleading error when a package is specified more than once Message-ID: <201211030212.qA32CIcv035437@red.freebsd.org> Resent-Message-ID: <201211030220.qA32K0Ch003954@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211030212.qA32CIcv035437>