summaryrefslogtreecommitdiffstats
path: root/pyanaconda/exception.py
Commit message (Collapse)AuthorAgeFilesLines
* Add a way to test exception handlingVratislav Podzimek2012-09-171-0/+34
| | | | | | | | Instead of adding command line option throwing exception in one place of the code, let's use SIGURS1 as signal for raising exception in anaconda. This way, it is possible to raise exception in different phases of the installation and we can add code to prepare worst case scenario testing as much resolved bugs in exception handling as possible.
* Include packaging log in exception reports.David Lehman2012-09-051-1/+1
|
* Use chvt command for tty switchingVratislav Podzimek2012-09-051-8/+4
| | | | | | isys.vtActivate is problematic when using tmux, chvt command works well and we use it so rarely that it should be okay to call an external command.
* Use Gtk.main_level() to check if main loop is already runningVratislav Podzimek2012-08-291-6/+16
| | | | | | | | | For some reason GLib.main_depth() stopped working and returns 0 even if Gtk.main loop is already running. This leads to crashes and hangs of whole GUI when exception appears in a thread different from the main one. Resolves: rhbz#849997
* Put traceback reports on a diet.Chris Lumens2012-08-231-22/+7
| | | | | | | | | This updates what attributes get written out to the traceback file for the newui. In particular, it avoids writing out all the yum stuff that makes the traceback file grow over 2 MB and take nearly a minute to pickle. It's entirely possible this is either skipping too much or writing out too much still, but we can work on that over time.
* Do not run Gtk.main() from a separate thread in exception handlingVratislav Podzimek2012-08-031-2/+25
| | | | | | Multiple threads drawing in a Gtk.main loop cause Gtk crash. To prevent such crashes, we need to run exception handling dialogs in the same thread as the main loop (if running).
* Do not run __del__() on anaconda interface in runDebugVratislav Podzimek2012-08-031-2/+0
| | | | UserInterface object no longer has the __del__() method.
* Display the hint how to quit the debuggerVratislav Podzimek2012-07-271-0/+2
| | | | | People usually don't know that 'continue' command quits the debugger, so display them a little hint.
* Just switch back to tty6 when 'c' is used in the post-mortem pdb sessionVratislav Podzimek2012-07-271-1/+4
| | | | | Killing ananconda left no way to report a bug via python-meh/libreport once user entered the post-mortem pdb session.
* Get back to python-meh UI in exception handlingVratislav Podzimek2012-07-271-10/+14
| | | | | Now that python-meh is ported to Gtk3, we can again use its UI in exception handling.
* Remove enough of dispatcher so anaconda works without partIntfHelpers.Chris Lumens2012-07-171-1/+0
| | | | | | | Our tangled set of imports means that anaconda was still trying to import partIntfHelpers through dispatch and rescue mode. This patch breaks those imports (which likely further breaks rescue and upgrade modes) and makes the gui work again.
* Run kickstart %post scripts at the end of installation.Chris Lumens2012-05-081-2/+1
| | | | | Certain portions of the install are now implemented as kickstart scripts, so they need to start being run.
* Remove obsolete error handling left over from the old storage code.David Lehman2012-02-161-1/+1
|
* Very lame initial exception reporting support for the newui branch.Chris Lumens2012-01-271-9/+13
| | | | | | | | | | I can't really use the UI parts of python-meh without updating it to GTK3, which I can't do until firstboot and s-c-ks are also updated. Currently attempting to handle an exception results in another exception, which is not at all useful. Thus, this patch makes sure the /tmp/anaconda-tb-* file is written and then prints the exception to tty1 and exits. Hey, at least we know something happened now.
* Moving anaconda.rootPath to constants.ROOT_PATH.Ales Kozumplik2011-08-261-2/+3
| | | | | | Create the constant and remove the old variable. This way we don't have to pass the argument around.
* Do not traceback on mpath errors caused by faulty hardware.Ales Kozumplik2011-07-251-0/+8
| | | | Resolves: rhbz#689520
* /var/log/dmesg doesn't exist in a live install. messages does, though.David Lehman2011-03-041-1/+1
|
* Copy ifcfg.log into traceback and target system.Radek Vykydal2010-09-271-2/+2
|
* Include the kickstart file in the tracebackBrian C. Lane2010-07-271-0/+3
| | | | | This adds logging the contents of the kickstart file, if present, to the traceback file. It also includes all of the command line options states.
* Structure the repo layout so it matches final structure better and make isys ↵Martin Sivak2010-05-311-0/+132
a real Python package. Also updates the build and autotools stuff to work with the new structure