rpmlint/rpmlint-1.5-fix-unbound-var.patch
2013-11-11 10:41:51 -05:00

12 lines
540 B
Diff

diff -up rpmlint-1.5/MenuXDGCheck.py.fixunbound rpmlint-1.5/MenuXDGCheck.py
--- rpmlint-1.5/MenuXDGCheck.py.fixunbound 2013-11-11 10:31:28.023362241 -0500
+++ rpmlint-1.5/MenuXDGCheck.py 2013-11-11 10:32:00.253303519 -0500
@@ -42,6 +42,7 @@ class MenuXDGCheck(AbstractCheck.Abstrac
self.cfp.read(f)
binary = self.cfp.get('Desktop Entry','Exec').split(' ',1)[0]
if binary:
+ found = False
if binary.startswith('/'):
found = os.path.exists(root + binary)
else: