diff --git a/0012-zypp-Fix-XPath-expressions.patch b/0012-zypp-Fix-XPath-expressions.patch new file mode 100644 index 0000000..77ac162 --- /dev/null +++ b/0012-zypp-Fix-XPath-expressions.patch @@ -0,0 +1,27 @@ +From 3329297abe2e7e055337583b2221fcade85f9f6b Mon Sep 17 00:00:00 2001 +From: "Richard W.M. Jones" +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") diff --git a/supermin.spec b/supermin.spec index a569b5a..55df624 100644 --- a/supermin.spec +++ b/supermin.spec @@ -41,6 +41,7 @@ Patch8: 0008-remove-leading-tabs-in-zypp-driver.patch Patch9: 0009-use-correct-repos.d-in-zypp-driver.patch Patch10: 0010-zypper-Use-instead-of.patch Patch11: 0011-debian-Experiment-with-different-options-for-apt-cac.patch +Patch12: 0012-zypp-Fix-XPath-expressions.patch BuildRequires: autoconf BuildRequires: automake @@ -72,6 +73,7 @@ you need to boot one of them. %patch9 -p1 %patch10 -p1 %patch11 -p1 +%patch12 -p1 %build export ZYPPER=zypper