diff --git a/lib/crypto/packaged.py b/lib/crypto/packaged.py index 07bfe7710a..e745a598fe 100644 --- a/lib/crypto/packaged.py +++ b/lib/crypto/packaged.py @@ -38,7 +38,7 @@ def sign_app(src, dest): # Extract necessary info from the archive try: - jar = JarExtractor(storage.open(src), storage.open(dest)) + jar = JarExtractor(storage.open(src, 'r'), storage.open(dest, 'w')) except: log.error("Archive extraction failed. Bad archive?", exc_info=True) raise SigningError("Archive extraction failed. Bad archive?")