supermin/0011-rpm-use-the-proper-parameter.patch
2014-10-07 15:27:35 +02:00

26 lines
811 B
Diff

From 17317277c8c7a7051502c975d3aa03d9863ca552 Mon Sep 17 00:00:00 2001
From: Pino Toscano <ptoscano@redhat.com>
Date: Tue, 7 Oct 2014 10:51:01 +0200
Subject: [PATCH] rpm: use the proper parameter
---
src/rpm.ml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/rpm.ml b/src/rpm.ml
index 4c2156a..b88ac73 100644
--- a/src/rpm.ml
+++ b/src/rpm.ml
@@ -137,7 +137,7 @@ let rpmh = Hashtbl.create 13
let rpm_package_of_string str =
let query rpm =
- let rpms = Array.to_list (rpm_installed (get_rpm ()) str) in
+ let rpms = Array.to_list (rpm_installed (get_rpm ()) rpm) in
(* RPM will return multiple hits when either multiple versions or
* multiple arches are installed at the same time. We are only
* interested in the highest version with the best
--
1.9.3