Blame SOURCES/0003-Allow-accessing-toolversion-at-runtime-and-increase-.patch

655a80
From 07a1a0fd83f108a0e9b1f801b52ff2bd26722097 Mon Sep 17 00:00:00 2001
655a80
From: =?UTF-8?q?Ale=C5=A1=20Mat=C4=9Bj?= <amatej@redhat.com>
655a80
Date: Thu, 27 Jan 2022 08:38:27 +0100
655a80
Subject: [PATCH] Allow accessing toolversion at runtime and increase it
655a80
655a80
---
655a80
 src/libsolv.ver      | 1 +
655a80
 src/solvversion.c    | 1 +
655a80
 src/solvversion.h.in | 3 ++-
655a80
 tools/common_write.c | 1 +
655a80
 4 files changed, 5 insertions(+), 1 deletion(-)
655a80
655a80
diff --git a/src/libsolv.ver b/src/libsolv.ver
655a80
index 4c6fbf4f..89517f50 100644
655a80
--- a/src/libsolv.ver
655a80
+++ b/src/libsolv.ver
655a80
@@ -306,6 +306,7 @@ SOLV_1.0 {
655a80
 		solv_version_major;
655a80
 		solv_version_minor;
655a80
 		solv_version_patch;
655a80
+		solv_toolversion;
655a80
 		solvable_add_deparray;
655a80
 		solvable_add_idarray;
655a80
 		solvable_add_poolstr_array;
655a80
diff --git a/src/solvversion.c b/src/solvversion.c
655a80
index d66e1958..51d57a63 100644
655a80
--- a/src/solvversion.c
655a80
+++ b/src/solvversion.c
655a80
@@ -11,3 +11,4 @@ const char solv_version[] = LIBSOLV_VERSION_STRING;
655a80
 int solv_version_major = LIBSOLV_VERSION_MAJOR;
655a80
 int solv_version_minor = LIBSOLV_VERSION_MINOR;
655a80
 int solv_version_patch = LIBSOLV_VERSION_PATCH;
655a80
+const char solv_toolversion[] = LIBSOLV_TOOLVERSION;
655a80
diff --git a/src/solvversion.h.in b/src/solvversion.h.in
655a80
index 43b566a1..da0ad743 100644
655a80
--- a/src/solvversion.h.in
655a80
+++ b/src/solvversion.h.in
655a80
@@ -23,6 +23,7 @@ extern const char solv_version[];
655a80
 extern int solv_version_major;
655a80
 extern int solv_version_minor;
655a80
 extern int solv_version_patch;
655a80
+extern const char solv_toolversion[];
655a80
 
655a80
 #cmakedefine LIBSOLV_FEATURE_LINKED_PKGS
655a80
 #cmakedefine LIBSOLV_FEATURE_COMPLEX_DEPS
655a80
@@ -48,6 +49,6 @@ extern int solv_version_patch;
655a80
 #cmakedefine LIBSOLVEXT_FEATURE_ZCHUNK_COMPRESSION
655a80
 
655a80
 /* see tools/common_write.c for toolversion history */
655a80
-#define LIBSOLV_TOOLVERSION "1.1"
655a80
+#define LIBSOLV_TOOLVERSION "1.2"
655a80
 
655a80
 #endif
655a80
diff --git a/tools/common_write.c b/tools/common_write.c
655a80
index 36f8dd89..8fda3e33 100644
655a80
--- a/tools/common_write.c
655a80
+++ b/tools/common_write.c
655a80
@@ -19,6 +19,7 @@
655a80
 /* toolversion history
655a80
  * 1.0: initial tool version
655a80
  * 1.1: changed PRODUCT_ENDOFLIFE parsing
655a80
+ * 1.2: added UPDATE_COLLECTIONLIST to updateinfo
655a80
 */
655a80
 
655a80
 static int
655a80
-- 
655a80
2.31.1
655a80