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