From d1f68419e79376381fc2c3b111466714f044dfc0 Mon Sep 17 00:00:00 2001 From: Simon Schampijer Date: Thu, 23 Aug 2012 12:19:37 +0000 Subject: Bundlebuilder: don't fail to package if git is not installed, OLPC #11341 When git is installed, it will return non-zero if it gets asked to list the files in a non-git-repository. The subprocess.Popen instantiation is successful in this case and the returncode attribute will contain the error code from git. The current code handles this fine and does fall back to our own source file listing facility. If git isn't installed, however, trying to instantiate subprocess.Popen will fail with OSError. We need to catch this and fall back to our own source file listing facility like we do for the non-repository case. Signed-off-by: Simon Schampijer Reviewed-by: Gonzalo Odiard --- (limited to 'src/sugar/activity/activity.py') -- cgit v0.9.1