[diffoscope] 01/03: early exit close_archive in fsimage if no guestfs is available

Jérémy Bobbio lunar at moszumanska.debian.org
Sat Dec 12 19:25:18 CET 2015


This is an automated email from the git hooks/post-receive script.

lunar pushed a commit to branch master
in repository diffoscope.

commit e666c8bc1db43063085034bd12d2c97b23be5f8b
Author: anthraxx <levente at leventepolyak.net>
Date:   Sun Dec 6 21:14:43 2015 +0100

    early exit close_archive in fsimage if no guestfs is available
---
 diffoscope/comparators/fsimage.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/diffoscope/comparators/fsimage.py b/diffoscope/comparators/fsimage.py
index 35980ee..3dfeffa 100644
--- a/diffoscope/comparators/fsimage.py
+++ b/diffoscope/comparators/fsimage.py
@@ -47,6 +47,8 @@ class FsImageContainer(Archive):
         return self
 
     def close_archive(self):
+        if not guestfs:
+            return None
         self.g.umount_all()
         self.g.close()
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git


More information about the diffoscope mailing list