From: Aleš Matěj Date: Thu, 27 Jan 2022 07:38:27 +0000 (+0100) Subject: Allow accessing toolversion at runtime and increase it X-Git-Tag: 0.7.21~14^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=021ab11d9a515a51b9c006948cfd7256fedc18d0;p=thirdparty%2Flibsolv.git Allow accessing toolversion at runtime and increase it --- diff --git a/src/libsolv.ver b/src/libsolv.ver index ee40d0ad..8f20937a 100644 --- a/src/libsolv.ver +++ b/src/libsolv.ver @@ -304,6 +304,7 @@ SOLV_1.0 { solv_version_major; solv_version_minor; solv_version_patch; + solv_toolversion; solvable_add_deparray; solvable_add_idarray; solvable_add_poolstr_array; diff --git a/src/solvversion.c b/src/solvversion.c index d66e1958..51d57a63 100644 --- a/src/solvversion.c +++ b/src/solvversion.c @@ -11,3 +11,4 @@ const char solv_version[] = LIBSOLV_VERSION_STRING; int solv_version_major = LIBSOLV_VERSION_MAJOR; int solv_version_minor = LIBSOLV_VERSION_MINOR; int solv_version_patch = LIBSOLV_VERSION_PATCH; +const char solv_toolversion[] = LIBSOLV_TOOLVERSION; diff --git a/src/solvversion.h.in b/src/solvversion.h.in index 43b566a1..da0ad743 100644 --- a/src/solvversion.h.in +++ b/src/solvversion.h.in @@ -23,6 +23,7 @@ extern const char solv_version[]; extern int solv_version_major; extern int solv_version_minor; extern int solv_version_patch; +extern const char solv_toolversion[]; #cmakedefine LIBSOLV_FEATURE_LINKED_PKGS #cmakedefine LIBSOLV_FEATURE_COMPLEX_DEPS @@ -48,6 +49,6 @@ extern int solv_version_patch; #cmakedefine LIBSOLVEXT_FEATURE_ZCHUNK_COMPRESSION /* see tools/common_write.c for toolversion history */ -#define LIBSOLV_TOOLVERSION "1.1" +#define LIBSOLV_TOOLVERSION "1.2" #endif diff --git a/tools/common_write.c b/tools/common_write.c index 36f8dd89..8fda3e33 100644 --- a/tools/common_write.c +++ b/tools/common_write.c @@ -19,6 +19,7 @@ /* toolversion history * 1.0: initial tool version * 1.1: changed PRODUCT_ENDOFLIFE parsing + * 1.2: added UPDATE_COLLECTIONLIST to updateinfo */ static int