By default include all the files in the directory,
except a few which we know are not useful or autogenerated. Hack for 0.81.1, we really need to rewrite bundlebuilder.
This commit is contained in:
parent
ce235e7405
commit
179e4288fe
@ -67,6 +67,15 @@ class _ManifestFileList(_DefaultFileList):
|
||||
self.append(stripped_line)
|
||||
f.close()
|
||||
|
||||
class _AllFileList(list):
|
||||
def __init__(self):
|
||||
for root, dirs, files in os.walk('.'):
|
||||
if not root.startswith('./locale'):
|
||||
for f in files:
|
||||
if not f.endswith('.xo') and \
|
||||
f != '.gitignore':
|
||||
self.append(os.path.join(root, f))
|
||||
|
||||
def _extract_bundle(source_file, dest_dir):
|
||||
if not os.path.exists(dest_dir):
|
||||
os.mkdir(dest_dir)
|
||||
@ -141,7 +150,7 @@ def _get_file_list(manifest):
|
||||
elif os.path.isdir('.svn'):
|
||||
return _SvnFileList()
|
||||
else:
|
||||
return _DefaultFileList()
|
||||
return _AllFileList()
|
||||
|
||||
def _get_po_list(manifest):
|
||||
file_list = {}
|
||||
|
Loading…
Reference in New Issue
Block a user