Bundlebuilder check if activity files are in git
git version 1.9.3, in a activity directory created inside sugar-build/activities return a empty string when the command "git ls-files" is executed, and no repository is configured. We need verify that condition, and process a file list from the filesystem.
This commit is contained in:
@@ -178,9 +178,12 @@ class Packager(object):
|
|||||||
'fall back to filtered list')
|
'fall back to filtered list')
|
||||||
return list_files(self.config.source_dir,
|
return list_files(self.config.source_dir,
|
||||||
IGNORE_DIRS, IGNORE_FILES)
|
IGNORE_DIRS, IGNORE_FILES)
|
||||||
|
if stdout:
|
||||||
# pylint: disable=E1103
|
# pylint: disable=E1103
|
||||||
return [path.strip() for path in stdout.strip('\n').split('\n')]
|
return [path.strip() for path in stdout.strip('\n').split('\n')]
|
||||||
|
else:
|
||||||
|
return list_files(self.config.source_dir,
|
||||||
|
IGNORE_DIRS, IGNORE_FILES)
|
||||||
|
|
||||||
|
|
||||||
class XOPackager(Packager):
|
class XOPackager(Packager):
|
||||||
|
|||||||
Reference in New Issue
Block a user