[Rpm-metadata] [PATCH 2/2] always attempt to clean up

Mike McLean mikem at redhat.com
Mon Dec 7 21:10:27 UTC 2015


---
 genpkgmetadata.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/genpkgmetadata.py b/genpkgmetadata.py
index 2df4a74..07dbbd4 100755
--- a/genpkgmetadata.py
+++ b/genpkgmetadata.py
@@ -310,9 +310,11 @@ def main(args):
             for name in os.listdir(tmp):
                 os.unlink(os.path.join(tmp, name))
             os.rmdir(tmp)
+        sys.exit(1)
+
+    finally:
         if mdgen:
             mdgen.cleanup()
-        sys.exit(1)
 
 
 if __name__ == "__main__":
-- 
2.4.3



More information about the Rpm-metadata mailing list