Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 01 May 2010 13:29:35 -0700
From:      Doug Barton <dougb@FreeBSD.org>
To:        Jakub Lach <jakub_lach@mailplus.pl>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: portmaster 2.23, missing ORGIN
Message-ID:  <4BDC8F2F.3010808@FreeBSD.org>
In-Reply-To: <28420424.post@talk.nabble.com>
References:  <28420424.post@talk.nabble.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------090403000600040503000308
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

On 05/01/10 05:12, Jakub Lach wrote:
> 
> Hello.
> 
> Since upgrade to 2.23 portmaster is complaining
> about ORGIN e.g.
> 
> 
> $ portmaster --check-port-dbdir
> 
> ===>>> No ORIGIN in /var/db/pkg/pkgdb.db/+CONTENTS
> 
> Is this expected behaviour?

Nope, but the good news is that it's harmless.

Previously the origin_from_pdb() function didn't return an error, so the
--check-port-dbdir feature didn't need to check if what it was working
on is a directory. Now it does, so you can apply the attached patch if
that message bothers you.

I checked the other places that origin_from_pdb() is called and this
seems to be the only place that this would be an issue.


hth,

Doug

-- 

	... and that's just a little bit of history repeating.
			-- Propellerheads

	Improve the effectiveness of your Internet presence with
	a domain name makeover!    http://SupersetSolutions.com/


--------------090403000600040503000308
Content-Type: text/plain;
 name="portmaster-dbdir.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="portmaster-dbdir.diff"

Index: portmaster
===================================================================
--- portmaster	(revision 207459)
+++ portmaster	(working copy)
@@ -997,6 +1000,8 @@
 
 	echo "===>>> Building list of installed port names"; echo ''
 	for pkg in $pdb/*; do
+		[ -d $pkg ] || continue
+
 		unset unique_name
 
 		iport=${pkg#$pdb/}

--------------090403000600040503000308--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4BDC8F2F.3010808>