From owner-freebsd-ports@FreeBSD.ORG Sat Apr 5 02:23:01 2014 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C216D22C for ; Sat, 5 Apr 2014 02:23:01 +0000 (UTC) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 74632EEC for ; Sat, 5 Apr 2014 02:23:01 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.8/8.14.8) with ESMTP id s352Mxgx042356 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 4 Apr 2014 20:22:59 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.8/8.14.8/Submit) with ESMTP id s352MwYk042353; Fri, 4 Apr 2014 20:22:58 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Fri, 4 Apr 2014 20:22:58 -0600 (MDT) From: Warren Block To: sindrome Subject: RE: pkgng vs. portupgrade reporting ports outdated In-Reply-To: <000601cf505e$d3b6bc70$7b243550$@gmail.com> Message-ID: References: <533F36F0.8020803@rcn.com> <000601cf505e$d3b6bc70$7b243550$@gmail.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Fri, 04 Apr 2014 20:22:59 -0600 (MDT) Cc: ports@freebsd.org, 'Robert Huff' X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Apr 2014 02:23:01 -0000 On Fri, 4 Apr 2014, sindrome wrote: > There is a major inconsistency with what pkg_version -v says is > outdated and what pkgng says. Of course. pkg_version looks at the text files in /var/db/pkg, while pkg looks at the database local.sqlite in that directory. The first step in using pkg is running pkg2ng, which imports the old information from the text files into the sqlite table. After that, pkg_version should not be used. It's getting information from an outdated database.