[jhbuild] environment: fix GST_REGISTRY handling



commit f6ab60533e60a75bc66a55d6dd1dfa23fbb5d757
Author: Ryan Lortie <desrt desrt ca>
Date:   Wed Mar 12 17:50:09 2014 -0400

    environment: fix GST_REGISTRY handling
    
    GST_REGISTRY is not a PATH-style environment variable: it should contain
    only one filename.  For this reason, avoid using addpath() on it and
    just set it directly.

 jhbuild/environment.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/jhbuild/environment.py b/jhbuild/environment.py
index 248f78c..ad6ae84 100644
--- a/jhbuild/environment.py
+++ b/jhbuild/environment.py
@@ -186,11 +186,11 @@ def setup_env(prefix):
 
     # GST_REGISTRY
     gstregistry = os.path.join(prefix, '_jhbuild', 'gstreamer-0.10.registry')
-    addpath('GST_REGISTRY', gstregistry)
+    os.environ['GST_REGISTRY'] = gstregistry
 
     # GST_REGISTRY_1_0
     gstregistry = os.path.join(prefix, '_jhbuild', 'gstreamer-1.0.registry')
-    addpath('GST_REGISTRY_1_0', gstregistry)
+    os.environ['GST_REGISTRY_1_0'] = gstregistry
 
     # ACLOCAL_PATH
     aclocalpath = os.path.join(prefix, 'share', 'aclocal')


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]