#88 Drop unused dependencies
Merged a year ago by tdawson. Opened a year ago by tdawson.
centos/ tdawson/centpkg drop-deps  into  develop

@@ -2,7 +2,6 @@ 

  

  import os

  from cryptography import x509

- import urlgrabber

  import datetime

  

  # This file was modified from the fedora_cert section in fedora-packager written
@@ -39,8 +38,6 @@ 

      Expiry time warn if less than 21 days

      """

      my_cert = _open_cert()

-     # CRL verification would go here

-     #crl = urlgrabber.urlread("https://<url_to_crl>/ca/crl.pem")

      warn = datetime.datetime.now() + datetime.timedelta(days=21)

  

      print(my_cert.not_valid_after.strftime('cert expires: %Y-%m-%d'))

file modified
-1
@@ -27,7 +27,6 @@ 

  

  import gitlab

  import json

- import koji

  import os

  import sys

  

The python libraries urlgrabber and koji are never used in the centpkg code.
This removes them to clean up unused dependencies.

Pull-Request has been merged by tdawson

a year ago