--- euca2ools-1.3.1/euca2ools/euca2ools/__init__.py.smallbundle 2011-04-26 14:20:23.563605281 -0700
+++ euca2ools-1.3.1/euca2ools/euca2ools/__init__.py 2011-04-26 14:23:58.721153869 -0700
@@ -779,6 +779,14 @@ class Euca2ool:
zipproc.stdin.close();
targzfile.close()
+
+ tarproc.wait()
+ zipproc.wait()
+ for p, pname in [(tarproc, 'tar'), (zipproc, 'gzip')]:
+ if p.returncode != 0:
+ print "'%s' returned error (%i)" % (pname, p.returncode)
+ raise CommandFailed
+
if os.path.getsize(targz) <= 0:
print 'Could not tar/compress image'
raise CommandFailed