summaryrefslogtreecommitdiffstats
path: root/tools/export_tarball
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-30 17:40:09 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-30 17:40:09 +0000
commit4f2d4d7039c8448cc518b4cba42a8815e81aa152 (patch)
treed8f6a4a28f02ab20a8f1b78257a4947df7e35be9 /tools/export_tarball
parent7e6640844ffca6583bee73df4496ace16f70de29 (diff)
downloadchromium_src-4f2d4d7039c8448cc518b4cba42a8815e81aa152.zip
chromium_src-4f2d4d7039c8448cc518b4cba42a8815e81aa152.tar.gz
chromium_src-4f2d4d7039c8448cc518b4cba42a8815e81aa152.tar.bz2
Prune courgette from exported tarballs.
BUG=none R=thestig@chromium.org Review URL: https://codereview.chromium.org/15838009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203175 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/export_tarball')
-rwxr-xr-xtools/export_tarball/export_tarball.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/export_tarball/export_tarball.py b/tools/export_tarball/export_tarball.py
index a13a1ca..148162b 100755
--- a/tools/export_tarball/export_tarball.py
+++ b/tools/export_tarball/export_tarball.py
@@ -74,6 +74,10 @@ TESTDIRS = (
'net/data',
)
+PRUNEDDIRS = (
+ 'courgette',
+)
+
def GetSourceDirectory():
return os.path.realpath(
@@ -99,7 +103,7 @@ class MyTarFile(tarfile.TarFile):
# Remove contents of non-essential directories, but preserve gyp files,
# so that build/gyp_chromium can work.
- for nonessential_dir in (NONESSENTIAL_DIRS + TESTDIRS):
+ for nonessential_dir in (NONESSENTIAL_DIRS + TESTDIRS + PRUNEDDIRS):
dir_path = os.path.join(GetSourceDirectory(), nonessential_dir)
if (name.startswith(dir_path) and
os.path.isfile(name) and