File: //proc/self/root/usr/lib/python3.9/site-packages/tracer/__pycache__/main.cpython-39.pyc
a
�|
`� � @ sp d dl mZ d dlZd dlZd dlmZ d dlmZ d dlm Z d dl
mZmZm
Z
mZ d dlmZ dd � ZdS )
� )�print_functionN)�Router)�parser)�Package)�UnsupportedDistribution�PathNotFound�LockedDatabase�DatabasePermissions)�_c
C s t �� } g }tj�� s$tj�� �� }g }| j| j | D ]"}|� t
|| jrRt�� nd �� q8zt
| |�}|�� W S tttfy� } z|�� td� W Y d }~nfd }~0 ty� } z(|�� ttd�� td� W Y d }~n(d }~0 ttf�y td� Y n0 d S )N� z,You will probably need to run tracer as root� )r �
parse_args�sys�stdin�isatty�readline�split�packagesZpkgs�appendr Znow�timer �dispatchr r r �print�exitr r
�KeyboardInterrupt�EOFError)�argsZstdin_packagesr �packageZrouter�ex� r �//usr/lib/python3.9/site-packages/tracer/main.py�run s&