Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/sugar/activity/activity.py
diff options
context:
space:
mode:
authorSimon Schampijer <simon@schampijer.de>2012-08-23 12:19:37 (GMT)
committer Simon Schampijer <simon@laptop.org>2012-08-23 12:25:46 (GMT)
commitd1f68419e79376381fc2c3b111466714f044dfc0 (patch)
treef80d5b505952b807d035fe006774ab6fb1333610 /src/sugar/activity/activity.py
parent2341c412ccff5e65dbd4fd7c0b397817f21bb672 (diff)
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 <simon@laptop.org> Reviewed-by: Gonzalo Odiard <gonzalo@laptop.org>
Diffstat (limited to 'src/sugar/activity/activity.py')
0 files changed, 0 insertions, 0 deletions