ó ‰P[c@sÄdZddlZddlZddlZddlZddlZddlZddlZddl Zddl Z ddlm Z ddl m Z ejdkrÎddlmZddlmZeefn ddlmZddlmZd„Zd „Zd „Zd „Zd „Zd „Zd„Zd„Zd„Zd„Zd„Zd„Z e!dkrÀddlZe"ej#ƒdkr²ej$j%dej#dƒej&dƒnej#dZ'ej(ƒZ)e*e'dƒZ+e)j,e+ƒWdQXe-e)j.ƒƒZ/e)j0ƒZ1ee1dƒe-e1j.ƒƒZ3dZ4x~e5e/e3BƒD]lZ6e6e3kr‚e6e/kr‚de6e1e6fGHe4d7Z4qDe6e/krDe6e3krDde6GHe4d7Z4qDqDWde4GHndS(søAttach generally useful information, not specific to any package. Copyright (C) 2009 Canonical Ltd. Authors: Matt Zimmerman , Brian Murray This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. See http://www.gnu.org/copyleft/gpl.html for the full text of the license. iÿÿÿÿN(tunicode_gettext(tglobt3(turljoin(turlopenc CsNt|ƒt|ƒt|ƒt|ƒtjj|ddƒg}xIt|jddƒj dƒƒD]&}|j |ƒ|j dƒrfPqfqfWt|ƒ}dj |ƒ|d<|j dƒytjjdƒ|d} | | kr| j | ƒqð| | krð| j| ƒqðqðWq‹q‹WxBd6D]:} | |kr@|| j dƒr@|| d|| ^User postinst hook script \[.*update-grub\] exited with valuesU^run-parts: /etc/kernel/post(inst|rm).d/zz-update-grub exited with return code [1-9]+s^/usr/sbin/grub-probe: errors/usr/sbin/update-grubs grub-probeRs/boot/grub/grub.cfgRsinitramfs-toolss^update-initramfs: failed for temacs22temacs23semacs-snapshottxemacs21s+^!! Byte-compilation for x?emacs\S+ failed!s s^!! and attach the file (\S+)is linux-image-s@^run-parts: (/etc/kernel/\S+\.d/\S+) exited with return code \d+iRsgrub-pcsHThis failure was caused by a program which did not originate from UbuntusRThis failure was caused by a corrupted package download or file system corruption.s7failed to install/upgrade: corrupted filesystem tarfileR^Rs*dependency problems - leaving unconfiguredsIThis failure is a followup error from a previous package install failure.scannot access archives:(failed to read|failed in write|short read) on buffer copys@(--fsys-tarfile|dpkg-deb --control) returned error exit status 2s/dpkg-deb: error.*is not a debian format archives#is already installed and configuredR t aptdaemontAptdaemonVersions/var/log/dpkg.logtDpkgLogs/var/log/apt/term.logt AptTermLogs /var/crash/*tstats-cs%a:%u:%g:%s:%y:%x:%nt CrashReportssalready-installed(R_R`(RaRbsemacs-snapshotRc(R&REt trim_dpkg_logR6R@RAt MULTILINEtTruetFalseRR,tget_file_packageR?R1tpathtexistsR'RDR#tattach_file_if_existsR)R-Rtcommand_outputRF(RGRLtwrong_grub_msgRMtgrub_hook_failuret grub_errorst grub_errort grub_packagetregexRQtmRoRUt error_messagetcorrupt_packagetreports((s)/usr/share/apport/general-hooks/ubuntu.pyR7 s†      $$ $$         $    c Csrg}d|kr"d|kr"dSd|kr2dS|d}t}xˆ|D]€}|jdƒ}|jdƒs‹|jdƒs‹|jdƒrI|jdƒd jd ƒ}|jd d ƒ}|j|ƒqIqIW|jd|dƒ}xq|D]i}|jdƒ}d |krêd|krqênx3|D](}tj||ƒr$|}t }Pq$q$WqêqêW|rnd||d iitrbs+%s: %ss-%s: (deleted)s%d items changed(7t__doc__R@R1tos.pathR–tsysR¢tapport.packagingRtapport.hookutilsRÌRRERRVturlparseRturllib2Rt urllib.parseturllib.requestR]R5R7R0R RR"R!RFR;RjR6t__name__tlentargvRtwritetexitt report_filetReportRGtopenRRtloadtsettkeyst report_keystcopyt new_reportR?tnew_report_keystchangedtsortedR¼(((s)/usr/share/apport/general-hooks/ubuntu.pyt s\H     v g   , # %