From: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
To: grub-devel@gnu.org
Subject: Re: Remove the usage of "local" in scripts introduces a small bug in "version_test_gt()"
Date: Fri, 23 Dec 2011 12:02:16 +0100 [thread overview]
Message-ID: <4EF45FB8.5070103@gmail.com> (raw)
In-Reply-To: <CACB1AetQQ26zYAJJVTsKmzhdXz1kYsJCQpEjZvYKbyFPYFiseA@mail.gmail.com>
Committed, thanks. Next time please include Changelog entry and make
sure that your patch isn't word-wrapped by your mailer.
On 28.11.2011 10:08, Lukas Anzinger wrote:
> Hi,
>
> it looks to me that the patch which removes the usage of "local" in
> scripts (http://lists.gnu.org/archive/html/grub-devel/2011-11/msg00037.html)
> introduces a bug in the function version_test_gt() in the file
> util/grub-mkconfig_lib.in:
>
> The variable $cmp is set to "gt" or "ge", however,
> $version_test_gt_cmp is used instead and the case has no effect.
>
> This patch should fix it:
>
> --- a/util/grub-mkconfig_lib.in 2011-11-28 09:42:11.000000000 +0100
> +++ b/util/grub-mkconfig_lib.in 2011-11-28 10:00:00.000000000 +0100
> @@ -198,8 +198,8 @@
> fi
> case "$version_test_gt_a:$version_test_gt_b" in
> *.old:*.old) ;;
> - *.old:*) version_test_gt_a="`echo -n "$version_test_gt_a" | sed
> -e 's/\.old$//'`" ; cmp=gt ;;
> - *:*.old) version_test_gt_b="`echo -n "$version_test_gt_b" | sed
> -e 's/\.old$//'`" ; cmp=ge ;;
> + *.old:*) version_test_gt_a="`echo -n "$version_test_gt_a" | sed
> -e 's/\.old$//'`" ; version_test_gt_cmp=gt ;;
> + *:*.old) version_test_gt_b="`echo -n "$version_test_gt_b" | sed
> -e 's/\.old$//'`" ; version_test_gt_cmp=ge ;;
> esac
> version_test_numeric "$version_test_gt_a" "$version_test_gt_cmp"
> "$version_test_gt_b"
> return "$?"
>
> I noticed the problem when I tried to apply the patch
> "dpkg_version_comparison.patch" from Debian.
>
> Maybe someone should take a look at the other variables ...
>
> Regards,
>
> Lukas
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel
>
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
prev parent reply other threads:[~2011-12-23 11:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-28 9:08 Remove the usage of "local" in scripts introduces a small bug in "version_test_gt()" Lukas Anzinger
2011-12-23 11:02 ` Vladimir 'φ-coder/phcoder' Serbinenko [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4EF45FB8.5070103@gmail.com \
--to=phcoder@gmail.com \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.