Author: ug Date: Wed Aug 31 13:31:17 2011 New Revision: 65466 URL: http://svn.opensuse.org/viewcvs/yast?rev=65466&view=rev Log: relurl did not work in 2nd stage (bnc#666189) Modified: branches/SuSE-Code-11-SP2-Branch/autoinstallation/package/autoyast2.changes branches/SuSE-Code-11-SP2-Branch/autoinstallation/src/clients/inst_autopost.ycp Modified: branches/SuSE-Code-11-SP2-Branch/autoinstallation/package/autoyast2.changes URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/autoinstallation/package/autoyast2.changes?rev=65466&r1=65465&r2=65466&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/autoinstallation/package/autoyast2.changes (original) +++ branches/SuSE-Code-11-SP2-Branch/autoinstallation/package/autoyast2.changes Wed Aug 31 13:31:17 2011 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Wed Aug 31 13:30:54 CEST 2011 - ug@suse.de + +- relurl did not work in 2nd stage, like for post + and init-scripts (bnc#666189) + +------------------------------------------------------------------- Mon Aug 29 13:37:44 CEST 2011 - ug@suse.de - fixed a potential endless loop when doing online updates Modified: branches/SuSE-Code-11-SP2-Branch/autoinstallation/src/clients/inst_autopost.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/autoinstallation/src/clients/inst_autopost.ycp?rev=65466&r1=65465&r2=65466&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/autoinstallation/src/clients/inst_autopost.ycp (original) +++ branches/SuSE-Code-11-SP2-Branch/autoinstallation/src/clients/inst_autopost.ycp Wed Aug 31 13:31:17 2011 @@ -32,6 +32,27 @@ return; } + /** + * Get directory name + * @param string path + * @return string dirname + */ + define string dirname (string filePath) + ``{ + list pathComponents = splitstring(filePath, "/"); + string last = pathComponents[size(pathComponents) -1]:""; + string ret = substring(filePath, 0 , size(filePath) - size(last)); + return (ret); + } + + any autoinstall = SCR::Read(.etc.install_inf.AutoYaST); + y2milestone("cmd line=%1", autoinstall ); + if (autoinstall != nil && is ( autoinstall , string ) ) { + AutoinstConfig::ParseCmdLine((string)autoinstall); + AutoinstConfig::directory = dirname(AutoinstConfig::filepath); + y2milestone("dir = %1", AutoinstConfig::directory); + } + list<string> packages = []; string resource = ""; string module_auto = ""; -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org