From 9ab54653ac335b9ebdbbd80c18cd65ec919131e2 Mon Sep 17 00:00:00 2001 From: Arjan van de Ven Date: Tue, 7 Feb 2017 16:28:52 +0000 Subject: [PATCH] add zip support --- autospec/license.py | 1 + autospec/pkg_integrity.py | 1 + autospec/tarball.py | 1 + 3 files changed, 3 insertions(+) diff --git a/autospec/license.py b/autospec/license.py index 55e43e8..28ae6ad 100644 --- a/autospec/license.py +++ b/autospec/license.py @@ -179,6 +179,7 @@ license_blacklist = { "License-2.0": True, "BSD-style": True, "Licences": True, + "New": True, "License(==-2.0)": True, } diff --git a/autospec/pkg_integrity.py b/autospec/pkg_integrity.py index 72d749b..e18c3de 100644 --- a/autospec/pkg_integrity.py +++ b/autospec/pkg_integrity.py @@ -370,6 +370,7 @@ VERIFIER_TYPES = { '.tar': GPGVerifier, '.bz2': GPGVerifier, '.xz': GPGVerifier, + '.zip': GPGVerifier, '.gem': GEMShaVerifier, } diff --git a/autospec/tarball.py b/autospec/tarball.py index 974bfc0..bae3de6 100644 --- a/autospec/tarball.py +++ b/autospec/tarball.py @@ -288,6 +288,7 @@ def name_and_version(url_argument, name_argument): m = p.search(url_argument) if m: name = m.group(1).strip() + rawname = name # convert from 7_4_2 to 7.4.2 version = m.group(2).strip().replace('_', '.') # remove release candidate tag