suggestion for pkgdb from ports-mgmt/portupgrade: add more explanation

Julian H. Stacey jhs at berklix.com
Thu Sep 1 13:33:27 UTC 2011


Hi,
Suggestion: pkgdb is too cryptic even with -v,
it needs more explanation what it is up to & 
particularly what decisions it asks from user

(I started with 8.2-Release pkgdb then moved to current pkgdb, 
some fragments of run examples below):

	% pkgdb -F -v
		Checking for origin duplicates
		......
		Checking linkchecker-6.3
		Stale dependency: linkchecker-6.3 -> tidy-lib-090315.c_1 (www/tidy-lib):
		Disclose depends for linkchecker-6.3
		tidy-20000804_2 (score:19%) ? ([y]es/[n]o/[a]ll) [no] 
	
	No clue is given what score means or what decision program wants
	user to make. 
	
	% cd /var/db/pkg
	% echo linkchecker*
		linkchecker-6.3
	
	% echo *tidy*
		py26-utidy-0.2_1 tidy-20000804_2
	
	% pkg_info -r linkchecker-6.3
		Depends on:
		Dependency: tidy-lib-090315.c_1
	
	% vi -c/score: `which pkgdb`
	 	ruby. Oh well, read that source later meanwhile take default &
		rerun pkgdb again later, after its cleaned up some
	 Pushed return
	
		Install stale dependency? ([y]es/[n]o/[a]ll) [yes] 
	
	% pkgdb -F -v
		Checking docproj-1.17_4
		Stale dependency: docproj-1.17_4 -> tidy-20000804_2 (www/tidy):
		Disclose depends for docproj-1.17_4
		Install stale dependency? ([y]es/[n]o/[a]ll) [yes] 

		....
		Disclose depends for py26-utidy-0.2_1
		tidy-lib-090315.c_1 ? ([y]es/[n]o/[a]ll) [yes] 
	What ?

Even 'stale dependency' is not clear.  Is it missing or what.
Doubtless could be figured out with enough other pkg commands & ls,
but slightly extending various print commands within pkgdb would be nice.

Cheers,
Julian
-- 
Julian Stacey, BSD Unix Linux C Sys Eng Consultants Munich http://berklix.com
 Reply below, not above;  Indent with "> ";  Cumulative like a play script.
 Format: Plain text. Not HTML, multipart/alternative, base64, quoted-printable.
 http://www.softwarefreedomday.org 17th Sept,  http://berklix.org/sfd/ Oct.


More information about the freebsd-ports mailing list