From owner-freebsd-ports@FreeBSD.ORG Fri Aug 1 23:54:51 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BD8925A3 for ; Fri, 1 Aug 2014 23:54:51 +0000 (UTC) Received: from mail.grem.de (outcast.grem.de [213.239.217.27]) by mx1.freebsd.org (Postfix) with SMTP id 12E1E29C9 for ; Fri, 1 Aug 2014 23:54:50 +0000 (UTC) Received: (qmail 999 invoked by uid 89); 1 Aug 2014 23:48:08 -0000 Received: from unknown (HELO bsd64.grem.de) (mg@grem.de@194.97.158.66) by mail.grem.de with ESMTPA; 1 Aug 2014 23:48:08 -0000 Date: Sat, 2 Aug 2014 01:48:11 +0200 From: Michael Gmelin To: freebsd-ports@freebsd.org Subject: pkg: pkg repo most recent package for origin? Message-ID: <20140802014811.6fb19d0b@bsd64.grem.de> X-Mailer: Claws Mail 3.10.1 (GTK+ 2.24.22; amd64-portbld-freebsd10.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Baptiste Daroussin X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Aug 2014 23:54:51 -0000 pkg-repo(8) says: To create a package repository catalogue you must specify the top-level directory where all the packages are stored as repo-path. pkg repo will search the filesystem beneath repo-path to find all the packages it con- tains. Symbolic links are ignored, and *only the most recent package for each origin is included in the catalogue.* I played with this tonight and had a couple of cases where this didn't work, e.g. git-1.7.11.5.txz git-2.0.2.txz or pkg-1.3.3.txz pkg-1.3.4.txz pkg info -F git-1* git-1.7.11.5 Name : git Version : 1.7.11.5 Installed on : Thu Jan 1 00:00:00 UTC 1970 Origin : devel/git ... pkg info -F git-2* git-2.0.2 Name : git Version : 2.0.2 Installed on : Thu Jan 1 00:00:00 UTC 1970 Origin : devel/git ... pkg repo . signkey Creates a repository that only includes git-2.0.2, I have to delete git-1.7.11.5.txz to create repo that contains the new version. Is this a bug? Thanks Michael -- Michael Gmelin