Displaying 5 results from an estimated 5 matches for "rpm_get_all_requires".
2015 Oct 13
0
[PATCH 4/4] rpm: Choose providers better (RHBZ#1266918).
...e2 in
+ let names = List.sort cmp names in
+ let best_name = List.hd names in
+ if !settings.debug >= 2 then
+ printf "supermin: rpm: multiple providers: picked %s\n" best_name;
+ Some best_name
+ with Not_found -> None
let rpm_get_all_requires pkgs =
let get pkg =
@@ -226,20 +260,9 @@ let rpm_get_all_requires pkgs =
rpm_pkg_requires (get_rpm ()) (rpm_package_to_string pkg) in
let pkgs' = Array.fold_left (
fun set x ->
- try
- let provides =
- try Hashtbl.find rpm_providers x...
2015 Oct 13
1
[PATCH v2] rpm: Choose providers better (RHBZ#1266918).
This is v2 of the 4/4 patch from the original series.
Changes:
- memoize the function this time
- check packages are installed using rpm_package_of_string
However I didn't combine the two case together, because the code is a
bit simpler with them separate.
Rich.
2015 Oct 13
6
[PATCH 0/4] rpm: Choose providers better (RHBZ#1266918).
Fix for
https://bugzilla.redhat.com/show_bug.cgi?id=1266918
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
2014 Feb 25
2
[PATCH supermin v4] Supermin 5 rewrite.
...kg in
+ if rpm.epoch = 0_l then
+ sprintf "%s-%s-%s.%s" rpm.name rpm.version rpm.release rpm.arch
+ else
+ sprintf "%s-%ld:%s-%s.%s"
+ rpm.name rpm.epoch rpm.version rpm.release rpm.arch
+
+let rpm_package_name pkg =
+ let rpm = rpm_of_pkg pkg in
+ rpm.name
+
+let rpm_get_all_requires pkgs =
+ let get pkgs =
+ let cmd = sprintf "\
+ rpm -qR %s |
+ awk '{print $1}' |
+ xargs rpm -q --qf '%%{name}\\n' --whatprovides |
+ grep -v 'no package provides' |
+ sort -u"
+ (quoted_list (List.map rpm_package_to_st...