Dirk Mueller
c71be26260
OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory:rpmlint/rpmlint?expand=0&rev=654
32 lines
1.1 KiB
Diff
32 lines
1.1 KiB
Diff
From c5dd20d7e48f4c441fe1cc3f451b184d6b31c074 Mon Sep 17 00:00:00 2001
|
|
From: Dirk Mueller <dirk@dmllr.de>
|
|
Date: Sat, 2 Feb 2019 09:19:45 +0100
|
|
Subject: [PATCH] ZipCheck: Also ignore RuntimeError
|
|
|
|
When there is a unpack error, we need to catch it. Potential
|
|
reasons are : NotImplementedError (which happens on compression
|
|
type issues) or RuntimeError (e.g for encrypted zip files).
|
|
|
|
This issue is already fixed in master in a non-backportable
|
|
way, so a new fix has been done on stable.
|
|
---
|
|
ZipCheck.py | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/ZipCheck.py b/ZipCheck.py
|
|
index a6f927a..4da6b06 100644
|
|
--- a/ZipCheck.py
|
|
+++ b/ZipCheck.py
|
|
@@ -43,7 +43,7 @@ class ZipCheck(AbstractCheck.AbstractCheck):
|
|
badcrc = z.testzip()
|
|
if badcrc:
|
|
printError(pkg, 'bad-crc-in-zip', badcrc, fname)
|
|
- except zipfile.error:
|
|
+ except (RuntimeError, zipfile.error):
|
|
printWarning(pkg, 'unable-to-read-zip', '%s: %s' %
|
|
(fname, sys.exc_info()[1]))
|
|
else:
|
|
--
|
|
2.20.1
|
|
|