[yast-commit] r62354 - in /branches/SuSE-Code-11-SP1-Branch/product-creator: VERSION package/yast2-product-creator.changes src/commandline.ycp
Author: jsuchome Date: Thu Aug 5 13:27:33 2010 New Revision: 62354 URL: http://svn.opensuse.org/viewcvs/yast?rev=62354&view=rev Log: - command line mode fixes: initialize the sources, automatically import GPG keys (bnc#626512) - 2.17.37 Modified: branches/SuSE-Code-11-SP1-Branch/product-creator/VERSION branches/SuSE-Code-11-SP1-Branch/product-creator/package/yast2-product-creator.changes branches/SuSE-Code-11-SP1-Branch/product-creator/src/commandline.ycp Modified: branches/SuSE-Code-11-SP1-Branch/product-creator/VERSION URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP1-Branch/product-creator/VERSION?rev=62354&r1=62353&r2=62354&view=diff ============================================================================== --- branches/SuSE-Code-11-SP1-Branch/product-creator/VERSION (original) +++ branches/SuSE-Code-11-SP1-Branch/product-creator/VERSION Thu Aug 5 13:27:33 2010 @@ -1 +1 @@ -2.17.36 +2.17.37 Modified: branches/SuSE-Code-11-SP1-Branch/product-creator/package/yast2-product-creator.changes URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP1-Branch/product-creator/package/yast2-product-creator.changes?rev=62354&r1=62353&r2=62354&view=diff ============================================================================== --- branches/SuSE-Code-11-SP1-Branch/product-creator/package/yast2-product-creator.changes (original) +++ branches/SuSE-Code-11-SP1-Branch/product-creator/package/yast2-product-creator.changes Thu Aug 5 13:27:33 2010 @@ -1,4 +1,11 @@ ------------------------------------------------------------------- +Thu Aug 5 13:19:11 CEST 2010 - jsuchome@suse.cz + +- command line mode fixes: initialize the sources, automatically + import GPG keys (bnc#626512) +- 2.17.37 + +------------------------------------------------------------------- Wed Jul 28 15:30:51 CEST 2010 - jsuchome@suse.cz - save config.xml after changing the package list (bnc#599952) Modified: branches/SuSE-Code-11-SP1-Branch/product-creator/src/commandline.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP1-Branch/product-creator/src/commandline.ycp?rev=62354&r1=62353&r2=62354&view=diff ============================================================================== --- branches/SuSE-Code-11-SP1-Branch/product-creator/src/commandline.ycp (original) +++ branches/SuSE-Code-11-SP1-Branch/product-creator/src/commandline.ycp Thu Aug 5 13:27:33 2010 @@ -13,9 +13,15 @@ import "Progress"; import "ProductCreator"; import "RichText"; + import "SourceManager"; textdomain "product-creator"; + // dummy function to return true when callback is invoked (from AutoInstall.ycp) + define boolean callbackTrue_boolean_map_integer(map<string,any> dummy_map, integer dummy) { + return true; + } + void ProcessConfigFileOption(map params) { if (haskey(params, "configfile")) @@ -156,6 +162,20 @@ ProductCreator::Readisolinux(); } + if (action != "show") + { + // initialize the sources before commiting configuration + + ProductCreator::ResetArch(); + // unload all active sources (reset the internal state, see bnc#469191) + Pkg::SourceFinishAll(); + + SourceManager::ReadSources(); + + // automatically import GPG keys when adding repository + Pkg::CallbackImportGpgKey (callbackTrue_boolean_map_integer); + } + // save the new configuration into global map, parse autoyast profile ProductCreator::CommitConfig (); } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
jsuchome@svn.opensuse.org