File: //lib/python3.6/site-packages/tracer/__pycache__/main.cpython-36.pyc
3
�|
`� � @ 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 j� } g }tjj� s$tjj� j� }g }x6| j| j | D ]"}|j t
|| jrTtj� nd �� q:W yt
| |�}|j� S tttfk
r� } z|j� td� W Y d d }~X n^ tk
r� } z"|j� ttd�� td� W Y d d }~X n" ttfk
�r td� Y nX 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 �packageZrouterZex� r �/usr/lib/python3.6/main.py�run s&