So that the package dependency list can be used by other scripts and it
is kept closer to the relevant module.

Signed-off-by: Cleber Rosa <[email protected]>
---
 frontend/pkgdeps.py                                | 55 ++++++++++++++++++++++
 .../autotest-install-packages-deps                 | 21 +--------
 2 files changed, 56 insertions(+), 20 deletions(-)
 create mode 100644 frontend/pkgdeps.py

diff --git a/frontend/pkgdeps.py b/frontend/pkgdeps.py
new file mode 100644
index 0000000..02e2c9e
--- /dev/null
+++ b/frontend/pkgdeps.py
@@ -0,0 +1,55 @@
+"""
+List of distribution package dependencies for the frontend, that is,
+packages needed for running the AFE and TKO servers
+"""
+
+
+FEDORA_REDHAT_PKGS = [
+    'Django',
+    'MySQL-python',
+    'git',
+    'httpd',
+    'java-devel',
+    'mod_wsgi',
+    'mysql-server',
+    'numpy',
+    'policycoreutils-python'
+    'python-atfork',
+    'python-crypto',
+    'python-httplib2',
+    'python-imaging',
+    'python-matplotlib',
+    'python-paramiko',
+    'selinux-policy',
+    'selinux-policy-targeted',
+    'unzip',
+    'urw-fonts',
+    'wget']
+
+
+UBUNTU_PKGS = [
+    'apache2-mpm-prefork',
+    'git',
+    'gnuplot',
+    'libapache2-mod-wsgi',
+    'libgwt-dev-java'
+    'makepasswd',
+    'mysql-server',
+    'openjdk-7-jre-headless',
+    'python-crypto',
+    'python-django',
+    'python-httplib2',
+    'python-imaging',
+    'python-matplotlib',
+    'python-mysqldb',
+    'python-numpy',
+    'python-paramiko',
+    'python-setuptools',
+    'python-simplejson',
+    'unzip',
+    'wget']
+
+
+PKG_DEPS = {'Fedora' : FEDORA_REDHAT_PKGS,
+            'Red Hat' : FEDORA_REDHAT_PKGS,
+            'Ubuntu' : UBUNTU_PKGS}
diff --git a/installation_support/autotest-install-packages-deps 
b/installation_support/autotest-install-packages-deps
index a1f4e42..7da70a4 100755
--- a/installation_support/autotest-install-packages-deps
+++ b/installation_support/autotest-install-packages-deps
@@ -14,26 +14,7 @@ except ImportError:
 
 
 from autotest.client.shared import software_manager
-
-
-FEDORA_REDHAT_PKGS = ['unzip', 'wget', 'httpd', 'mod_wsgi', 'Django',
-                      'mysql-server', 'MySQL-python', 'git', 'java-devel',
-                      'python-imaging', 'python-crypto', 'python-paramiko',
-                      'python-httplib2', 'numpy', 'python-matplotlib',
-                      'urw-fonts', 'python-atfork', 'selinux-policy',
-                      'selinux-policy-targeted', 'policycoreutils-python']
-
-UBUNTU_PKGS = ['unzip', 'wget', 'gnuplot', 'makepasswd', 'apache2-mpm-prefork',
-               'libapache2-mod-wsgi', 'python-django', 'mysql-server',
-               'python-mysqldb', 'git', 'openjdk-7-jre-headless',
-               'python-imaging', 'python-crypto', 'python-paramiko',
-               'python-httplib2', 'python-numpy', 'python-matplotlib',
-               'python-setuptools', 'python-simplejson', 'libgwt-dev-java']
-
-
-PKG_DEPS = {'Fedora' : FEDORA_REDHAT_PKGS,
-            'Red Hat' : FEDORA_REDHAT_PKGS,
-            'Ubuntu' : UBUNTU_PKGS}
+from autotest.frontend.pkgdeps import PKG_DEPS
 
 
 if __name__ == '__main__':
-- 
1.7.11.7

_______________________________________________
Autotest-kernel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/autotest-kernel

Reply via email to