Author: jsuchome
Date: Thu Aug 9 15:50:14 2007
New Revision: 40128
URL: http://svn.opensuse.org/viewcvs/yast?rev=40128&view=rev
Log:
- kiwi UI: enable creating config from scratch, with default
YaST sources
- 2.15.3
Modified:
trunk/product-creator/VERSION
trunk/product-creator/package/yast2-product-creator.changes
trunk/product-creator/src/kiwi.desktop
trunk/product-creator/src/kiwi_dialogs.ycp
Modified: trunk/product-creator/VERSION
URL: http://svn.opensuse.org/viewcvs/yast/trunk/product-creator/VERSION?rev=40128&r1=40127&r2=40128&view=diff
==============================================================================
--- trunk/product-creator/VERSION (original)
+++ trunk/product-creator/VERSION Thu Aug 9 15:50:14 2007
@@ -1 +1 @@
-2.15.2
+2.15.3
Modified: trunk/product-creator/package/yast2-product-creator.changes
URL: http://svn.opensuse.org/viewcvs/yast/trunk/product-creator/package/yast2-product-creator.changes?rev=40128&r1=40127&r2=40128&view=diff
==============================================================================
--- trunk/product-creator/package/yast2-product-creator.changes (original)
+++ trunk/product-creator/package/yast2-product-creator.changes Thu Aug 9 15:50:14 2007
@@ -1,4 +1,11 @@
-------------------------------------------------------------------
+Thu Aug 9 14:42:49 CEST 2007 - jsuchome@suse.cz
+
+- kiwi UI: enable creating config from scratch, with default
+ YaST sources
+- 2.15.3
+
+-------------------------------------------------------------------
Wed Aug 8 15:36:56 CEST 2007 - jsuchome@suse.cz
- yet another fix for "Back" button behavior (#289524)
Modified: trunk/product-creator/src/kiwi.desktop
URL: http://svn.opensuse.org/viewcvs/yast/trunk/product-creator/src/kiwi.desktop?rev=40128&r1=40127&r2=40128&view=diff
==============================================================================
--- trunk/product-creator/src/kiwi.desktop (original)
+++ trunk/product-creator/src/kiwi.desktop Thu Aug 9 15:50:14 2007
@@ -18,6 +18,6 @@
Icon=yast-kiwi
Exec=/sbin/yast2 kiwi
-Name=Live Image Creator
-GenericName=Create the Live, USB or XEN image
+Name=Image Creator
+GenericName=Create the Live CD, USB or XEN image
X-KDE-SubstituteUID=true
Modified: trunk/product-creator/src/kiwi_dialogs.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/product-creator/src/kiwi_dialogs.ycp?rev=40128&r1=40127&r2=40128&view=diff
==============================================================================
--- trunk/product-creator/src/kiwi_dialogs.ycp (original)
+++ trunk/product-creator/src/kiwi_dialogs.ycp Thu Aug 9 15:50:14 2007
@@ -705,7 +705,6 @@
map content = ProductCreator::ReadContentFile(src_id);
KiwiConfig = ProductCreator::Config;
-y2internal ("sources: %1", KiwiConfig["sources"]:nil);
// busy popup
Popup::ShowFeedback (_("Reading current live image configuration..."), _("Please wait..."));
@@ -754,11 +753,19 @@
if (!KiwiConfig["_imported"]:false)
{
// for new configuration, do not read all from the template
-y2warning ("------------------------------ new configuration ---------------");
+ y2milestone ("product-creator based configuration...");
foreach (string key, ["addons", "packages", "sources"], {
KiwiConfig[key] = ProductCreator::Config[key]:[];
});
}
+ else
+ {
+ y2milestone ("imported configuration...");
+ // "sources" are already there...
+ foreach (string key, ["addons", "packages"], {
+ ProductCreator::Config[key] = KiwiConfig[key]:[];
+ });
+ }
map label2boot = $[
"openSUSE 10.2" : "suse-10.2",
@@ -1388,19 +1395,21 @@
string name = Config["name"]:"";
string out_dir = Config["iso-directory"]:"";
map repositories = $[];
+ // originally enabled list of sources
+ list<map> enabled_sources = [];
- // on start, disable all sources (-> move to client?)
+ // on start, show the default YaST sources
if (Config == $[])
{
Pkg::SourceRestore ();
Pkg::SourceLoad();
- list<map> all_sources = Pkg::SourceEditGet();
- all_sources = maplist (map source, all_sources, {
- source["enabled"] = false;
- return source;
+ Config["sources"] = maplist (map source, Pkg::SourceEditGet (), {
+ integer srcid = source["SrcId"]:-1;
+ map data = Pkg::SourceGeneralData (srcid);
+ string url = data["url"]:"";
+ repositories[srcid] = url;
+ return url;
});
- Pkg::SourceEditSet ((list