-=[ Mr. Bumblebee ]=-
_Indonesia_
ó
ÚµQc @@ sâ d Z d d l m Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l m Z d d l Z d d l m
Z
m Z m Z m
Z
m Z d „ Z d „ Z d „ Z d „ Z d
„ Z d „ Z d „ Z d
„ Z d S( s
Handling and reporting crashes.
A crash is an exception propagated up almost to the top level of Bazaar.
If we have apport <https://launchpad.net/apport/>, we store a report of the
crash using apport into its /var/crash spool directory, from where the user
can either manually send it to Launchpad. In some cases (at least Ubuntu
development releases), Apport may pop up a window asking if they want
to send it.
Without apport, we just write a crash report to stderr and the user can report
this manually if the wish.
We never send crash data across the network without user opt-in.
In principle apport can run on any platform though as of Feb 2010 there seem
to be some portability bugs.
To force this off in bzr turn set APPORT_DISABLE in the environment or
-Dno_apport.
i ( t absolute_importN( t StringIO( t configt debugt osutilst plugint tracec C@ s© d t j k s$ t j j d d ƒ r1 t | | ƒ Sy t | | ƒ rG d SWnQ t k
rn } t j
d | ƒ n. t k
r› } t j
d | ƒ t j ƒ n Xt | | ƒ S( Nt no_apportt APPORT_DISABLEs. couldn't find apport bug-reporting library: %ss, bzr: failed to report crash using apport: %r(
R t debug_flagst ost environt gett Nonet report_bug_legacyt report_bug_to_apportt ImportErrorR t muttert Exceptiont log_exception_quietly( t exc_infot stderrt e( ( s0 /usr/lib/python2.7/dist-packages/bzrlib/crash.pyt
report_bug@ s
c @ së t j | ˆ ƒ ˆ j d ƒ d d l ‰ ‡ ‡ f d † } | d t j t j t j ƒ t j d d ƒ f ƒ | d t j
ƒ | ˆ j d t j
ƒ d
d d d
ƒd ƒ | d t j ƒ t j ƒ t j j d ƒ f ƒ ˆ j d ƒ d S( s4 Report a bug by just printing a message to the user.s
i Nc @ s* ˆ j ˆ j | d d d d ƒd ƒ d S( Nt widthiN t subsequent_indents s
( t writet fill( t l( t err_filet textwrap( s0 /usr/lib/python2.7/dist-packages/bzrlib/crash.pyt
print_wrappedW s s bzr %s on python %s (%s)
t aliasedi s arguments: %r
s plugins: R iN R s s"