[yast-commit] r58530 - in /trunk/product-creator: VERSION package/yast2-product-creator.changes src/Kiwi.ycp src/ProductCreator.ycp src/kiwi_dialogs.ycp src/wizards.ycp
Author: jsuchome
Date: Fri Sep 4 15:23:24 2009
New Revision: 58530
URL: http://svn.opensuse.org/viewcvs/yast?rev=58530&view=rev
Log:
- merge changes from SLE11:
fixed cross-architecture problems (bnc#510971)
Image Creator: help texts for locale configuration (bnc#515551)
do not create i386 version of initrd for s390 (bnc#498464)
do not re-crypt user password already crypted (bnc#521887)
show the warning when package management is locked (bnc#526338)
give kiwi more time to finish (bnc#525986)
probe repositories of NONE type (bnc#527198)
show error if removing old chroot failed (bnc#525993)
- 2.18.11
Modified:
trunk/product-creator/VERSION
trunk/product-creator/package/yast2-product-creator.changes
trunk/product-creator/src/Kiwi.ycp
trunk/product-creator/src/ProductCreator.ycp
trunk/product-creator/src/kiwi_dialogs.ycp
trunk/product-creator/src/wizards.ycp
Modified: trunk/product-creator/VERSION
URL: http://svn.opensuse.org/viewcvs/yast/trunk/product-creator/VERSION?rev=58530&r1=58529&r2=58530&view=diff
==============================================================================
--- trunk/product-creator/VERSION (original)
+++ trunk/product-creator/VERSION Fri Sep 4 15:23:24 2009
@@ -1 +1 @@
-2.18.10
+2.18.11
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=58530&r1=58529&r2=58530&view=diff
==============================================================================
--- trunk/product-creator/package/yast2-product-creator.changes (original)
+++ trunk/product-creator/package/yast2-product-creator.changes Fri Sep 4 15:23:24 2009
@@ -1,4 +1,18 @@
-------------------------------------------------------------------
+Fri Sep 4 15:17:06 CEST 2009 - jsuchome@suse.cz
+
+- merge changes from SLE11:
+ fixed cross-architecture problems (bnc#510971)
+ Image Creator: help texts for locale configuration (bnc#515551)
+ do not create i386 version of initrd for s390 (bnc#498464)
+ do not re-crypt user password already crypted (bnc#521887)
+ show the warning when package management is locked (bnc#526338)
+ give kiwi more time to finish (bnc#525986)
+ probe repositories of NONE type (bnc#527198)
+ show error if removing old chroot failed (bnc#525993)
+- 2.18.11
+
+-------------------------------------------------------------------
Thu Sep 3 14:17:26 CEST 2009 - jsuchome@suse.cz
- added keywords to desktop files
Modified: trunk/product-creator/src/Kiwi.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/product-creator/src/Kiwi.ycp?rev=58530&r1=58529&r2=58530&view=diff
==============================================================================
--- trunk/product-creator/src/Kiwi.ycp (original)
+++ trunk/product-creator/src/Kiwi.ycp Fri Sep 4 15:23:24 2009
@@ -131,6 +131,8 @@
string url = data["url"]:"";
if (url == source || url == adapt_source_path (source))
{
+ if (data["type"]:"" == "NONE")
+ data["type"] = Pkg::RepositoryProbe (url, "");
if (data["type"]:"" == "Plaindir")
type = "rpm-dir";
if (data["type"]:"" == "YUM")
@@ -391,6 +393,19 @@
return substring (full_path, 0, findlastof (full_path, "/"));
}
+ // wait until process is really done or kill -9 it after minute
+ void give_kiwi_time_to_finish (integer pid) {
+ integer count = 0;
+ while (SCR::Read(.process.running, pid) == true)
+ {
+ sleep(100);
+ count = count + 1;
+ if (count > 600) break;
+ }
+ if (SCR::Read(.process.running, pid) == true) SCR::Execute (.process.kill, pid);
+ }
+
+
/**
* run kiwi to finally create the selected image
* @param out_dir output directory for the result
@@ -410,7 +425,13 @@
if (FileUtils::Exists (chroot_dir))
{
y2milestone ("%1 directory is present, removing...", chroot_dir);
- SCR::Execute (.target.bash, sformat ("rm -rf %1", chroot_dir));
+ map out = (map) SCR::Execute (.target.bash_output, sformat ("rm -rf %1", chroot_dir));
+ if (out["exit"]:0 != 0)
+ {
+ y2warning ("cmd output: %1", out);
+ Report::Error (_("Removing old chroot directory failed.") + "\n\n" + out["stderr"]:"");
+ return false;
+ }
}
// create path to chroot_dir if it does not exist (#406731)
FileUtils::CheckAndCreatePath (path_to_dir (chroot_dir));
@@ -523,13 +544,13 @@
if (ret == `cancel)
{
SCR::Execute (.process.kill, id, 15);
- sleep (100);
- SCR::Execute (.process.kill, id);
+ give_kiwi_time_to_finish (id);
}
sleep (100);
} while (ret == nil);
- SCR::Execute (.process.kill, id);
+ give_kiwi_time_to_finish (id);
+
UI::CloseDialog ();
return ret == `ok;
}
@@ -590,6 +611,7 @@
*/
global map
participants (1)
-
jsuchome@svn.opensuse.org