SHA256
1
0
forked from pool/supermin

zypp: Fix XPath expressions.

OBS-URL: https://build.opensuse.org/package/show/Virtualization/supermin?expand=0&rev=8
This commit is contained in:
Olaf Hering 2013-04-29 15:30:43 +00:00 committed by Git OBS Bridge
parent 8fc45d334d
commit c59582c9da
2 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,27 @@
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")

View File

@ -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