관리-도구
편집 파일: debuginfo.pyc
� ��^c @ s= d 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 m Z m Z d d l m Z d d l m Z d d l m Z m Z m Z m Z m Z m Z m Z m Z m Z d a d � Z e e d � � Z d � Z d e f d � � YZ d � Z d e f d � � YZ d � Z d � Z! d S( s\ This module provides classes and functions used to download and manage debuginfos. i����N( t Popen( t _t YumBase( t DownloadBaseCallback( t YumBaseError( R t log1t log2t RETURN_OKt RETURN_FAILUREt RETURN_CANCEL_BY_USERt verboset ask_yes_not error_msgt c sq d d l } t j � � t j � � | j d � � � j � k rU � j � k rU � S� � � � f d � } | S( s� Ensures that the function is called using abrt's uid and gid Returns: Either an unchanged function object or a wrapper function object for the function. i����Nt abrtc sM t j � j � t j � j � � | | � } t j � � t j � � | S( s� Wrapper function around the called function. Sets up uid and gid to match abrt's and after the function finishes rolls its uid and gid back. Returns: Return value of the wrapped function. ( t ost setegidt pw_gidt seteuidt pw_uid( t argst kwargst retval( R t current_gidt current_uidt fn( s<