dsynth - Conditionalize .txz -> other_compression_fmt for pkg repo
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 4 Dec 2019 18:40:25 +0000 (10:40 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 4 Dec 2019 18:40:25 +0000 (10:40 -0800)
commit96cc8f92ce28dbc4069c94b7988d221b2bd0cd12
tree45802c3afbb1328f34576f3ee89a8eeff5665f38
parentdebec64ea5cd4b48576c12b9f1a09eede6076505
dsynth - Conditionalize .txz -> other_compression_fmt for pkg repo

* pkg version 1.12 or later properly uses the compression
  suffix when generating the repo database, the results do
  not need to be recompressed.

  Versions prior to 1.12 needed to be recompressed for
  compression formats other than .txz.

* Conditionalize based on pkg -v output.

Reported-by: zrj
usr.bin/dsynth/repo.c