/
lib
/
python3
/
dist-packages
/
reportbug
/
__pycache__
/
Upload File
HOME
� �&=d�! � � � d dl Z d dlZddlmZ ddlmZ d dlmZ d dl m Z d dlmZ dZ d Zd � Zd� Zdd �Zdd�Z dd�ZdS )� N� )�utils)�open_url)� NoNetwork)�Deb822)�debian_supportz4https://qa.debian.org/madison.php?package=%s&text=onz$http://ftp-master.debian.org/new.822c �8 � | r|sdS t j || � � S )a� Compare package version strings This is a wrapper around `debian_support.version_compare()` that returns 0 if one if the versions is empty. Parameters ---------- current : str version assumed to be currently installed upstream : str version assumed to be available upstream Returns ------- int 1 if upstream is newer than current, -1 if current is newer than upstream, and 0 if the same. r )r �version_compare)�current�upstreams �9/usr/lib/python3/dist-packages/reportbug/checkversions.py�compare_versionsr ) s+ � �( � �(� ��q��)�(�G�<�<�<� c �2 � t | |� � dk r|S | S )ad Pick the later version of two version strings This is a helper function originally used in :func:`get_incoming_version()`, but currently not used. Parameters ---------- a : str first package version b : str second package version Returns ------- str the later (higher) version string r )r )�a�bs r � later_versionr B s# � �&