Displaying 4 results from an estimated 4 matches for "pkgs_as_na_rpms".
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
...so it can download any version but only the specific
* architecture.
*)
- 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 cmd =
sprintf "%s%s%s --destdir %s %s"
@@ -309,11 +305,7 @@ let rec fedora_download_all_packages pkgs dir =
(* dnf doesn't create the download directory. *)
mkdir tdir 0o700;
- let rpms = List.map rpm_of_pkg (PackageSet.elements pkgs) in
- l...
2016 Oct 31
5
[PATCH 0/4] supermin: use dnf on Mageia
Hi,
as pointed out by Neal Gompa, Mageia recently introduced dnf in the
distribution (currently only in Cauldron, which is the future Mageia 6),
and most probably it will replace urpmi in the future.
As such, on Mageia make supermin prefer dnf over urpmi when found,
using the same code already used for Fedora.
Related change: make test-harder.sh work explicitly also on Mageia
2014 Nov 24
0
[PATCH] rpm: improve dnf invocation
...ebug level and packager config.
---
src/rpm.ml | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/src/rpm.ml b/src/rpm.ml
index 771022e..46954c8 100644
--- a/src/rpm.ml
+++ b/src/rpm.ml
@@ -308,8 +308,14 @@ let rec fedora_download_all_packages pkgs dir =
let rpms = pkgs_as_NA_rpms pkgs in
let cmd =
- sprintf "%s download --destdir %s %s"
- Config.dnf (quote tdir) (quoted_list rpms) in
+ sprintf "%s download%s%s --destdir %s %s"
+ Config.dnf
+ (if !settings.debug >= 1 then " -v" else " -q")
+...