<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet"
        integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css"
        integrity="sha512-SzlrxWUlpfuzQ+pcUCosxcglQRNAq/DZjVsC0lE40xsADsfeQoEypE+enwcOiGjk/bSuGGKHEyjSoQ1zVisanQ=="
        crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
</html>
σ
οRec           @@  sν   d  d l  m Z d  d l Z d  d l Z d  d l Z d  d l j j j Z d  d l	 m
 Z
 d  d l m Z m Z d  d l m Z m Z d  d l m Z e rΔ d  d l m Z d  d l m Z m Z n  e j e  Z d	 e
 f d
     YZ d S(   i    (   t   absolute_importN(   t   Command(   t   ERRORt   SUCCESS(   t   CommandErrort   PipError(   t   MYPY_CHECK_RUNNING(   t   Values(   t   Anyt   Listt   CacheCommandc           B@  sb   e  Z d  Z e Z d Z d   Z d   Z d   Z d   Z	 d   Z
 d   Z d   Z d	   Z RS(
   sw  
    Inspect and manage pip's wheel cache.

    Subcommands:

    - dir: Show the cache directory.
    - info: Show information about the cache.
    - list: List filenames of packages stored in the cache.
    - remove: Remove one or more package from the cache.
    - purge: Remove all items from the cache.

    ``<pattern>`` can be a glob expression or a package name.
    s|   
        %prog dir
        %prog info
        %prog list [<pattern>]
        %prog remove <pattern>
        %prog purge
    c         C@  sή   i |  j  d 6|  j d 6|  j d 6|  j d 6|  j d 6} | j sR t j d  t S| si | d | k r t j d d	 j	 t
 |    t S| d } y | | | | d
  Wn( t k
 rΩ } t j | j d  t SXt S(   Nt   dirt   infot   listt   removet   purges<   pip cache commands can not function since cache is disabled.i    s   Need an action (%s) to perform.s   , i   (   t   get_cache_dirt   get_cache_infot   list_cache_itemst   remove_cache_itemst   purge_cachet	   cache_dirt   loggert   errorR   t   joint   sortedR   t   argsR   (   t   selft   optionsR   t   handlerst   actiont   e(    (    s   /builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/commands/cache.pyt   run-   s*    



	
c         C@  s)   | r t  d   n  t j | j  d  S(   Ns   Too many arguments(   R   R   R   R   (   R   R   R   (    (    s   /builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/commands/cache.pyR   O   s    c         C@  s   | r t  d   n  t |  j | d   } |  j |  } t j |  } t j d  j d | d | d |  j	   } t
 j |  d  S(   Ns   Too many argumentst   *sq   
            Location: {location}
            Size: {size}
            Number of wheels: {package_count}
        t   locationt   package_countt   size(   R   t   lent   _find_wheelst   _wheels_cache_dirt
   filesystemt   format_directory_sizet   textwrapt   dedentt   formatt   stripR   R   (   R   R   R   t   num_packagest   cache_locationt
   cache_sizet   message(    (    s   /builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/commands/cache.pyR   V   s    c   	      C@  sα   t  |  d k r! t d   n  | r4 | d } n d } |  j | |  } | sc t j d  d  Sg  } xH | D]@ } t j j |  } t j	 |  } | j
 d j | |   qp Wt j d  t j d j t |    d  S(	   Ni   s   Too many argumentsi    R!   s   Nothing cached.s
    - {} ({})s   Cache contents:
s   
(   R%   R   R&   R   R   t   ost   patht   basenameR(   t   format_file_sizet   appendR,   R   R   (	   R   R   R   t   patternt   filest   resultst   filenamet   wheelR$   (    (    s   /builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/commands/cache.pyR   l   s     c         C@  s©   t  |  d k r! t d   n  | s6 t d   n  |  j | | d  } | sa t d   n  x+ | D]# } t j |  t j d |  qh Wt j d t  |   d  S(   Ni   s   Too many argumentss   Please provide a patterni    s   No matching packagess
   Removed %ss   Files removed: %s(   R%   R   R&   R2   t   unlinkR   t   debugR   (   R   R   R   R8   R:   (    (    s   /builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/commands/cache.pyR      s    c         C@  s(   | r t  d   n  |  j | d g  S(   Ns   Too many argumentsR!   (   R   R   (   R   R   R   (    (    s   /builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/commands/cache.pyR      s    c         C@  s   t  j j | j d  S(   Nt   wheels(   R2   R3   R   R   (   R   R   (    (    s   /builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/commands/cache.pyR'      s    c         C@  s;   |  j  |  } | d | k r$ d n d } t j | |  S(   Nt   -s   *.whls   -*.whl(   R'   R(   t
   find_files(   R   R   R7   t	   wheel_dir(    (    s   /builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/commands/cache.pyR&       s    (   t   __name__t
   __module__t   __doc__t   Truet   ignore_require_venvt   usageR    R   R   R   R   R   R'   R&   (    (    (    s   /builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/commands/cache.pyR
      s   	"						(   t
   __future__R    t   loggingR2   R*   t   pip._internal.utils.filesystemt	   _internalt   utilsR(   t   pip._internal.cli.base_commandR   t   pip._internal.cli.status_codesR   R   t   pip._internal.exceptionsR   R   t   pip._internal.utils.typingR   t   optparseR   t   typingR   R	   t	   getLoggerRB   R   R
   (    (    (    s   /builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/commands/cache.pyt   <module>   s   