forked from pool/rpmlint
eaf5a8d432
Copy from Base:System/rpmlint based on submit request 20532 from user dirkmueller OBS-URL: https://build.opensuse.org/request/show/20532 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rpmlint?expand=0&rev=46
15 lines
689 B
Diff
15 lines
689 B
Diff
Index: MenuXDGCheck.py
|
|
===================================================================
|
|
--- MenuXDGCheck.py.orig
|
|
+++ MenuXDGCheck.py
|
|
@@ -17,7 +17,8 @@ class MenuXDGCheck(AbstractCheck.Abstrac
|
|
# desktop file need to be in $XDG_DATA_DIRS
|
|
# $ echo $XDG_DATA_DIRS/applications
|
|
# /var/lib/menu-xdg:/usr/share
|
|
- AbstractCheck.AbstractFilesCheck.__init__(self, "MenuXDGCheck", "/usr/share/applications/.*\.desktop$")
|
|
+ AbstractCheck.AbstractFilesCheck.__init__(self, "MenuXDGCheck",
|
|
+ "(?:/usr/share|/etc/opt/.*/share|/opt/.*)/applications/.*\.desktop$")
|
|
|
|
def check_file(self, pkg, filename):
|
|
f = pkg.dirName() + filename
|