diff options
author | Mattia Rizzolo <mattia@mapreri.org> | 2015-01-16 00:28:38 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-01-16 11:50:01 +0100 |
commit | 2492b6bf4e8958f5d04b9545c9c7b58076c3aa1e (patch) | |
tree | c08a72c889537653fc68a07dccb4a2e7b22e4a42 | |
parent | 08cdad9ab4dff611e592935e3b9804c855f620ce (diff) | |
download | jenkins.debian.net-2492b6bf4e8958f5d04b9545c9c7b58076c3aa1e.tar.xz |
reproducible: also move the import psycopg2 to _common.py
-rwxr-xr-x | bin/reproducible_common.py | 3 | ||||
-rwxr-xr-x | 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 <mattia@mapreri.org> # 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 <mattia@mapreri.org> # 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((""" |