diff options
author | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-07-01 09:40:58 (GMT) |
---|---|---|
committer | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-07-01 09:40:58 (GMT) |
commit | 5721de7ce4af0382a3c8f1684a275c9865c692fc (patch) | |
tree | a5831bbd1e1ff955616dd878c3c6f706e34f2028 /scripts | |
parent | db61b9a78aca7794571fc8c525a2f5b18257ccac (diff) |
Add a couple of gstreamer deps
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/check-system | 29 |
1 files changed, 25 insertions, 4 deletions
diff --git a/scripts/check-system b/scripts/check-system index 49bfd3a..a37972c 100755 --- a/scripts/check-system +++ b/scripts/check-system @@ -16,6 +16,11 @@ elif os.path.exists("/etc/lsb-release"): devnull = open("/dev/null", "w") xvfb_display = ":100" +libdirs = ["lib", + "lib64", + "lib/x86_64-linux-gnu", + "lib/i386-linux-gnu"] + def check_binary(check): return subprocess.call(["which", check], stdout=devnull, @@ -32,9 +37,7 @@ def check_gtkmodule(check): # Not sure we can do better than this, the gtkmodule stuff is private missing = True - for libdir in ["lib", "lib64", - "lib/x86_64-linux-gnu", - "lib/i386-linux-gnu"]: + for libdir in libdirs: if os.path.exists("/usr/%s/gtk-2.0/modules/lib%s.so" % (libdir, check)): missing = False @@ -43,11 +46,21 @@ def check_gtkmodule(check): def check_dbus(check): return not os.path.exists("/usr/share/dbus-1/services/%s.service" % check) +def check_gstreamer(check): + missing = True + + for libdir in libdirs: + if os.path.exists("/usr/%s/gstreamer-0.10/libgst%s.so" % (libdir, check)): + missing = False + + return missing + checkers = { "binary": check_binary, "python": check_python, "pkgconfig": check_pkgconfig, "gtkmodule": check_gtkmodule, - "dbus": check_dbus } + "dbus": check_dbus, + "gstreamer": check_gstreamer } pre_checks = \ [{ "check": "Xvfb", @@ -230,6 +243,14 @@ checks = \ "checker": "python", "packages": { "fedora": "pyabiword", "ubuntu": "python-abiword" } }, + { "check": "import pygst", + "checker": "python", + "packages": { "fedora": "gstreamer-python", + "ubuntu": "python-gst0.10" } }, + { "check": "video4linux2", + "checker": "gstreamer", + "packages": { "fedora": "gstreamer-plugins-good", + "ubuntu": "gstreamer0.10-plugins-good" } }, # System modules buildtime |