Accepting request 964777 from home:michael-chang:branches:Base:System
- Fix wrong order in kernel sorting of listing rc before final release (bsc#1197376) OBS-URL: https://build.opensuse.org/request/show/964777 OBS-URL: https://build.opensuse.org/package/show/Base:System/grub2?expand=0&rev=410
This commit is contained in:
parent
a4bd7dba38
commit
ede0f18d2b
@ -1,12 +1,28 @@
|
||||
diff -urN grub-2.02~beta2.old/util/grub-mkconfig_lib.in grub-2.02~beta2/util/grub-mkconfig_lib.in
|
||||
--- grub-2.02~beta2.old/util/grub-mkconfig_lib.in 2014-04-11 15:20:42.451394845 +0200
|
||||
+++ grub-2.02~beta2/util/grub-mkconfig_lib.in 2014-04-11 15:58:02.940618803 +0200
|
||||
@@ -229,7 +229,7 @@
|
||||
v2:
|
||||
Fix wrong sorting order if version contains "-" delimiter
|
||||
|
||||
Index: grub-2.06/util/grub-mkconfig_lib.in
|
||||
===================================================================
|
||||
--- grub-2.06.orig/util/grub-mkconfig_lib.in
|
||||
+++ grub-2.06/util/grub-mkconfig_lib.in
|
||||
@@ -220,9 +220,9 @@ version_sort ()
|
||||
|
||||
version_test_numeric ()
|
||||
{
|
||||
- version_test_numeric_a="$1"
|
||||
+ version_test_numeric_a="`echo "$1" | sed -e 's/-\([^0-9]*\)$/\.\1/' -e 's/-/~/g' -e 's/~\([^~]*\)$/-\1/'`"
|
||||
version_test_numeric_cmp="$2"
|
||||
- version_test_numeric_b="$3"
|
||||
+ version_test_numeric_b="`echo "$3" | sed -e 's/-\([^0-9]*\)$/\.\1/' -e 's/-/~/g' -e 's/~\([^~]*\)$/-\1/'`"
|
||||
if [ "$version_test_numeric_a" = "$version_test_numeric_b" ] ; then
|
||||
case "$version_test_numeric_cmp" in
|
||||
ge|eq|le) return 0 ;;
|
||||
@@ -234,7 +234,7 @@ version_test_numeric ()
|
||||
version_test_numeric_a="$version_test_numeric_b"
|
||||
version_test_numeric_b="$version_test_numeric_c"
|
||||
fi
|
||||
- if (echo "$version_test_numeric_a" ; echo "$version_test_numeric_b") | version_sort | head -n 1 | grep -qx "$version_test_numeric_b" ; then
|
||||
+ if [ "`printf '%s\n' "$version_test_gt_a" "$version_test_gt_b" | /usr/lib/rpm/rpmsort -r | head -n1`" = "$version_test_gt_a" ] ; then
|
||||
+ if [ "`printf '%s\n' "$version_test_numeric_a" "$version_test_numeric_b" | /usr/lib/rpm/rpmsort -r | head -n1`" = "$version_test_numeric_a" ] ; then
|
||||
return 0
|
||||
else
|
||||
return 1
|
||||
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 25 03:46:55 UTC 2022 - Michael Chang <mchang@suse.com>
|
||||
|
||||
- Fix wrong order in kernel sorting of listing rc before final release
|
||||
(bsc#1197376)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 18 09:10:07 UTC 2022 - Michael Chang <mchang@suse.com>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user