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: http://src.chromium.org/svn/trunk/src/build@113653 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This commit is contained in:
maruel@chromium.org 2011-12-08 20:47:15 +00:00
Родитель e669a5e1af
Коммит 16ff10324f
1 изменённых файлов: 7 добавлений и 1 удалений

Просмотреть файл

@ -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