Revision: 7615
          http://playerstage.svn.sourceforge.net/playerstage/?rev=7615&view=rev
Author:   robotos
Date:     2009-05-04 13:16:36 +0000 (Mon, 04 May 2009)

Log Message:
-----------
check if the pkg path really exists

Modified Paths:
--------------
    code/gazebo/trunk/build.py

Modified: code/gazebo/trunk/build.py
===================================================================
--- code/gazebo/trunk/build.py  2009-05-03 17:51:49 UTC (rev 7614)
+++ code/gazebo/trunk/build.py  2009-05-04 13:16:36 UTC (rev 7615)
@@ -177,7 +177,8 @@
       try:
         if not check:
           print "Checking for "+key+"...",
-        pkgcfg = "PKG_CONFIG_PATH="+os.environ["PKG_CONFIG_PATH"]+" "+pkgcfg;
+        if os.environ.has_key("PKG_CONFIG_PATH"):
+          pkgcfg = "PKG_CONFIG_PATH="+os.environ["PKG_CONFIG_PATH"]+" "+pkgcfg;
         env.ParseConfig(pkgcfg)
         if not check:
           print 'yes'


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Playerstage-commit mailing list
Playerstage-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to