Displaying 2 results from an estimated 2 matches for "is_zypper_1_9_14".
2014 Nov 24
5
[PATCH] rpm: use librpm's rpmvercmp
Bind and use rpmvercmp to compare versions of packages when sorting
them, instead of an own string-based comparison function.
---
src/librpm-c.c | 12 ++++++++++++
src/librpm.ml | 1 +
src/librpm.mli | 1 +
src/rpm.ml | 2 +-
4 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/src/librpm-c.c b/src/librpm-c.c
index 1ae3bad..fc847d6 100644
--- a/src/librpm-c.c
+++
2014 Nov 24
0
[PATCH] rpm: isolate the "packages as NA RPM list" code
...dir =
let tdir = !settings.tmpdir // string_random8 () in
- let rpms = List.map rpm_of_pkg (PackageSet.elements pkgs) in
- let rpms = List.map (
- fun { name = name; arch = arch } ->
- sprintf "%s.%s" name arch
- ) rpms in
+ let rpms = pkgs_as_NA_rpms pkgs in
let is_zypper_1_9_14 =
!zypper_major > 1
@@ -399,6 +387,13 @@ and mageia_download_all_packages pkgs dir =
rpm_unpack tdir dir
+and pkgs_as_NA_rpms pkgs =
+ let rpms = List.map rpm_of_pkg (PackageSet.elements pkgs) in
+ List.map (
+ fun { name = name; arch = arch } ->
+ sprintf "%s.%s&qu...