summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-01-16 00:28:38 +0100
committerHolger Levsen <holger@layer-acht.org>2015-01-16 11:50:01 +0100
commit2492b6bf4e8958f5d04b9545c9c7b58076c3aa1e (patch)
treec08a72c889537653fc68a07dccb4a2e7b22e4a42
parent08cdad9ab4dff611e592935e3b9804c855f620ce (diff)
downloadjenkins.debian.net-2492b6bf4e8958f5d04b9545c9c7b58076c3aa1e.tar.xz
reproducible: also move the import psycopg2 to _common.py
-rwxr-xr-xbin/reproducible_common.py3
-rwxr-xr-xbin/reproducible_html_packages.py4
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(("""