From 1ffcc0cced98358c5eeedba49ad64895e00cbf81 Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Sun, 10 Nov 2013 11:35:22 -0500 Subject: [PATCH] urlfetcher: Fix breakage after kernel err report fix --- virtinst/urlfetcher.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/virtinst/urlfetcher.py b/virtinst/urlfetcher.py index f1bdffec8..451c62fcc 100644 --- a/virtinst/urlfetcher.py +++ b/virtinst/urlfetcher.py @@ -506,8 +506,9 @@ class Distro(object): try: initrd = self.fetcher.acquireFile(initrdpath) return kernel, initrd, args - finally: + except: os.unlink(kernel) + raise class GenericDistro(Distro):