diff --git a/src/sugar/activity/bundlebuilder.py b/src/sugar/activity/bundlebuilder.py
index ab3679b..e638670 100644
a
|
b
|
class SourcePackager(Packager): |
207 | 207 | def get_files(self): |
208 | 208 | git_ls = subprocess.Popen('git-ls-files', stdout=subprocess.PIPE, |
209 | 209 | cwd=self.config.source_dir) |
210 | | if git_ls.wait(): |
| 210 | stdout, _ = git_ls.communicate() |
| 211 | if git_ls.returncode : |
211 | 212 | # Fall back to filtered list |
212 | 213 | return list_files(self.config.source_dir, |
213 | 214 | IGNORE_DIRS, IGNORE_FILES) |
214 | 215 | |
215 | | return [path.strip() for path in git_ls.stdout.readlines()] |
| 216 | return [path.strip() for path in "\n".split(stdout)] |
216 | 217 | |
217 | 218 | def package(self): |
218 | 219 | tar = tarfile.open(self.package_path, 'w:bz2') |