FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Development

 
 
LinkBack Thread Tools
 
Old 03-30-2010, 04:57 PM
Chris Lumens
 
Default Update to work with new python-meh with report support (#562659)

> diff --git a/progs/firstboot b/progs/firstboot
> index 0f8b804..6f14794 100755
> --- a/progs/firstboot
> +++ b/progs/firstboot
> @@ -18,8 +18,11 @@
> # subject to the GNU General Public License and may only be used or replicated
> # with the express permission of Red Hat, Inc.
> #
> -import meh
> +
> import os, string, sys
> +from meh.dump import *
> +from meh.ui.gui import GraphicalIntf
> +from meh.handler import *
>
> # Since X may be starting up immediately after firstboot crashes, we might
> # not have any way to see the traceback. This lets it be logged somewhere
> @@ -175,7 +178,10 @@ if __name__ == "__main__":
> # This must come as early as possible so we can present the UI for the
> # widest class of problems, BUT it also has to come late enough for us
> # to have already imported gtk.
> - meh.makeRHHandler("firstboot", "@VERSION@", config)
> + handler_conf = Config(programName="firstboot",
> + programVersion="@VERSION@")
> + handler = ExceptionHandler(handler_conf, GraphicalIntf(), ExceptionDump)
> + handler.install(config)
>
> config.moduleList = loadModules(config.moduleDir, config.mode)
> if not config.moduleList:

Looks fine to me, as long as you've tested it. This should go to RHEL6
and master, but not to F13. The python-meh in F13 does not use report
as it was determined to be too destabilizing of a change.

- Chris

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 09:23 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org