Merge pull request #504 from rtilder/app-signing-server

Be most explicit about mode when opening files
This commit is contained in:
Andy McKay 2012-11-16 16:31:48 -08:00
Родитель b63dc8ca23 ef4efb924d
Коммит c78b989e69
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -38,7 +38,7 @@ def sign_app(src, dest):
# Extract necessary info from the archive # Extract necessary info from the archive
try: try:
jar = JarExtractor(storage.open(src), storage.open(dest)) jar = JarExtractor(storage.open(src, 'r'), storage.open(dest, 'w'))
except: except:
log.error("Archive extraction failed. Bad archive?", exc_info=True) log.error("Archive extraction failed. Bad archive?", exc_info=True)
raise SigningError("Archive extraction failed. Bad archive?") raise SigningError("Archive extraction failed. Bad archive?")