From: Ian Jackson Subject: Re: [PATCH] pygrub: extlinux parsing correctness Date: Tue, 7 Feb 2012 17:21:34 +0000 Message-ID: <20273.23966.351543.794136@mariner.uk.xensource.com> References: <67d41a95b5a77b91b16a.1328539209@debian.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <67d41a95b5a77b91b16a.1328539209@debian.localdomain> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Roger Pau Monne Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Roger Pau Monne writes ("[Xen-devel] [PATCH] pygrub: extlinux parsing correctness"): > pygrub: extlinux parsing correctness > > The "in" operator should be used instead of the find method, since > we are only interested in knowing whether the line contains "initrd=", > but we don't care about it's position. Also fixes an error that > happens when initrd= it's at the start of the line, since find returns > 0 and is evaluated as False. > > Signed-off-by: Roger Pau Monne Acked-by: Ian Jackson Committed-by: Ian Jackson