Author: locilka Date: Mon Dec 8 16:30:19 2008 New Revision: 53977 URL: http://svn.opensuse.org/viewcvs/yast?rev=53977&view=rev Log: - Checking the process exit status returned after deploying an image (bnc #456337). Modified: trunk/installation/package/yast2-installation.changes trunk/installation/src/modules/ImageInstallation.ycp Modified: trunk/installation/package/yast2-installation.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/installation/package/yast2-installation.changes?rev=53977&r1=53976&r2=53977&view=diff ============================================================================== --- trunk/installation/package/yast2-installation.changes (original) +++ trunk/installation/package/yast2-installation.changes Mon Dec 8 16:30:19 2008 @@ -5,6 +5,8 @@ - Added two more control-file examples. - Checking all control files during build. - Adjusted control-file examples (all bnc #438678). +- Checking the process exit status returned after deploying an + image (bnc #456337). - 2.17.45 ------------------------------------------------------------------- Modified: trunk/installation/src/modules/ImageInstallation.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/installation/src/modules/ImageInstallation.ycp?rev=53977&r1=53976&r2=53977&view=diff ============================================================================== --- trunk/installation/src/modules/ImageInstallation.ycp (original) +++ trunk/installation/src/modules/ImageInstallation.ycp Mon Dec 8 16:30:19 2008 @@ -307,6 +307,19 @@ } } } + + // BNC #456337 + // Checking the exit code (0 = OK, nil = still running, 'else' = error) + integer exitcode = (integer) SCR::Read (.process.status, pid); + + if (exitcode != nil && exitcode != 0) { + y2milestone ( + "Deploying has failed, exit code was: %1, stderr: %2", + exitcode, SCR::Read (.process.read_stderr, pid) + ); + aborted = true; + } + y2milestone ("Finished"); if (aborted) -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org