[Git][reproducible-builds/diffoscope][master] Handling ENOSPC for .zip/.aia or similar files

Vibhu Agrawal gitlab at salsa.debian.org
Sun Mar 31 15:05:24 CEST 2019



Vibhu Agrawal pushed to branch master at Reproducible Builds / diffoscope


Commits:
afca0488 by Vibhu at 2019-03-31T12:57:30Z
Handling ENOSPC for .zip/.aia or similar files

diffoscope/comparators/zip.py: added another except block to handle
OSError.
Fixes https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874582

- - - - -


1 changed file:

- diffoscope/comparators/zip.py


Changes:

=====================================
diffoscope/comparators/zip.py
=====================================
@@ -152,6 +152,14 @@ class ZipContainer(Archive):
                 raise ContainerExtractionError(member_name, exc)
             raise
 
+        except OSError as ose:
+            if (ose.errno == 28):
+                sys.tracebacklimit = 0
+                raise ose
+
+            else:
+                raise 
+
     def get_member(self, member_name):
         zipinfo = self.archive.getinfo(member_name)
         if zipinfo.filename[-1] == '/':



View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/commit/afca04881165158435d2ba9ed9ba69074f49a072

-- 
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/commit/afca04881165158435d2ba9ed9ba69074f49a072
You're receiving this email because of your account on salsa.debian.org.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20190331/35d0eda5/attachment.html>


More information about the rb-commits mailing list