summaryrefslogtreecommitdiffstats
path: root/build/extract_from_cab.py
diff options
context:
space:
mode:
authormaruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-08 20:47:15 +0000
committermaruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-08 20:47:15 +0000
commit72ec3088f6eafd20dce15d742dc9d93b4087cc50 (patch)
tree91e294a22bf0819884b5b4306707d28ef4aff354 /build/extract_from_cab.py
parent0d76dd0b814dd32387f1f929f4fd0d978238aa9e (diff)
downloadchromium_src-72ec3088f6eafd20dce15d742dc9d93b4087cc50.zip
chromium_src-72ec3088f6eafd20dce15d742dc9d93b4087cc50.tar.gz
chromium_src-72ec3088f6eafd20dce15d742dc9d93b4087cc50.tar.bz2
Add automatic retry of cab extraction.
It fails occasionally with: One or more files could not be expanded. Delta Package Expander Returned 0x80070002 Expanding File ..\third_party\directxsdk\files\redist\jun2010_d3dx9_43_x86.cab Incomplete, Error Code=0x80070002 Error Description: The system cannot find the file specified. NOTRY=true TBR=sky@chromium.org BUG= TEST= Review URL: http://codereview.chromium.org/8883029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113653 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/extract_from_cab.py')
-rwxr-xr-xbuild/extract_from_cab.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/build/extract_from_cab.py b/build/extract_from_cab.py
index 9320462..2321d2f 100755
--- a/build/extract_from_cab.py
+++ b/build/extract_from_cab.py
@@ -21,7 +21,13 @@ def main():
level = subprocess.call(
['expand', cab_path, '-F:' + archived_file, output_dir])
if level != 0:
- return level
+ print 'Cab extraction(%s, %s, %s) failed.' % (
+ cab_path, archived_file, output_dir)
+ print 'Trying a second time.'
+ level = subprocess.call(
+ ['expand', cab_path, '-F:' + archived_file, output_dir])
+ if level != 0:
+ return level
# The expand utility preserves the modification date and time of the archived
# file. Touch the extracted file. This helps build systems that compare the