git: dsynth - Improve compatibility with newer pkg's
Matthew Dillon
dillon at crater.dragonflybsd.org
Thu Dec 12 12:38:58 PST 2019
commit 7f2422cff2526f05b2fe37ad1986c342c1790fdb
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Thu Dec 12 12:35:30 2019 -0800
dsynth - Improve compatibility with newer pkg's
* pkg is going through a bit of an evolution in its support for
suffixes other than .txz, causing some issues with the generation
of the database and meta file that 'pkg install' fetches.
* In versions before 1.12 pkg always generated .txz database and
meta files, but pkg install looked for the suffix specified in
meta.txz for the database files.
In this case the database files have to be recompressed to
the requested suffix.
* In versions >= 1.12 (up until the next fix), pkg generates
the requested suffix, but unfortunately also for the meta file
too whereas pkg install still looks for 'meta.txz'.
In this case the meta.<suffix> file has to be recompressed
using xz to a .txz.
* At some future point pkg repo and pkg install will match up,
and dsynth may need another commit then.
In this case no recompression will be needed to make pkg repo
and pkg install play nicely with each other.
Summary of changes:
usr.bin/dsynth/repo.c | 62 +++++++++++++++++++++++++++++++++++++--------------
1 file changed, 45 insertions(+), 17 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/7f2422cff2526f05b2fe37ad1986c342c1790fdb
--
DragonFly BSD source repository
More information about the Commits
mailing list