Server IP : 184.154.167.98 / Your IP : 3.133.127.131 Web Server : Apache System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 User : puertode ( 1767) PHP Version : 8.2.26 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /lib/python3.6/site-packages/tracer/packageManagers/__pycache__/ |
Upload File : |
3 "e� � @ s G d d� de �ZdS )c @ sP e Zd Zdd� Zdd� Zdd� Zdd� Zd d � Zdd� Zd d� Z e dd� �ZdS )�IPackageManagerc K s t �dS )z9This class is 'interface' so you can't create an instanceN)�NotImplementedError)�self�kwargs� r �%/usr/lib/python3.6/ipackageManager.py�__init__ s zIPackageManager.__init__c C s t �dS )z� Returns list of packages which were modified between unix_time and present Packages in list should be dictionaries with keys {"name", "modified"} N)r )r Z unix_timer r r �packages_newer_than s z#IPackageManager.packages_newer_thanc C s t �dS )z)Returns list of files provided by packageN)r )r �pkg_namer r r � package_files! s zIPackageManager.package_filesc C s t �dS )zFFrom database load informations about given package and set them to itN)r )r �packager r r �load_package_info% s z!IPackageManager.load_package_infoc C s t �dS )z8Returns name of package which provides given applicationN)r )r Zappr r r �provided_by) s zIPackageManager.provided_byc C s t �dS )z4Find a package by name and some other input criteriaN)r )r r �searchr r r �find_package- s zIPackageManager.find_packagec C s t �dS )z� Compares two packages by their version information Returns: 0 if they are equal 1 if package1 > package2 -1 if package2 > package1 N)r )r Zpackage1Zpackage2r r r �compare_packages1 s z IPackageManager.compare_packagesc C sB y(| d | j d�� } | d | jd�� } W n tk r< Y nX | S )N�.�-)�index�rindex� ValueError)r r r r �_pkg_name_without_version; s z)IPackageManager._pkg_name_without_versionN)�__name__� __module__�__qualname__r r r r r r r �staticmethodr r r r r r s r N)�objectr r r r r �<module> s