Author: juhliarik Date: Thu Dec 4 09:35:11 2008 New Revision: 53862 URL: http://svn.opensuse.org/viewcvs/yast?rev=53862&view=rev Log: updated fix for handling onetimeboot and new version 2.17.45 Modified: trunk/bootloader/VERSION trunk/bootloader/package/yast2-bootloader.changes trunk/bootloader/src/routines/misc.ycp Modified: trunk/bootloader/VERSION URL: http://svn.opensuse.org/viewcvs/yast/trunk/bootloader/VERSION?rev=53862&... ============================================================================== --- trunk/bootloader/VERSION (original) +++ trunk/bootloader/VERSION Thu Dec 4 09:35:11 2008 @@ -1 +1 @@ -2.17.44 +2.17.45 Modified: trunk/bootloader/package/yast2-bootloader.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/bootloader/package/yast2-bootload... ============================================================================== --- trunk/bootloader/package/yast2-bootloader.changes (original) +++ trunk/bootloader/package/yast2-bootloader.changes Thu Dec 4 09:35:11 2008 @@ -1,4 +1,9 @@ ------------------------------------------------------------------- +Thu Dec 4 09:34:22 CET 2008 - juhliarik@suse.cz + +- 2.17.45 + +------------------------------------------------------------------- Tue Dec 2 16:28:27 CET 2008 - juhliarik@suse.cz - added fix for onetime boot if default is windows (bnc #339024) Modified: trunk/bootloader/src/routines/misc.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/bootloader/src/routines/misc.ycp?... ============================================================================== --- trunk/bootloader/src/routines/misc.ycp (original) +++ trunk/bootloader/src/routines/misc.ycp Thu Dec 4 09:35:11 2008 @@ -2016,6 +2016,23 @@ return value; } +/** + * Fuction delete " " on the beginning of string + * + */ + +string delete_white_space(string temp) +{ + string ret = temp; + while (findfirstof(temp," ") == 0) + { + temp = substring(temp, 1); + + } + ret = temp; + return temp; +} + /** bnc #440125 - default boot section with failsafe args * Compare append from default linux section with append from @@ -2026,7 +2043,9 @@ boolean compareAppends(string default_append, string section_append) { integer deuce = 0; - + // delete white space on the beginning of string + default_append = delete_white_space(default_append); + section_append = delete_white_space(section_append); // check valid append for section if (size(section_append) < 3) return false; -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org