From: Ian Campbell Subject: Re: [PATCH] pygrub: add quoting to install receipe Date: Thu, 2 Aug 2012 10:01:18 +0100 Message-ID: <1343898078.27221.106.camel@zakaz.uk.xensource.com> References: <480b8f03e6635873e32b.1343895878@probook.site> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <480b8f03e6635873e32b.1343895878@probook.site> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Olaf Hering Cc: "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Thu, 2012-08-02 at 09:24 +0100, Olaf Hering wrote: > # HG changeset patch > # User Olaf Hering > # Date 1343895857 -7200 > # Node ID 480b8f03e6635873e32b6fdcb4a8e19b7b8b3a04 > # Parent 3d622e2c7cfb15b37498e9bb8f1005516fe99f2f > pygrub: add quoting to install receipe > > The changeset 25694:e20085770cb5 causes a syntax error if readline > returns nothing due to non-existant path: > > [ 148s] set -e; if [ `readlink -f /home/abuild/rpmbuild/BUILD/xen-4.2.25700/non-dbg/dist/install//usr/bin` != \ > [ 148s] `readlink -f /usr/lib64/xen/bin` ]; then \ > [ 148s] ln -sf /usr/lib64/xen/bin/pygrub /home/abuild/rpmbuild/BUILD/xen-4.2.25700/non-dbg/dist/install//usr/bin; \ > [ 148s] fi > [ 148s] /bin/sh: line 0: [: /home/abuild/rpmbuild/BUILD/xen-4.2.25700/non-dbg/dist/install/usr/bin: unary operator expected > > Add quoting to fix the error. > > Signed-off-by: Olaf Hering Acked-by: Ian Campbell I would apply but xenbits appears to be down. I've pinged the admins. Ian.