aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJani Välimaa <wally@mageia.org>2018-09-22 08:54:14 +0300
committerJani Välimaa <wally@mageia.org>2018-09-22 08:54:14 +0300
commitea9fb161bddb37190617c53c341ea09712dfd27f (patch)
tree2dd5eb683a5b92ee4515eaff29df0d52160b211e
parent0efb98276c3f6aad87fc67c91cecd5f76be13d21 (diff)
downloadspec-helper-ea9fb161bddb37190617c53c341ea09712dfd27f.tar
spec-helper-ea9fb161bddb37190617c53c341ea09712dfd27f.tar.gz
spec-helper-ea9fb161bddb37190617c53c341ea09712dfd27f.tar.bz2
spec-helper-ea9fb161bddb37190617c53c341ea09712dfd27f.tar.xz
spec-helper-ea9fb161bddb37190617c53c341ea09712dfd27f.zip
Check .desktop files only in /usr/share/applications
-rw-r--r--NEWS2
-rwxr-xr-xcheck_desktop_files9
2 files changed, 4 insertions, 7 deletions
diff --git a/NEWS b/NEWS
index 2ff2709..f0f06da 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+ * check .desktop files only in /usr/share/applications
+
2018-08-26 Jani Välimaa <wally@mageia.org> 0.31.20
* clean_perl: clean perl stuff only from $RPM_BUILD_ROOT
diff --git a/check_desktop_files b/check_desktop_files
index b9e479a..e640e11 100755
--- a/check_desktop_files
+++ b/check_desktop_files
@@ -23,13 +23,8 @@ sub main
{
wanted =>
sub {
- # xsession files are not *really* desktop files
- # https://bugs.freedesktop.org/show_bug.cgi?id=85938
- # nor are khelpcenter or mga/dm files
- return if $File::Find::dir eq $buildroot . '/usr/share/xsessions' ||
- $File::Find::dir eq $buildroot . '/usr/share/wayland-sessions' ||
- $File::Find::dir eq $buildroot . '/usr/share/khelpcenter/plugins' ||
- $File::Find::dir eq $buildroot . '/usr/share/mga/dm';
+ # check files only in /usr/share/applications
+ return unless $File::Find::dir eq $buildroot . '/usr/share/applications';
my $fn = $File::Find::name;
if ($fn =~ $FILTER)