SHA256
1
0
forked from pool/supermin
supermin/0010-zypper-Use-instead-of.patch

26 lines
877 B
Diff

From 5402943711abee13357c4951a96eeb634c2b9910 Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Thu, 11 Apr 2013 23:09:30 +0100
Subject: zypper: Use %%@ instead of %@.
OCaml 3.12.1 can't handle incorrect format string pattern "%@".
---
src/supermin_zypp_rpm.ml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/supermin_zypp_rpm.ml b/src/supermin_zypp_rpm.ml
index ddc4085..5d97205 100644
--- a/src/supermin_zypp_rpm.ml
+++ b/src/supermin_zypp_rpm.ml
@@ -139,8 +139,8 @@ zypper \
--dry-run \
%s | \
xml sel -t \
- -m \"stream/install-summary/to-install/solvable[%@type='package']\" \
- -c \"string(%@name)\" -n
+ -m \"stream/install-summary/to-install/solvable[%%@type='package']\" \
+ -c \"string(%%@name)\" -n
"
(if verbose then "set -x" else "")
(if verbose then "--verbose --verbose" else "--quiet")