Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1OYU4P-0008Is-UH for mharc-grub-devel@gnu.org; Mon, 12 Jul 2010 21:14:01 -0400 Received: from [140.186.70.92] (port=33562 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OYU4M-0008GC-Lk for grub-devel@gnu.org; Mon, 12 Jul 2010 21:13:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OYU4L-0005rt-Ki for grub-devel@gnu.org; Mon, 12 Jul 2010 21:13:58 -0400 Received: from smarthost02.mail.zen.net.uk ([212.23.3.141]:50612) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OYU4L-0005rm-F4 for grub-devel@gnu.org; Mon, 12 Jul 2010 21:13:57 -0400 Received: from [82.69.40.219] (helo=riva.pelham.vpn.ucam.org) by smarthost02.mail.zen.net.uk with esmtp (Exim 4.63) (envelope-from ) id 1OYU4J-0002eJ-Tf; Tue, 13 Jul 2010 01:13:56 +0000 Received: from cjwatson by riva.pelham.vpn.ucam.org with local (Exim 3.36 #1 (Debian)) id 1OYU4I-0000Hn-00; Tue, 13 Jul 2010 02:13:54 +0100 Date: Tue, 13 Jul 2010 02:13:53 +0100 From: Colin Watson To: grub-devel@gnu.org Message-ID: <20100713011353.GA1088@riva.ucam.org> References: <20100202200622.28744.65677.reportbug@tux64.internal.ucko.debian.net> <20100713011203.GA1008@riva.ucam.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100713011203.GA1008@riva.ucam.org> User-Agent: Mutt/1.5.18 (2008-05-17) X-Originating-Smarthost02-IP: [82.69.40.219] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) Cc: "Aaron M. Ucko" , 568160-forwarded@bugs.debian.org Subject: Re: grub-common: wrongly sorts 2.6.32-trunk ahead of 2.6.32-1 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jul 2010 01:14:00 -0000 On Tue, Jul 13, 2010 at 02:12:03AM +0100, Colin Watson wrote: > On Tue, Feb 02, 2010 at 03:06:22PM -0500, Aaron M. Ucko wrote: > > --- /usr/lib/grub/grub-mkconfig_lib 2010-01-28 11:05:49.000000000 -0500 > > +++ /home/amu/tmp/grub-mkconfig_lib 2010-02-02 14:38:27.000000000 -0500 > > @@ -163,8 +163,9 @@ > > > > version_test_gt () > > { > > - local a=`echo $1 | sed -e "s/[^-]*-//;s/[._-]\(pre\|rc\|test\|git\|old\)/~\1/g"` > > - local b=`echo $2 | sed -e "s/[^-]*-//;s/[._-]\(pre\|rc\|test\|git\|old\)/~\1/g"` > > + local sedexp="s/[^-]*-//;s/[._-]\(pre\|rc\|test\|git\|old\|trunk\)/~\1/g" > > + local a=`echo $1 | sed -e "$sedexp"` > > + local b=`echo $2 | sed -e "$sedexp"` > > local cmp=gt > > if [ "x$b" = "x" ] ; then > > return 0 > > > > Could you please do so? > > This patch looks reasonable to me (although sorry that I'm late in > paying attention to it). grub-devel, any objections? Err, please disregard this. Apparently the \(pre\|rc\|test\|git\|old\) stuff was already a Debian-specific patch (I guess it is a bit too much hardcoded magic for upstream, really). Sorry for the noise, -- Colin Watson [cjwatson@ubuntu.com]