[PATCH] Get rid of the now-unused new_firmware variable.

Chris Lumens clumens at redhat.com
Mon Sep 9 20:22:17 UTC 2013


---
 pyanaconda/packaging/__init__.py | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/pyanaconda/packaging/__init__.py b/pyanaconda/packaging/__init__.py
index 155d8dd..48d4cbd 100644
--- a/pyanaconda/packaging/__init__.py
+++ b/pyanaconda/packaging/__init__.py
@@ -540,8 +540,6 @@ class Payload(object):
     def _copyDriverDiskFiles(self):
         import glob
 
-        new_firmware = False
-
         # Multiple driver disks may be loaded, so we need to glob for all
         # the firmware files in the common DD firmware directory
         for f in glob.glob(DD_FIRMWARE+"/*"):
@@ -549,8 +547,6 @@ class Payload(object):
                 shutil.copyfile(f, "%s/lib/firmware/" % ROOT_PATH)
             except IOError as e:
                 log.error("Could not copy firmware file %s: %s", f, e.strerror)
-            else:
-                new_firmware = True
 
         #copy RPMS
         for d in glob.glob(DD_RPMS):
-- 
1.8.1.2



More information about the anaconda-patches mailing list