pkg: pkg repo most recent package for origin?
Michael Gmelin
grembo at freebsd.org
Fri Aug 1 23:31:56 UTC 2014
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
More information about the freebsd-ports
mailing list