Displaying 5 results from an estimated 5 matches for "fedora_download_all_packages".
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
Just code motion, no functional change.
---
src/rpm.ml | 25 ++++++++++---------------
1 file changed, 10 insertions(+), 15 deletions(-)
diff --git a/src/rpm.ml b/src/rpm.ml
index ce803e1..771022e 100644
--- a/src/rpm.ml
+++ b/src/rpm.ml
@@ -288,11 +288,7 @@ let rec fedora_download_all_packages pkgs dir =
* Use name.arch 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 arc...
2014 Nov 24
0
[PATCH] rpm: improve dnf invocation
Handle debug 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...
2016 Oct 31
5
[PATCH 0/4] supermin: use dnf on Mageia
...rmin 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
("broken" since the recent switch to /etc/os-release).
Thanks,
Pino Toscano (4):
tests: add Mageia checks in test-harder
rpm: move fedora_download_all_packages_with_dnf around
rpm: isolate actual mageia download in own function
rpm: mageia: prefer dnf over urpmi
README | 3 +--
src/rpm.ml | 49 +++++++++++++++++++++++++++----------------------
tests/test-harder.sh | 34 ++++++++++++++++++++++++++++++++++
3 files changed, 62...
2014 Sep 17
4
[PATCH 0/2] supermin: use librpm for rpm support
Hi,
this work makes supermin use the rpm library instead of invoking rpm
directly. This, together with a needed refactoring of the dependency
resolution, should help in make supermin faster on rpm-based systems.
Surely the patches will still need polishing, especially for behaviours
of newly added stuff, but at least it's a good starting point.
Noting that you need rpm-devel on most of rpm