From 2492b6bf4e8958f5d04b9545c9c7b58076c3aa1e Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Fri, 16 Jan 2015 00:28:38 +0100 Subject: reproducible: also move the import psycopg2 to _common.py --- bin/reproducible_common.py | 3 ++- bin/reproducible_html_packages.py | 4 +--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/bin/reproducible_common.py b/bin/reproducible_common.py index b6294928..45411b97 100755 --- a/bin/reproducible_common.py +++ b/bin/reproducible_common.py @@ -4,7 +4,7 @@ # Copyright © 2015 Mattia Rizzolo # Licensed under GPL-2+ # -# Depends: python3 +# Depends: python3 python3-psycopg2 # # This is included by all reproducible_*.py scripts, it contains common functions @@ -15,6 +15,7 @@ import sqlite3 import logging import argparse import datetime +import psycopg2 from string import Template DEBUG = False diff --git a/bin/reproducible_html_packages.py b/bin/reproducible_html_packages.py index 41004544..0d76a5fb 100755 --- a/bin/reproducible_html_packages.py +++ b/bin/reproducible_html_packages.py @@ -4,12 +4,10 @@ # Copyright © 2015 Mattia Rizzolo # Licensed under GPL-2+ # -# Depends: python3 python3-psycopg2 +# Depends: python3 # # Build rb-pkg pages (the pages that describe the package status) -import psycopg2 - from reproducible_common import * html_package_page = Template((tab*2).join((""" -- cgit v1.2.3-70-g09d2