2014-05-08 10:55:44 +02:00
|
|
|
Index: rpmlint-1.5/MenuXDGCheck.py
|
|
|
|
===================================================================
|
|
|
|
--- rpmlint-1.5.orig/MenuXDGCheck.py
|
|
|
|
+++ rpmlint-1.5/MenuXDGCheck.py
|
|
|
|
@@ -43,13 +43,16 @@ class MenuXDGCheck(AbstractCheck.Abstrac
|
2013-08-06 11:21:50 +02:00
|
|
|
printError(pkg, 'non-utf8-desktopfile', filename)
|
|
|
|
|
|
|
|
self.cfp.read(f)
|
|
|
|
- binary = self.cfp.get('Desktop Entry','Exec').split(' ',1)[0]
|
|
|
|
+ binary = None
|
|
|
|
found = False
|
|
|
|
- for i in STANDARD_BIN_DIRS:
|
|
|
|
- if os.path.exists(root + i + binary):
|
|
|
|
- # no need to check if the binary is +x, rpmlint does it
|
|
|
|
- # in another place
|
|
|
|
- found = True
|
|
|
|
+ if self.cfp.has_option('Desktop Entry','Exec'):
|
|
|
|
+ binary = self.cfp.get('Desktop Entry','Exec').split(' ',1)[0]
|
|
|
|
+
|
|
|
|
+ for i in STANDARD_BIN_DIRS:
|
|
|
|
+ if os.path.exists(root + i + binary):
|
|
|
|
+ # no need to check if the binary is +x, rpmlint does it
|
|
|
|
+ # in another place
|
|
|
|
+ found = True
|
|
|
|
if not found and binary:
|
|
|
|
printWarning(pkg, 'desktopfile-without-binary', filename, binary)
|
|
|
|
|