From: Michael Schroeder Date: Thu, 21 Jul 2016 09:52:37 +0000 (+0200) Subject: Move LIBSOLV_TOOLVERSION to solvversion.h X-Git-Tag: 0.6.23~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c99d5a89ba48e238ee7dac56641b74c979b48a6;p=thirdparty%2Flibsolv.git Move LIBSOLV_TOOLVERSION to solvversion.h Users like libzypp want to check if a solv file was written with the current tool version. --- diff --git a/src/solvversion.h.in b/src/solvversion.h.in index e84cc548..75dc63f1 100644 --- a/src/solvversion.h.in +++ b/src/solvversion.h.in @@ -43,4 +43,7 @@ extern int solv_version_patch; #cmakedefine LIBSOLVEXT_FEATURE_LZMA_COMPRESSION #cmakedefine LIBSOLVEXT_FEATURE_BZIP2_COMPRESSION +/* see tools/common_write.c for toolversion history */ +#define LIBSOLV_TOOLVERSION "1.1" + #endif diff --git a/tools/common_write.c b/tools/common_write.c index 6de8a695..1336b3f4 100644 --- a/tools/common_write.c +++ b/tools/common_write.c @@ -16,8 +16,12 @@ #include "repo.h" #include "repo_write.h" #include "common_write.h" +#include "solvversion.h" -#define LIBSOLV_TOOLVERSION "1.0" +/* toolversion history + * 1.0: initial tool version + * 1.1: changed PRODUCT_ENDOFLIFE parsing +*/ static Id verticals[] = { SOLVABLE_AUTHORS,