From 3c99d5a89ba48e238ee7dac56641b74c979b48a6 Mon Sep 17 00:00:00 2001 From: Michael Schroeder Date: Thu, 21 Jul 2016 11:52:37 +0200 Subject: [PATCH] Move LIBSOLV_TOOLVERSION to solvversion.h Users like libzypp want to check if a solv file was written with the current tool version. --- src/solvversion.h.in | 3 +++ tools/common_write.c | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) 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, -- 2.47.3