Fix undefined name 'output_mode'.
authorZac Medico <zmedico@gentoo.org>
Mon, 4 Oct 2010 20:28:47 +0000 (13:28 -0700)
committerZac Medico <zmedico@gentoo.org>
Mon, 4 Oct 2010 20:28:47 +0000 (13:28 -0700)
bin/egencache

index bf4b6d567444be54a6698a171a76a4d87036de2c..783cfc428ab750ff31d3cfe59c4f82d8b1c1affb 100755 (executable)
@@ -365,7 +365,7 @@ class GenUseLocalDesc(object):
                                                errors='replace')
                        except IOError as e:
                                writemsg_level(
-                                       "ERROR: failed to open output file %s: %s\n" % (output_mode,e,),
+                                       "ERROR: failed to open output file %s: %s\n" % (desc_path,e,),
                                        level=logging.ERROR, noiselevel=-1)
                                self.returncode |= 2
                                return