Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Aug 2014 01:31:50 +0200
From:      Michael Gmelin <grembo@freebsd.org
To:        freebsd-ports@freebsd.org
Cc:        Baptiste Daroussin <bapt@FreeBSD.org>
Subject:   pkg: pkg repo most recent package for origin?
Message-ID:  <20140802013150.482a2bd2@bsd64.grem.de>

next in thread | raw e-mail | index | archive | help
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



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