
?]c           @   sl   d  d l  m Z d e f d     YZ d e f d     YZ d e f d     YZ d e f d	     YZ d
 S(   i(   t   ENOENTt   InvalidArchiveErrorc           B   s   e  Z d  Z d   Z RS(   s(   Raised when libarchive can't open a filec         O   s3   d | | f } t  |  _ t t |   j |  d  S(   Ns}   Error with archive %s.  You probably need to delete and re-download or re-create this file.  Message from libarchive was:

%s(   R    t   errnot   superR   t   __init__(   t   selft   fnt   msgt   argst   kw(    (    s@   lib/python2.7/site-packages/conda_package_handling/exceptions.pyR      s    	(   t   __name__t
   __module__t   __doc__R   (    (    (    s@   lib/python2.7/site-packages/conda_package_handling/exceptions.pyR      s   t   ArchiveCreationErrorc           B   s   e  Z d  Z RS(   s,   Raised when an archive fails during creation(   R
   R   R   (    (    (    s@   lib/python2.7/site-packages/conda_package_handling/exceptions.pyR      s   t   CaseInsensitiveFileSystemErrorc           B   s   e  Z d    Z RS(   c         K   s/   d } t  t |   j | d | d | | d  S(   Ns
  
        Cannot extract package to a case-insensitive file system. Your install
        destination does not differentiate between upper and lowercase
        characters, and this breaks things. Try installing to a location that
        is case-sensitive. Windows drives are usually the culprit here - can
        you install to a native Unix drive, or turn on case sensitivity for
        this (Windows) location?

          package location: %(package_location)s
          extract location: %(extract_location)s
        t   package_locationt   extract_location(   R   R   R   (   R   R   R   t   kwargst   message(    (    s@   lib/python2.7/site-packages/conda_package_handling/exceptions.pyR      s    (   R
   R   R   (    (    (    s@   lib/python2.7/site-packages/conda_package_handling/exceptions.pyR      s   t   ConversionErrorc           B   s   e  Z d    Z RS(   c         O   sb   | |  _  | |  _ d } |  j  r1 d |  j  } n  | d |  j } t t |   j | | |  d  S(   Nt    s'   Missing files in converted package: %s
s7   Mismatching sizes (corruption) in converted package: %s(   t   missing_filest   mismatching_sizesR   R   R   (   R   R   R   R   R	   t   errors(    (    s@   lib/python2.7/site-packages/conda_package_handling/exceptions.pyR   (   s    			(   R
   R   R   (    (    (    s@   lib/python2.7/site-packages/conda_package_handling/exceptions.pyR   '   s   N(   R   R    t	   ExceptionR   R   R   R   (    (    (    s@   lib/python2.7/site-packages/conda_package_handling/exceptions.pyt   <module>   s   	