ó
Qº’Nc           @   s5   d  d l  Z  e  j ƒ  Z d e  j f d „  ƒ  YZ d S(   iÿÿÿÿNt   PackageCruftc           B   sM   e  Z d  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 RS(   s!  Cruft that is .deb packages.
    
    This type of cruft consists of .deb packages installed onto the
    system which can be removed. Various plugins may decide that
    various packages are cruft; they can all use objects of PackageCruft
    type to mark such packages, regardless of the reason the packages
    are considered cruft.
    
    When PackageCruft instantiated, the package is identified by an
    apt.Package object. That object is used for all the real operations,
    so this class is merely a thin wrapper around it.
    
    c         C   s   | |  _  | |  _ d  S(   N(   t   _pkgt   _description(   t   selft   pkgt   description(    (    sA   /usr/lib/python2.7/dist-packages/computerjanitor/package_cruft.pyt   __init__%   s    	c         C   s   d S(   Nt   deb(    (   R   (    (    sA   /usr/lib/python2.7/dist-packages/computerjanitor/package_cruft.pyt
   get_prefix)   s    c         C   s
   t  d ƒ S(   Ns   .deb package(   t   _(   R   (    (    sA   /usr/lib/python2.7/dist-packages/computerjanitor/package_cruft.pyt   get_prefix_description,   s    c         C   s
   |  j  j S(   N(   R   t   name(   R   (    (    sA   /usr/lib/python2.7/dist-packages/computerjanitor/package_cruft.pyt   get_shortname/   s    c         C   s   d |  j  |  j j f S(   Nu   %s

%s(   R   R   t   summary(   R   (    (    sA   /usr/lib/python2.7/dist-packages/computerjanitor/package_cruft.pyt   get_description2   s    c         C   s
   |  j  j S(   N(   R   t   installedSize(   R   (    (    sA   /usr/lib/python2.7/dist-packages/computerjanitor/package_cruft.pyt   get_disk_usage5   s    c         C   s   |  j  j ƒ  d  S(   N(   R   t
   markDelete(   R   (    (    sA   /usr/lib/python2.7/dist-packages/computerjanitor/package_cruft.pyt   cleanup8   s    (
   t   __name__t
   __module__t   __doc__R   R   R
   R   R   R   R   (    (    (    sA   /usr/lib/python2.7/dist-packages/computerjanitor/package_cruft.pyR       s   						(   t   computerjanitort   setup_gettextR	   t   CruftR    (    (    (    sA   /usr/lib/python2.7/dist-packages/computerjanitor/package_cruft.pyt   <module>   s   