]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
Allow accessing toolversion at runtime and increase it 486/head
authorAleš Matěj <amatej@redhat.com>
Thu, 27 Jan 2022 07:38:27 +0000 (08:38 +0100)
committerAleš Matěj <amatej@redhat.com>
Thu, 27 Jan 2022 07:48:55 +0000 (08:48 +0100)
src/libsolv.ver
src/solvversion.c
src/solvversion.h.in
tools/common_write.c

index ee40d0ada7e27fbb6155973d3aa313cff216902b..8f20937aecd2947982c41fc0eb2afcc9e08b8182 100644 (file)
@@ -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;
index d66e195898416f5c5b2516bf5b4bba764656ec52..51d57a63915fe9a5dac19e1a0e757bbff8e9160d 100644 (file)
@@ -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;
index 43b566a11ffc1c37aa08838fd384d9fa72155874..da0ad743a5affa7250b8978ba783595a2b32aa14 100644 (file)
@@ -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
index 36f8dd89b8bb46350fbbcadfa911a13fe84c713c..8fda3e33fd824e3015b50ac9b8f48182c459e825 100644 (file)
@@ -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