Author: jsuchome
Date: Mon Dec 17 13:21:12 2007
New Revision: 43128
URL: http://svn.opensuse.org/viewcvs/yast?rev=43128&view=rev
Log:
update to SP1 version
Added:
branches/SuSE-SLE-10-SP2-Branch/product-creator/agents/cfg_product-creator.scr
branches/SuSE-SLE-10-SP2-Branch/product-creator/src/SourceDialogsLite.ycp (with props)
branches/SuSE-SLE-10-SP2-Branch/product-creator/src/data/kiwi_templates/
branches/SuSE-SLE-10-SP2-Branch/product-creator/src/data/kiwi_templates/Makefile.am
branches/SuSE-SLE-10-SP2-Branch/product-creator/src/data/kiwi_templates/iso/
branches/SuSE-SLE-10-SP2-Branch/product-creator/src/data/kiwi_templates/iso/Makefile.am
branches/SuSE-SLE-10-SP2-Branch/product-creator/src/data/kiwi_templates/iso/config.sh (with props)
branches/SuSE-SLE-10-SP2-Branch/product-creator/src/data/kiwi_templates/iso/config.xml
branches/SuSE-SLE-10-SP2-Branch/product-creator/src/data/kiwi_templates/iso/root/
branches/SuSE-SLE-10-SP2-Branch/product-creator/src/data/kiwi_templates/iso/root/Makefile.am
branches/SuSE-SLE-10-SP2-Branch/product-creator/src/data/kiwi_templates/iso/root/etc/
branches/SuSE-SLE-10-SP2-Branch/product-creator/src/data/kiwi_templates/iso/root/etc/Makefile.am
branches/SuSE-SLE-10-SP2-Branch/product-creator/src/data/kiwi_templates/iso/root/etc/init.d/
branches/SuSE-SLE-10-SP2-Branch/product-creator/src/data/kiwi_templates/iso/root/etc/init.d/Makefile.am
branches/SuSE-SLE-10-SP2-Branch/product-creator/src/data/kiwi_templates/iso/root/etc/init.d/boot (with props)
branches/SuSE-SLE-10-SP2-Branch/product-creator/src/data/kiwi_templates/iso/root/etc/sysconfig/
branches/SuSE-SLE-10-SP2-Branch/product-creator/src/data/kiwi_templates/iso/root/etc/sysconfig/Makefile.am
branches/SuSE-SLE-10-SP2-Branch/product-creator/src/data/kiwi_templates/iso/root/etc/sysconfig/displaymanager
branches/SuSE-SLE-10-SP2-Branch/product-creator/src/data/kiwi_templates/iso/root/etc/sysconfig/network/
branches/SuSE-SLE-10-SP2-Branch/product-creator/src/data/kiwi_templates/iso/root/etc/sysconfig/network/Makefile.am
branches/SuSE-SLE-10-SP2-Branch/product-creator/src/data/kiwi_templates/iso/root/etc/sysconfig/network/ifcfg-eth0
branches/SuSE-SLE-10-SP2-Branch/product-creator/src/data/kiwi_templates/iso/root/etc/sysconfig/network/routes
branches/SuSE-SLE-10-SP2-Branch/product-creator/src/data/kiwi_templates/xen/
branches/SuSE-SLE-10-SP2-Branch/product-creator/src/data/kiwi_templates/xen/Makefile.am
branches/SuSE-SLE-10-SP2-Branch/product-creator/src/data/kiwi_templates/xen/config.sh (with props)
branches/SuSE-SLE-10-SP2-Branch/product-creator/src/data/kiwi_templates/xen/config.xml
branches/SuSE-SLE-10-SP2-Branch/product-creator/src/data/kiwi_templates/xen/root/
branches/SuSE-SLE-10-SP2-Branch/product-creator/src/data/kiwi_templates/xen/root/Makefile.am
branches/SuSE-SLE-10-SP2-Branch/product-creator/src/data/kiwi_templates/xen/root/etc/
branches/SuSE-SLE-10-SP2-Branch/product-creator/src/data/kiwi_templates/xen/root/etc/Makefile.am
branches/SuSE-SLE-10-SP2-Branch/product-creator/src/data/kiwi_templates/xen/root/etc/init.d/
branches/SuSE-SLE-10-SP2-Branch/product-creator/src/data/kiwi_templates/xen/root/etc/init.d/Makefile.am
branches/SuSE-SLE-10-SP2-Branch/product-creator/src/data/kiwi_templates/xen/root/etc/init.d/boot.xen (with props)
branches/SuSE-SLE-10-SP2-Branch/product-creator/src/data/kiwi_templates/xen/root/etc/sysconfig/
branches/SuSE-SLE-10-SP2-Branch/product-creator/src/data/kiwi_templates/xen/root/etc/sysconfig/Makefile.am
branches/SuSE-SLE-10-SP2-Branch/product-creator/src/data/kiwi_templates/xen/root/etc/sysconfig/keyboard
branches/SuSE-SLE-10-SP2-Branch/product-creator/src/data/kiwi_templates/xen/root/etc/sysconfig/network/
branches/SuSE-SLE-10-SP2-Branch/product-creator/src/data/kiwi_templates/xen/root/etc/sysconfig/network/Makefile.am
branches/SuSE-SLE-10-SP2-Branch/product-creator/src/data/kiwi_templates/xen/root/etc/sysconfig/network/ifcfg-eth0
branches/SuSE-SLE-10-SP2-Branch/product-creator/src/data/sysconfig.product-creator
branches/SuSE-SLE-10-SP2-Branch/product-creator/src/image-creator.desktop
branches/SuSE-SLE-10-SP2-Branch/product-creator/src/image-creator.ycp (with props)
branches/SuSE-SLE-10-SP2-Branch/product-creator/src/kiwi_dialogs.ycp (with props)
Modified:
branches/SuSE-SLE-10-SP2-Branch/product-creator/VERSION
branches/SuSE-SLE-10-SP2-Branch/product-creator/agent-kiwi/ag_kiwi
branches/SuSE-SLE-10-SP2-Branch/product-creator/agents/Makefile.am
branches/SuSE-SLE-10-SP2-Branch/product-creator/package/yast2-product-creator.changes
branches/SuSE-SLE-10-SP2-Branch/product-creator/src/Kiwi.ycp
branches/SuSE-SLE-10-SP2-Branch/product-creator/src/Makefile.am
branches/SuSE-SLE-10-SP2-Branch/product-creator/src/ProductCreator.ycp
branches/SuSE-SLE-10-SP2-Branch/product-creator/src/commandline.ycp
branches/SuSE-SLE-10-SP2-Branch/product-creator/src/complex.ycp
branches/SuSE-SLE-10-SP2-Branch/product-creator/src/data/Makefile.am
branches/SuSE-SLE-10-SP2-Branch/product-creator/src/dialogs.ycp
branches/SuSE-SLE-10-SP2-Branch/product-creator/src/helps.ycp
branches/SuSE-SLE-10-SP2-Branch/product-creator/src/product-creator.ycp
branches/SuSE-SLE-10-SP2-Branch/product-creator/src/wizards.ycp
branches/SuSE-SLE-10-SP2-Branch/product-creator/yast2-product-creator.spec.in
Modified: branches/SuSE-SLE-10-SP2-Branch/product-creator/VERSION
URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-SLE-10-SP2-Branch/product-creator/VERSION?rev=43128&r1=43127&r2=43128&view=diff
==============================================================================
--- branches/SuSE-SLE-10-SP2-Branch/product-creator/VERSION (original)
+++ branches/SuSE-SLE-10-SP2-Branch/product-creator/VERSION Mon Dec 17 13:21:12 2007
@@ -1 +1 @@
-2.13.5
+2.13.25
Modified: branches/SuSE-SLE-10-SP2-Branch/product-creator/agent-kiwi/ag_kiwi
URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-SLE-10-SP2-Branch/product-creator/agent-kiwi/ag_kiwi?rev=43128&r1=43127&r2=43128&view=diff
==============================================================================
--- branches/SuSE-SLE-10-SP2-Branch/product-creator/agent-kiwi/ag_kiwi (original)
+++ branches/SuSE-SLE-10-SP2-Branch/product-creator/agent-kiwi/ag_kiwi Mon Dec 17 13:21:12 2007
@@ -29,15 +29,17 @@
my $optionsNodeList = $systemTree -> getElementsByTagName ("preferences");
my $usrdataNodeList = $systemTree -> getElementsByTagName ("users");
my $packageNodeList = $systemTree -> getElementsByTagName ("packages");
- my $imgnameNodeList = $systemTree -> getElementsByTagName ("image");
+# my $imgnameNodeList = $systemTree -> getElementsByTagName ("image");
my $key = "packages";
$retmap{$key} = {};
for (my $i=1;$i<= $packageNodeList->size();$i++) {
my $node = $packageNodeList -> get_node($i);
my $type = $node -> getAttribute ("type");
- y2milestone ("package list type: $type");
+ y2debug ("package list type: $type");
$retmap{$key}{$type} = {};
+ my $patterntype = $node -> getAttribute ("patternType");
+ $retmap{$key}{$type}{"patternType"} = $patterntype if $patterntype;
foreach my $tag ("package", "opensusePattern", "ignore") {
my @sw_list = ();
foreach my $element ($node -> getElementsByTagName ($tag)) {
@@ -57,22 +59,20 @@
}
}
my $prefs = $optionsNodeList -> get_node(1);
- foreach my $tag ("packagemanager", "version", "rpm-check-signatures", "rpm-force",
- "size") {
+ foreach my $tag ("packagemanager", "version", "rpm-check-signatures",
+ "rpm-force", "size", "defaultdestination", "defaultroot", "locale")
+ {
my $element = $prefs -> getElementsByTagName ($tag);
- $retmap{$tag} = $element-> get_node(1)->textContent () if ($element);
+ $retmap{$tag} = $element->get_node(1)->textContent () if ($element);
}
# now get the 'type' attributes
# example: <type primary="true" boot="isoboot/suse-10.3" flags="compressed">iso</type>
# <type boot="vmxboot/suse-10.3" filesystem="ext3">vmx</type>
my @ntag = $prefs -> getElementsByTagName ("type") -> get_nodelist();
foreach my $element (@ntag) {
- my $primary = $element -> getAttribute ("primary");
- my $boot = $element -> getAttribute ("boot");
- my $flags = $element -> getAttribute ("flags");
my $type = $element -> textContent ();
my %typemap = ();
- foreach my $attr ("primary", "boot", "flags", "filesystem") {
+ foreach my $attr ("primary", "boot", "flags", "filesystem", "format") {
my $val = $element -> getAttribute ($attr);
$typemap{$attr} = $val if defined $val;
}
@@ -92,6 +92,19 @@
$retmap{$tag} = $element-> get_node(1)->textContent () if ($element);
}
+ my $image = $systemTree -> getElementsByTagName ("image")->get_node (1);
+ my $image_name = $image -> getAttribute ("name");
+ if ($image_name) {
+ $retmap{"name"} = $image_name;
+ y2milestone ("image name: $image_name");
+ }
+
+ my $scheme_ver = $image -> getAttribute ("schemeversion");
+ $retmap{"schemeversion"} = $scheme_ver if $scheme_ver;
+
+ my $inherit = $image -> getAttribute ("inherit");
+ $retmap{"inherit"} = $inherit if $inherit;
+
$retmap{"users"} = {};
foreach my $usernode ($usrdataNodeList -> get_nodelist()) {
my $group = $usernode -> getAttribute("group");
@@ -114,7 +127,7 @@
for (my $i=1;$i<= $driversNodeList->size();$i++) {
my $node = $driversNodeList -> get_node($i);
my $type = $node -> getAttribute ("type");
- y2milestone ("driver list type: $type");
+ y2debug ("driver list type: $type");
$retmap{$key}{$type} = {};
foreach my $tag ("file") {
my @list = ();
@@ -128,26 +141,25 @@
}
}
$key = "repository";
- $retmap{$key} = {};
+ my @repolist = ();
for (my $i=1;$i<= $repositNodeList->size();$i++) {
my $node = $repositNodeList -> get_node($i);
- my $type = $node -> getAttribute ("type");
- y2milestone ("repo type: $type");
- my $status = $node -> getAttribute ("status");
- $retmap{$key}{$type} = {};
- $retmap{$key}{$type}{"status"} = $status if $status;
- foreach my $tag ("source") {
- # maybe it doesn't have sense to have list of sources in one repo...
- my @list = ();
- foreach my $element ($node -> getElementsByTagName ($tag)) {
- my %item = ();
- my $path = $element -> getAttribute ("path");
- $item{"path"} = $path if $path;
- push @list, \%item if %item;
- }
- $retmap{$key}{$type}{$tag} = \@list if @list;
+ my %repo = ();
+ foreach my $tag ("type", "status") {
+ my $val = $node -> getAttribute ($tag);
+ $repo{$tag} = $val if $val;
+ }
+ my @list = (); # maybe list is not needed here...
+ foreach my $element ($node -> getElementsByTagName ("source")) {
+ my %item = ();
+ my $path = $element -> getAttribute ("path");
+ $item{"path"} = $path if $path;
+ push @list, \%item if %item;
}
+ $repo{"source"} = \@list if @list;
+ push @repolist, \%repo if %repo;
}
+ $retmap{$key} = \@repolist if @repolist;
ycp::Return (\%retmap, 1);
}
elsif ($command eq "result")
Modified: branches/SuSE-SLE-10-SP2-Branch/product-creator/agents/Makefile.am
URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-SLE-10-SP2-Branch/product-creator/agents/Makefile.am?rev=43128&r1=43127&r2=43128&view=diff
==============================================================================
--- branches/SuSE-SLE-10-SP2-Branch/product-creator/agents/Makefile.am (original)
+++ branches/SuSE-SLE-10-SP2-Branch/product-creator/agents/Makefile.am Mon Dec 17 13:21:12 2007
@@ -4,6 +4,6 @@
agent_SCRIPTS =
-scrconf_DATA =
+scrconf_DATA = cfg_product-creator.scr
EXTRA_DIST = $(agent_SCRIPTS) $(scrconf_DATA)
Added: branches/SuSE-SLE-10-SP2-Branch/product-creator/agents/cfg_product-creator.scr
URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-SLE-10-SP2-Branch/product-creator/agents/cfg_product-creator.scr?rev=43128&view=auto
==============================================================================
--- branches/SuSE-SLE-10-SP2-Branch/product-creator/agents/cfg_product-creator.scr (added)
+++ branches/SuSE-SLE-10-SP2-Branch/product-creator/agents/cfg_product-creator.scr Mon Dec 17 13:21:12 2007
@@ -0,0 +1,17 @@
+/**
+ * File:
+ * cfg_product-creator.scr
+ * Summary:
+ * SCR Agent for reading/writing /etc/sysconfig/product-creator
+ * using the sysconfig-agent
+ *
+ * $Id: cfg_product-creator.scr 13009 2003-12-10 13:59:07Z jsuchome $
+ *
+ * Read/Sets the values defined in <tt>/etc/sysconfig/product-creator</tt>
+ * in an easy manner.
+ */
+.sysconfig.product-creator
+
+`ag_ini(
+ `SysConfigFile("/etc/sysconfig/product-creator")
+)
Modified: branches/SuSE-SLE-10-SP2-Branch/product-creator/package/yast2-product-creator.changes
URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-SLE-10-SP2-Branch/product-creator/package/yast2-product-creator.changes?rev=43128&r1=43127&r2=43128&view=diff
==============================================================================
--- branches/SuSE-SLE-10-SP2-Branch/product-creator/package/yast2-product-creator.changes (original)
+++ branches/SuSE-SLE-10-SP2-Branch/product-creator/package/yast2-product-creator.changes Mon Dec 17 13:21:12 2007
@@ -1,4 +1,191 @@
-------------------------------------------------------------------
+Wed Dec 5 12:33:16 CET 2007 - jsuchome@suse.cz
+
+- fixed generating configuration path name (#346152)
+- 2.13.25
+
+-------------------------------------------------------------------
+Fri Nov 16 12:59:17 CET 2007 - jsuchome@suse.cz
+
+- do not mention CD source in help texts (#341615)
+- disable Delete button when there's nothing to delete (#341932)
+- make the progress window smaller with small resolutions (#342046)
+- do not automatically remove broken sources from the table (#341634)
+- bigger timout before killing kiwi with SIGKILL (#341635)
+- 2.13.24
+
+-------------------------------------------------------------------
+Mon Nov 12 12:30:16 CET 2007 - jsuchome@suse.cz
+
+- do not allow importing non-system configurations (#340495)
+- 2.13.23
+
+-------------------------------------------------------------------
+Tue Nov 6 13:09:09 CET 2007 - jsuchome@suse.cz
+
+- remove unsupported source types also for product-creator-> kiwi
+ workflow (#339110)
+- 2.13.22
+
+-------------------------------------------------------------------
+Mon Nov 5 21:56:21 CET 2007 - jsuchome@suse.cz
+
+- do not allow source types not supported by kiwi (#339110)
+- 2.13.21
+
+-------------------------------------------------------------------
+Fri Nov 2 11:02:42 CET 2007 - jsuchome@suse.cz
+
+- correctly escape strings which should be written to config.xml
+ (seen in #338090)
+- 2.13.20
+
+-------------------------------------------------------------------
+Thu Nov 1 10:57:39 CET 2007 - jsuchome@suse.cz
+
+- save all types from the template to target config.xml
+- show correct list of repositories when going back (#337862)
+- fixed checking if repository has 'plaindir' format (#338115)
+- show which repositories YaST failed to add (#337618)
+- added support for "format" and "locale" tags in config.xml
+- added support for OEM image type
+- 2.13.19
+
+-------------------------------------------------------------------
+Fri Oct 26 10:25:49 CEST 2007 - jsuchome@suse.cz
+
+- fix the sequence for going to kiwi image from main summary
+- do not read the template name when going from main summary
+- 2.13.18
+
+-------------------------------------------------------------------
+Thu Oct 25 14:05:48 CEST 2007 - jsuchome@suse.cz
+
+- allow more characters in the image name
+- 2.13.17
+
+-------------------------------------------------------------------
+Tue Oct 16 23:37:05 CEST 2007 - jsuchome@suse.cz
+
+- fix modifying of repository (#334208)
+- check for duplicates in the list of boot images (#332581)
+- disable Delete button when there's nothing to delete (#334255)
+- 2.13.16
+
+-------------------------------------------------------------------
+Mon Oct 15 16:41:48 CEST 2007 - jsuchome@suse.cz
+
+- update defaultroot only for new configurations (#327057)
+- check for absolute paths in boot image entry
+- index repositories by url, not by order
+- 2.13.15
+
+-------------------------------------------------------------------
+Mon Oct 15 13:27:11 CEST 2007 - jsuchome@suse.cz
+
+- fix initializing when going Back (#332581)
+- 2.13.14
+
+-------------------------------------------------------------------
+Fri Oct 12 11:15:01 CEST 2007 - jsuchome@suse.cz
+
+- fix adding CD/DVD/SLP repositories (#333106)
+- show correct list of repositories when going back (#332253)
+- use system repositories when none is specified (#332253)
+- menubutton for adding system repositories (#332253)
+- added SUPPORTED_BOOT_IMAGES to /etc/sysconfig/product-creator:
+ possibility to limit list of offered boot images (#331733)
+- append image name to defaultdestination and defaultroot (#327057)
+- 2.13.13
+
+-------------------------------------------------------------------
+Tue Oct 2 11:49:14 CEST 2007 - jsuchome@suse.cz
+
+- copy whole content of imported kiwi config directory (#330052)
+- save defaultroot value to config.xml (#330059)
+- don't ignore 'inherit' tag (#330079)
+- added support for "this://" in repository paths (#330095)
+- 2.13.12
+
+-------------------------------------------------------------------
+Mon Oct 1 14:43:47 CEST 2007 - jsuchome@suse.cz
+
+- do not close module after kiwi failure (#327593)
+- check stderr and stdout after kiwi finish/failure (#327610)
+- do not allow configuration without name (#328003)
+- destination directory specified in sysconfig file (#327055)
+- support for kiwi images templates (F302371)
+- support project control for images (F302370)
+- use zypper instead of smart
+- write schemeversion to config.xml
+- directories with templates are specified in
+ /etc/sysconfig/product-creator
+- enable modifications of configurations without creating images
+- do not import already imported and modified configuration
+- enable support for unlisted boot images (e.g. netboot)
+- show the maximum available space
+- use lazy initialization of installation sources
+- tell zypper to ignore zypp lock (#310581)
+- remove 'prepare' directory before calling kiwi (#325664)
+- use defaultroot value from config.xml for 'prepare' directory (F302371)
+
+-------------------------------------------------------------------
+Mon Sep 17 15:27:43 CEST 2007 - jsuchome@suse.cz
+
+- support installation sources of s390x (#301362)
+
+-------------------------------------------------------------------
+Tue Aug 28 10:58:22 CEST 2007 - jsuchome@suse.cz
+
+- include the package from "post-packages" section of autoyast
+ profile (#291776)
+- 2.13.11
+
+-------------------------------------------------------------------
+Fri Aug 24 14:57:50 CEST 2007 - jsuchome@suse.cz
+
+- do not require packages with image descriptions, include required
+ files (originally created by ms@suse.de for kiwi-desc-buildservice
+ and kiwi-desc-livesystem) as templates (#289552)
+- show kiwi error output in separate window
+- mark plaindir installation types as rpm-dir in config.xml
+- 2.13.10
+
+-------------------------------------------------------------------
+Fri Aug 10 14:48:44 CEST 2007 - jsuchome@suse.cz
+
+- CLI option for gpg passphrase (daniel.rahn and lslezak, #287477)
+- 2.13.9
+
+-------------------------------------------------------------------
+Wed Aug 8 15:19:45 CEST 2007 - jsuchome@suse.cz
+
+- yet another fix for "Back" button behavior (#289524)
+- enable editing of isolinux.cfg in case of autoYaST usage (#287443)
+- kiwi config: fixed path to directory with XEN template
+- 2.13.8
+
+-------------------------------------------------------------------
+Wed Jul 25 09:41:05 CEST 2007 - lslezak@suse.cz
+
+- fixed "Back" button behavior in the Isolinux configuration
+ dialog (#289524)
+
+-------------------------------------------------------------------
+Mon Jun 18 11:17:42 CEST 2007 - jsuchome@suse.cz
+
+- changed "Create ISO image" button label, added missing help text
+ (#284276)
+- 2.13.7
+
+-------------------------------------------------------------------
+Wed Jun 13 14:44:47 CEST 2007 - jsuchome@suse.cz
+
+- merged texts from proofreading
+- fixed the help text for signing (#283235)
+- 2.13.6
+
+-------------------------------------------------------------------
Tue Jun 5 15:35:29 CEST 2007 - jsuchome@suse.cz
- kiwi UI: create output directly in output directory to prevent
Modified: branches/SuSE-SLE-10-SP2-Branch/product-creator/src/Kiwi.ycp
URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-SLE-10-SP2-Branch/product-creator/src/Kiwi.ycp?rev=43128&r1=43127&r2=43128&view=diff
==============================================================================
--- branches/SuSE-SLE-10-SP2-Branch/product-creator/src/Kiwi.ycp (original)
+++ branches/SuSE-SLE-10-SP2-Branch/product-creator/src/Kiwi.ycp Mon Dec 17 13:21:12 2007
@@ -21,15 +21,49 @@
import "Report";
import "Security";
import "String";
+ import "URL";
string encryption_method = nil;
+
+ // temporary directory, where kiwi is working
global string tmp_dir = "";
- global string images_dir = "/usr/share/kiwi/image";
+ // directory for saving image configurations
+ global string images_dir = Directory::vardir + "/product-creator/images";
+
+ // bug 331733
+ global string supported_boot_images = "";
+
+ // directories with user-made templated
+ global list<string> templates_dirs = [];
+
+ global string default_packagemanager = "zypper";
+
+ list<map> all_sources = [];
+
+ // repositories used for current configuration
+ global map current_repositories = $[];
+
+ // initial system repositories
+ global map initial_repositories = $[];
// where the kiwi configuration files are stored
string config_dir = "";
+ // chroot directory for creating the physical extend
+ string chroot_dir = "";
+
+ // What we want to create with kiwi
+ global string kiwi_task = "iso";
+
+ // map with image templates (to base new projects on)
+ global map Templates = $[];
+
+ // repository schemes unsupported by kiwi
+ // (= not to be offered as new sources, to be deleted
+ // from current system sources)
+ global list<string> unsupported_schemes = [ "iso", "cd", "dvd", "nfs", "smb" ];
+
/**
* crypt given user password with current encryption algorithm
*/
@@ -57,31 +91,130 @@
if (substring (source, 0, 6) == "dir://")
return substring (source, 6);
- //FIXME plaindir -> rpm-dir
return source;
}
/**
+ * generate the 'repository' tag
+ */
+ map get_source_value (string source, map config) {
+
+ map ret = $[];
+ // first check if we weren't importing this source:
+ foreach (string url, map repo, current_repositories, {
+ if (url == source && repo["org"]:$[] != $[])
+ {
+ ret = $[
+ "__key" : "repository",
+ "type" : repo["org","type"]:"",
+ "__children": [
+ $[
+ "__key" : "source",
+ "path" : repo["org","source",0,"path"]:"",
+ ]
+ ]
+ ];
+ if (repo["org","status"]:"" != "")
+ ret["status"] = repo["org","status"]:"";
+ }
+ });
+ if (ret != $[])
+ {
+ y2milestone ("imported source: %1", source);
+ return ret;
+ }
+
+ // ... otherwise, we must ask zypp:
+ string type = "yast2";
+ string source_path = adapt_source_path (source);
+
+ foreach (map sourcemap, all_sources, {
+ integer srcid = sourcemap["SrcId"]:-1;
+ map data = Pkg::SourceGeneralData (srcid);
+ string url = data["url"]:"";
+ if (url == source || url == source_path)
+ {
+ if (data["type"]:"" == "Plaindir")
+ type = "rpm-dir";
+ if (data["type"]:"" == "YUM")
+ type = "rpm-md";
+ }
+ });
+ ret = $[
+ "__key" : "repository",
+ "type" : type,
+ "__children": [
+ $[
+ "__key" : "source",
+ "path" : source_path
+ ]
+ ]
+ ];
+ return ret;
+ }
+
+ /**
* generate the name of directory with kiwi configuration
*/
string get_config_dir (string name, string task) {
- return "/kw" + task + "-YaST-" + deletechars (name, " \t");
+ return deletechars (name, " \t");
}
+
/**
- * generate the value for image type
+ * generate the values for image type
*/
- map get_type_value (map config, string task) {
+ list<map> get_type_values (map config, string task) {
+ string boot_image = sformat ("%1boot/%2", task, config[task + "boot"]:"suse-10.2");
+ list<map> retlist = maplist (
+ string type, map typemap, (map)config["type"]:$[], {
+
+ if (typemap["boot"]:"" != "")
+ boot_image = typemap["boot"]:"";
+
+ map ret = $[
+ "__key" : "type",
+ "__value" : type,
+ "boot" : boot_image,
+ ];
+ if (type != "iso")
+ ret["filesystem"] = typemap["filesystem"]:"ext3";
+ if (typemap["flags"]:"" != "")
+ ret["flags"] = typemap["flags"]:"";
+ if (typemap["format"]:"" != "")
+ ret["format"] = typemap["format"]:"";
+ if (type == task)
+ ret["primary"] = "true";
+ return ret;
+ });
+ if (retlist == [])
+ {
+ map ret = $[
+ "__key" : "type",
+ "__value" : task,
+ "boot" : boot_image,
+ "primary" : "true"
+ ];
+ if (task != "iso")
+ ret["filesystem"] = "ext3";
+ retlist = [ ret ];
+ }
+ return retlist;
+ }
+
+ /**
+ * generate the list of packages/patterns for image
+ */
+ map get_image_packages (map config, list packages, list patterns,list ignored)
+ {
map ret = $[
- "__key" : "type",
- "__value" : task,
- "primary" : "true",
- "boot" : sformat ("%1boot/%2", task, config[task + "boot"]:"suse-10.2"),
-//FIXME (KiwiConfig["compressed"]:false ? ",compressed" : ""),
+ "__key" : "packages",
+ "type" : "image",
+ "__children": union (union (packages, patterns), ignored)
];
- if (task != "iso")
- ret["filesystem"] = "ext3";
+ if (config["image_patternType"]:"" != "")
+ ret["patternType"] = config["image_patternType"]:"";
return ret;
}
@@ -120,9 +253,10 @@
children = children + "\n" + Map2XML (chmap, level + 1);
});
else if (subkey == "__value")
- value = sformat ("%1", val);
+ value = String::EscapeTags (sformat ("%1", val));
else if (is (val, string))
- ret = sformat ("%1 %2=\"%3\"", ret, subkey, val);
+ ret = sformat ("%1 %2=\"%3\"",
+ ret, subkey, String::EscapeTags (tostring (val)));
});
if (non_unique_key[key]:false)
return sformat ("%1/>", ret);
@@ -148,41 +282,80 @@
return ret;
map config = (map) SCR::Read (.kiwi, base_path + "/config.xml");
+ if (config == nil)
+ return ret;
map packages = config["packages"]:$[];
// rest parts of "packages" are saved in product-creator map
- ret["ignore"] = maplist (map p, (list<map>)packages["image","ignore"]:[], ``(p["name"]:""));
+ ret["ignore"] = maplist (map p,
+ (list<map>)packages["image","ignore"]:[], ``(p["name"]:""));
// value of "arch" is currently ignored...
foreach (string section, [ "boot", "xen" ], {
- ret[section + "_packages"] =
- maplist (map p, (list<map>)packages[section, "package"]:[], ``(p["name"]:""));
- ret[section + "_patterns"] =
- maplist (map p, (list<map>)packages[section, "opensusePattern"]:[], ``(p["name"]:""));
- ret[section + "_ignore"] =
- maplist (map p, (list<map>)packages[section, "ignore"]:[], ``(p["name"]:""));
- });
+ ret[section + "_packages"] = maplist (map p,
+ (list<map>)packages[section, "package"]:[], ``(p["name"]:""));
+ ret[section + "_patterns"] = maplist (map p,
+ (list<map>)packages[section,"opensusePattern"]:[],``(p["name"]:""));
+ ret[section + "_ignore"] = maplist (map p,
+ (list<map>)packages[section, "ignore"]:[], ``(p["name"]:""));
+ });
+ // list of packages and patterns is needed for import, not for new image
+ ret["addons"] = maplist (map p,
+ (list<map>)packages["image","opensusePattern"]:[], ``(p["name"]:""));
+ ret["packages"] = maplist (map p,
+ (list<map>)packages["image","package"]:[], ``(p["name"]:""));
+
+ if (haskey (packages, "delete"))
+ {
+ ret["delete_packages"] = maplist (map p,
+ (list<map>)packages["delete", "package"]:[], ``(p["name"]:""));
+ }
+ if (packages["image","patternType"]:"" != "")
+ ret["image_patternType"] = packages["image","patternType"]:"";
if (packages["xen","disk"]:"" != "")
ret["xen_disk"] = packages["xen","disk"]:"";
if (packages["xen","memory"]:"" != "")
ret["xen_memory"] = tointeger (packages["xen","memory"]:"512");
-// FIXME read list of packages and patterns???? -> only for non-default!
- foreach (string key, [ "author", "contact", "specification", "packagemanager", "version",
- "rpm-check-signatures", "rpm-force", "sizeunit", "type" ], {
+ foreach (string key, [ "author", "contact", "image_type", "specification",
+ "packagemanager", "version", "rpm-check-signatures", "rpm-force",
+ "sizeunit", "type", "name", "repository", "defaultdestination",
+ "schemeversion", "defaultroot", "inherit", "locale"],
+ {
if (config[key]:nil != nil)
ret[key] = config[key]:nil;
});
if (haskey (config, "size"))
ret["size"] = tointeger (config["size"]:"2700");
-
+ if (haskey (config, "defaultdestination"))
+ ret["iso-directory"] = config["defaultdestination"]:"";
+ foreach (string user, map usermap, (map) config["users"]:$[], {
+ if (!haskey (ret, "users"))
+ ret["users"] = $[];
+ if (haskey (usermap, "group"))
+ ret["group"] = usermap["group"]:"";
+ ret["users",user] = $[
+ "home" : usermap["home"]:sformat ("/home/%1", user),
+ "pwd" : user
+ ];
+ });
return ret;
}
/**
* Write currect configuration to new config.xml
*/
- global boolean WriteConfigXML (map KiwiConfig, string kiwi_task) {
+ global boolean WriteConfigXML (map KiwiConfig, string task) {
+
+ all_sources = Pkg::SourceEditGet();
tmp_dir = Directory::tmpdir;
+ chroot_dir = tmp_dir + "/myphysical";
+ if (KiwiConfig["defaultroot"]:"" != "")
+ {
+ chroot_dir = KiwiConfig["defaultroot"]:"";
+ if (KiwiConfig["new_configuration"]:false)
+ chroot_dir = chroot_dir + "/" + KiwiConfig["name"]:"";
+ KiwiConfig["defaultroot"] = chroot_dir;
+ }
list packages_list = [];
list patterns_list = [];
@@ -248,32 +421,16 @@
]);
});
- list write_list = [ $[
- "__key" : "image",
- "name" : KiwiConfig["name"]:"",
- "__children" : [
- $[
- "__key" : "description",
- "type" : "system",
- "__children" : [
- $[
- "__key" : "author",
- "__value" : KiwiConfig["author"]:"",
- ],
- $[
- "__key" : "contact",
- "__value" : KiwiConfig["contact"]:"",
- ],
- $[
- "__key" : "specification",
- "__value" : KiwiConfig["specification"]:"",
- ],
- ],
- ],
- $[
+ list packages_delete_list = maplist (string package,
+ KiwiConfig["delete_packages"]:[], ``($[
+ "__key" : "package",
+ "name" : package,
+ ])
+ );
+
+ map preferences = $[
"__key" : "preferences",
"__children" : [
- get_type_value (KiwiConfig, kiwi_task),
$[
"__key" : "version",
"__value" : KiwiConfig["version"]:"1",
@@ -285,8 +442,7 @@
],
$[
"__key" : "packagemanager",
-// "__value" : "zypper", FIXME still not working for SLES10SP1...
- "__value" : "smart",
+ "__value" : KiwiConfig["packagemanager"]:default_packagemanager
],
$[
"__key" : "rpm-check-signatures",
@@ -296,10 +452,60 @@
"__key" : "rpm-force",
"__value" : KiwiConfig["rpm-force"]:"True",
],
+ $[
+ "__key" : "defaultdestination",
+ "__value" : KiwiConfig["iso-directory"]:"",
+ ],
+ ],
+ ];
+ foreach (map typemap, get_type_values (KiwiConfig, task), {
+ preferences["__children"] = prepend (preferences["__children"]:[],
+ typemap);
+ });
+ if (KiwiConfig["defaultroot"]:"" != "")
+ {
+ preferences["__children"] = add (preferences["__children"]:[], $[
+ "__key" : "defaultroot",
+ "__value" : KiwiConfig["defaultroot"]:"",
+ ]);
+ }
+ if (KiwiConfig["locale"]:"" != "")
+ {
+ preferences["__children"] = add (preferences["__children"]:[], $[
+ "__key" : "locale",
+ "__value" : KiwiConfig["locale"]:"",
+ ]);
+ }
+
+
+ list write_list = [ $[
+ "__key" : "image",
+ "name" : KiwiConfig["name"]:"",
+ "schemeversion" : KiwiConfig["schemeversion"]:"1.4",
+ "__children" : [
+ $[
+ "__key" : "description",
+ "type" : "system",
+ "__children" : [
+ $[
+ "__key" : "author",
+ "__value" : KiwiConfig["author"]:"",
+ ],
+ $[
+ "__key" : "contact",
+ "__value" : KiwiConfig["contact"]:"",
+ ],
+ $[
+ "__key" : "specification",
+ "__value" : KiwiConfig["specification"]:"",
+ ],
],
],
+ preferences,
],
]];
+ if (KiwiConfig["inherit"]:"" != "")
+ write_list[0,"inherit"] = KiwiConfig["inherit"]:"";
if (haskey (KiwiConfig, "users"))
{
write_list[0,"__children"] = add (write_list[0,"__children"]:[], $[
@@ -317,34 +523,20 @@
]);
}
write_list[0,"__children"] = union (write_list[0,"__children"]:[],
- maplist (string source, (list<string>) KiwiConfig["sources"]:[], {
- return $[
- "__key" : "repository",
- "type" : "yast2", //FIXME rpm-dir?
- "__children": [
- $[
- "__key" : "source",
- "path" : adapt_source_path (source),
- ]
- ]
- ];
- })
+ maplist (string source, (list<string>) KiwiConfig["sources"]:[],
+ ``(get_source_value (source, KiwiConfig))
+ )
);
write_list[0,"__children"] = union (write_list[0,"__children"]:[], [
- $[
- "__key" : "packages",
- "type" : "image",
-// "patternType" : "onlyRequired". // FIXME what does this mean?
-// "patternType" : "plusRecommended",
- "__children": union (union (packages_list, patterns_list), ignored_list)
- ],
+ get_image_packages (
+ KiwiConfig, packages_list, patterns_list, ignored_list),
$[
"__key" : "packages",
"type" : "boot",
"__children": union (union (packages_boot_list, patterns_boot_list), ignored_boot_list)
],
]);
- if (kiwi_task == "xen")
+ if (task == "xen")
{
write_list[0,"__children"] = add (write_list[0,"__children"]:[], $[
"__key" : "packages",
@@ -356,13 +548,22 @@
]);
}
+ if (packages_delete_list != [])
+ {
+ write_list[0,"__children"] = add (write_list[0,"__children"]:[], $[
+ "__key" : "packages",
+ "type" : "delete",
+ "__children": packages_delete_list
+ ]);
+ }
+
string write_string = Map2XML (write_list[0]:$[], 0);
- config_dir = tmp_dir + get_config_dir (KiwiConfig["name"]:"", kiwi_task);
+ config_dir = tmp_dir + "/" + KiwiConfig["name"]:"";
SCR::Execute (.target.mkdir, config_dir);
SCR::Write (.target.string, config_dir + "/config.xml", write_string);
foreach (string dir, ["root_dir", "config_dir"], {
foreach (string val, KiwiConfig[dir]:[], {
- string realdir = config_dir + "/" + substring (dir, 0, find (dir, "_"));
+ string realdir = config_dir + "/" + substring (dir, 0, search (dir, "_"));
boolean created = false;
if (val != "" && FileUtils::Exists (val))
{
@@ -382,6 +583,10 @@
SCR::Execute (.target.bash, "chmod +x " + config_dir + "/" + file);
}
});
+ foreach (string file, KiwiConfig["import_files"]:[], {
+ y2milestone ("copying %1 to %2", file,config_dir);
+ SCR::Execute (.target.bash, sformat ("cp -ar %1 %2/", file,config_dir));
+ });
return true;
}
@@ -396,35 +601,59 @@
return false;
}
- /* rather do not remove, filesystem can be mounted
- if (FileUtils::Exists (tmp_dir + "/myphysical"))
+ if (FileUtils::Exists (chroot_dir))
{
- SCR::Execute (.target.bash, sformat ("rm -rf %1/myphysical", tmp_dir));
+ y2milestone ("%1 directory is present, removing...", chroot_dir);
+ SCR::Execute (.target.bash, sformat ("rm -rf %1", chroot_dir));
}
- */
-
- string cmd = sformat ("kiwi --root %1/myphysical --prepare %2 --logfile terminal", tmp_dir, config_dir);
-
- y2milestone ("calling '%1'", cmd);
-
- SCR::Execute (.background.run_output_err, cmd);
+ integer height = 8;
+ map display_info = UI::GetDisplayInfo ();
+ // reduce the height with small resolutions (#342046)
+ if (display_info["TextMode"]:false || display_info["Height"]:0 < 600)
+ height = 6;
// construct the dialog
UI::OpenDialog(`opt(`decorated), `HBox(`HSpacing(1.5),
- `VSpacing(25),
`VBox(
`HSpacing(85),
- `VSpacing(0.5),
- // label
- `ReplacePoint (`id (`rpl), `Left (`Label(_("Preparing physical extend...")))),
- `VSpacing(0.5),
- `LogView (`id (`log), "", 8, 0),
- `VSpacing(0.5),
- `ReplacePoint (`id (`rp), `PushButton (`id(`cancel),`opt(`key_F9), Label::CancelButton ())),
- `VSpacing(0.5)),
- `HSpacing(1.5)
+ `VWeight (2, `VBox (
+ `VSpacing(0.5),
+ // label
+ `ReplacePoint (`id (`rpl), `Left (`Label(_("Preparing for Image Creation")))),
+ `VSpacing(0.5),
+ `LogView (`id (`log), "", height, 0)
+ )),
+ `VWeight (1, `VBox (
+ `VSpacing(0.5),
+ `LogView (`id (`errlog), "", height / 2, 0),
+ `VSpacing(0.5),
+ `ReplacePoint (`id (`rp), `PushButton (`id(`cancel),`opt(`key_F9), Label::CancelButton ())),
+ `VSpacing(0.5)
+ ))
+ ), `HSpacing(1.5)
));
+ void update_output () {
+ // read the output line from irw:
+ list<string> out = (list<string>)SCR::Read(.background.newout);
+ foreach (string line, out, {
+ line = String::Replace (line, "\r", "\n");
+ UI::ChangeWidget (`id(`log), `LastLine, line + "\n");
+ });
+
+ list<string> err = (list<string>) SCR::Read(.background.newerr);
+ foreach (string line, err, {
+ line = String::Replace (line, "\r", "\n");
+ UI::ChangeWidget (`id(`errlog), `LastLine, line + "\n");
+ });
+ }
+
+ string cmd = sformat ("ZYPP_READONLY_HACK=1 kiwi --root %1 --prepare %2 --logfile terminal", chroot_dir, config_dir);
+
+ y2milestone ("calling '%1'", cmd);
+
+ SCR::Execute (.background.run_output_err, cmd);
+
symbol ret = nil;
boolean creating = false;
do
@@ -433,23 +662,18 @@
if ((boolean) SCR::Read(.background.output_open) &&
(integer) SCR::Read(.background.newlines)>0)
{
- // read the output line from irw:
- list<string> out = (list<string>)SCR::Read(.background.newout);
- foreach (string line, out, {
- line = String::Replace (line, "\r", "\n");
- UI::ChangeWidget (`id(`log), `LastLine, line + "\n");
- });
-
- list script_err = (list) SCR::Read(.background.newerr);
+ update_output ();
}
else if (!(boolean)SCR::Read(.background.isrunning))
{
+ update_output ();
+
integer status = (integer) SCR::Read (.background.status);
if (status != 0)
{
UI::ReplaceWidget (`id (`rp), `HBox (
// label (command result)
- `Label (`opt (`boldFont), _("KIWI failed.")),
+ `Label (`opt (`boldFont), _("Image creation failed.")),
`PushButton (`id(`close), Label::CloseButton ())
));
ret = (symbol) UI::UserInput ();
@@ -462,11 +686,10 @@
// now continue with creating
UI::ChangeWidget (`id(`log), `LastLine, "\n");
- cmd = sformat ("kiwi --create %1/myphysical -d %2 --logfile terminal",
- tmp_dir, out_dir);
+ cmd = sformat ("ZYPP_READONLY_HACK=1 kiwi --create %1 -d %2 --logfile terminal", chroot_dir, out_dir);
y2milestone ("calling '%1'", cmd);
// label
- UI::ReplaceWidget (`id (`rpl), `Left (`Label (_("Creating Image..."))));
+ UI::ReplaceWidget (`id (`rpl), `Left (`Label (_("Creating Image"))));
SCR::Execute (.background.run_output_err, cmd);
ret = nil;
continue;
@@ -475,7 +698,7 @@
{
UI::ReplaceWidget (`id (`rp), `HBox (
// label (command result)
- `Label (`opt (`boldFont), _("KIWI succeeded.")),
+ `Label (`opt (`boldFont), _("Image creation succeeded.")),
`PushButton (`id(`ok), Label::OKButton ())
));
ret = (symbol) UI::UserInput ();
@@ -484,12 +707,27 @@
}
if (ret == `cancel)
{
- SCR::Execute(.background.kill);
+ integer pid = (integer)SCR::Read (.background.pid);
+ if (pid != -1)
+ {
+ // first, send a sigterm
+ SCR::Execute (.target.bash, sformat ("kill %1", pid));
+ // busy popup message
+ Popup::ShowFeedback (_("Closing kiwi..."),
+ // busy popup message
+ _("This will take a while..."));
+ sleep (5000);
+ if ((boolean)SCR::Read(.background.isrunning))
+ // .background.kill sends a sigkill after another second
+ SCR::Execute(.background.kill);
+ Popup::ClearFeedback ();
+ }
}
sleep (100);
} while (ret == nil);
- SCR::Execute(.background.kill);
+ if ((boolean)SCR::Read(.background.isrunning))
+ SCR::Execute(.background.kill);
UI::CloseDialog ();
return ret == `ok;
}
@@ -497,11 +735,124 @@
/**
* save the image configuration to the kiwi images directory
*/
- global string SaveConfiguration (map KiwiConfig, string kiwi_task) {
+ global string SaveConfiguration (map KiwiConfig, string task) {
if (config_dir == "" || !FileUtils::Exists (config_dir))
return nil;
+ if (!FileUtils::Exists (images_dir))
+ SCR::Execute (.target.mkdir, images_dir);
SCR::Execute (.target.bash, sformat ("cp -ar %1 %2/", config_dir, images_dir));
- return (images_dir + get_config_dir (KiwiConfig["name"]:"", kiwi_task));
+ return (images_dir + "/" + KiwiConfig["name"]:"");
+ }
+
+ /**
+ * Import repositories from given kiwi image configuration
+ * @patam Config configuration map, as read from config.xml
+ * @param dir path to directory containing this config.xml
+ */
+ global map ImportImageRepositories (map Config, string dir) {
+
+ current_repositories = $[];
+ foreach (map repo, (list<map>) Config["repository"]:[], {
+ string source = repo["source",0,"path"]:"";
+ if (source != "")
+ {
+ string url = "";
+ if (substring (source, 0, 7) == "this://")
+ {
+ string source_path = substring (source, 7);
+ source = dir + "/" + source_path;
+ }
+ if (substring (source, 0, 1) == "/")
+ url = "dir://";
+ url = url + source;
+ current_repositories [url] = $[
+ "url" : url,
+ "plaindir" : repo["type"]:"" == "rpm-dir",
+ "org" : repo,
+ ];
+ }
+ });
+ return current_repositories;
+ }
+
+ /**
+ * Initialize the list of current repositories
+ */
+ global map InitCurrentRepositories () {
+
+ Pkg::SourceRestore ();
+ foreach (map source, Pkg::SourceEditGet (), {
+ integer srcid = source["SrcId"]:-1;
+ map data = Pkg::SourceGeneralData (srcid);
+ string url = data["url"]:"";
+ map parsed = URL::Parse(url);
+ if (! contains (unsupported_schemes, parsed["scheme"]:""))
+ {
+ current_repositories[url] = $[
+ "url" : url,
+ "plaindir" : data["type"]:"" == "Plaindir"
+ ];
+ }
+ });
+ return current_repositories;
+ }
+
+ /**
+ * Read the templates on which the images can be based
+ */
+ global boolean ReadImageTemplates () {
+
+ string dirs = (string)SCR::Read(.sysconfig.product-creator.IMAGE_TEMPLATES);
+ map name_version = $[];
+ foreach (string line, splitstring (dirs, "\t "), {
+ if (line == "" || substring (line, 0, 1) == "#")
+ return;
+ templates_dirs = add (templates_dirs, line);
+ if (!FileUtils::IsDirectory (line))
+ {
+ y2warning ("%1 is not a directory", line);
+ return;
+ }
+ map out = (map) SCR::Execute (.target.bash_output,
+ sformat ("ls -A1 %1", line));
+ foreach (string d, splitstring(out["stdout"]:"", "\n"), {
+ if (d == "") return;
+ map config = Kiwi::ReadConfigXML (line + "/" + d);
+ // index by full path, there may be same names
+ // (templates could be provided by different vendors)
+ if (config != nil && config != $[])
+ {
+ string name = config["name"]:"";
+ string ver = config["version"]:"";
+ if (config["image_type"]:"" != "system")
+ y2warning ("%1 not a 'system' image type, skipping", name);
+ else if (name_version[name]:"" == ver)
+ y2warning ("template %1,%2 already imported", name, ver);
+ else
+ {
+ name_version[name] = ver;
+ Templates[line + "/" + d] = config;
+ }
+ }
+ });
+ });
+ return true;
+ }
+
+ /**
+ * REad the confgiuration stuff for image creator
+ */
+ global boolean Read () {
+
+ string dir =
+ (string) SCR::Read (.sysconfig.product-creator.IMAGE_CONFIGURATIONS);
+ if (dir != nil && dir != "")
+ images_dir = dir;
+ supported_boot_images =
+ (string) SCR::Read (.sysconfig.product-creator.SUPPORTED_BOOT_IMAGES);
+ if (supported_boot_images == nil)
+ supported_boot_images = "";
+ return ReadImageTemplates ();
}
}
Modified: branches/SuSE-SLE-10-SP2-Branch/product-creator/src/Makefile.am
URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-SLE-10-SP2-Branch/product-creator/src/Makefile.am?rev=43128&r1=43127&r2=43128&view=diff
==============================================================================
--- branches/SuSE-SLE-10-SP2-Branch/product-creator/src/Makefile.am (original)
+++ branches/SuSE-SLE-10-SP2-Branch/product-creator/src/Makefile.am Mon Dec 17 13:21:12 2007
@@ -8,7 +8,8 @@
YCPCFLAGS = -I ./include
client_DATA = \
- product-creator.ycp
+ product-creator.ycp \
+ image-creator.ycp
ynclude_DATA = \
helps.ycp \
@@ -17,15 +18,16 @@
complex.ycp \
routines.ycp \
commandline.ycp \
- kiwi.ycp
-
+ kiwi_dialogs.ycp
desktop_DATA = \
- product-creator.desktop
+ product-creator.desktop \
+ image-creator.desktop
module_DATA = \
ProductCreator.ycp \
- Kiwi.ycp
+ Kiwi.ycp \
+ SourceDialogsLite.ycp
EXTRA_DIST = $(client_DATA) $(ynclude_DATA) $(module_DATA) $(desktop_DATA)
Modified: branches/SuSE-SLE-10-SP2-Branch/product-creator/src/ProductCreator.ycp
URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-SLE-10-SP2-Branch/product-creator/src/ProductCreator.ycp?rev=43128&r1=43127&r2=43128&view=diff
==============================================================================
--- branches/SuSE-SLE-10-SP2-Branch/product-creator/src/ProductCreator.ycp (original)
+++ branches/SuSE-SLE-10-SP2-Branch/product-creator/src/ProductCreator.ycp Mon Dec 17 13:21:12 2007
@@ -62,6 +62,7 @@
global boolean profile_parsed = false;
+global integer max_size_mb = 999 * 1024;
/* Configuration Map */
global map Config = $[];
@@ -90,8 +91,8 @@
global boolean proposal_valid = false;
-// What we want to create with kiwi
-global string kiwi_task = "iso";
+// if the YaST sources should be enabled when opening package selector
+global boolean enable_sources = true;
// original source configuration, needed to reset the package manager
list