SHA256
1
0
forked from pool/supermin
supermin/0012-zypp-Fix-XPath-expressions.patch

28 lines
887 B
Diff

From 3329297abe2e7e055337583b2221fcade85f9f6b Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Mon, 29 Apr 2013 16:24:05 +0100
Subject: zypp: Fix XPath expressions.
See:
https://www.redhat.com/archives/libguestfs/2013-April/thread.html#00075
---
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 5d97205..c269aab 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")