[patch] anaconda-10.1.0.2-corruptreboot4vnc.patch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Here is a small patch that adds a "Reboot" button to the dialog that
opens when a package is found to be "corrupt", which in my PXE/http
method of installation usually means that the package is missing from
the tree because I added updates and didn't rebuild hdlist{,2}. Because,
as was mentioned earlier in the list, this is really the same as just
"pushing the reset", this button should only show up during a vnc
install which is assumed to be a remote where the reset button is not
convenient.

Again, this is against anaconda 10.1.0.2, but looks like it applies to
cvs HEAD as well.

-- 
Danen Br�Modwest Sr. Engineer
Powerful, Affordable Web Hosting
diff -ruN anaconda-10.1.0.2.orig/packages.py anaconda-10.1.0.2.mod/packages.py
--- anaconda-10.1.0.2.orig/packages.py	2004-10-19 12:38:02.000000000 -0600
+++ anaconda-10.1.0.2.mod/packages.py	2004-12-16 15:03:41.791204120 -0700
@@ -421,7 +421,11 @@
                                                           h['release']))
                                                           
                     self.method.unmountCD()
-		    self.messageWindow(_("Error"),
+		    if flags.usevnc:
+		      buttons = [_("Reboot"), _("Continue")]
+		    else:
+		      buttons = [_("Continue")]
+		    rc = self.messageWindow(_("Error"),
 			_("The package %s-%s-%s cannot be opened. This is due "
                           "to a missing file or perhaps a corrupt package.  "
                           "If you are installing from CD media this usually "
@@ -429,7 +433,13 @@
 			  "unable to read the media.\n\n"
 			  "Press <return> to try again.") % (h['name'],
                                                              h['version'],
-                                                             h['release']))
+                                                             h['release']),
+                                          type="custom",
+                                          custom_icon="error",
+                                          custom_buttons = buttons)
+		    if flags.usevnc and rc == 0:
+		      sys.exit(0)
+
 	    self.progress.setPackageStatus(_("Installing..."), None)
 	    fn = self.method.unlinkFilename(fn)
 	    return self.rpmFD

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux