We don't get a lot of information to go on from rpm/yum so just do the best we can. On interactive installs, complain that there was an error and redirect the user to install.log where the error will have been logged. On kickstart installs, just log the complaint. --- yuminstall.py | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/yuminstall.py b/yuminstall.py index 39e705d..efd3ab8 100644 --- a/yuminstall.py +++ b/yuminstall.py @@ -718,7 +718,7 @@ class AnacondaYum(YumSorter): spaceneeded = {} try: - self.runTransaction(cb=cb) + rc = self.runTransaction(cb=cb) except YumBaseError, probs: # FIXME: we need to actually look at these problems... probTypes = { rpm.RPMPROB_NEW_FILE_CONFLICT : _('file conflicts'), @@ -767,6 +767,16 @@ class AnacondaYum(YumSorter): type="custom", custom_icon="error", custom_buttons=[_("Re_boot")]) sys.exit(1) + else: + if rc.return_code == 1: + msg = _("An error occurred while installing packages. Please " + "examine /root/install.log on your installed system for " + "detailed information.") + log.error(msg) + + if not self.anaconda.isKickstart: + intf.messageWindow(_("Error running transaction"), + msg, type="warning") def doMacros(self): for (key, val) in self.macros.items(): -- 1.7.1.1 _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list