Browse Source

Soften the desktop-file-utils message.

Some .desktop files don't have a MimeType= property and thus do not
require desktop-file-utils.  Since we're just looking at the port bits,
we can't know for certain if this error is valid.

PR:	271623
Joe Clarke 5 months ago
parent
commit
61c1025894
1 changed files with 3 additions and 2 deletions
  1. 3 2
      portlint.pl

+ 3 - 2
portlint.pl

@@ -810,8 +810,9 @@ sub checkplist {
 		}
 
 		if ($_ =~ m|\.desktop$| && $makevar{USES} !~ /\bdesktop-file-utils\b/) {
-			&perror("FATAL", $file, $., "this port installs .desktop files. ".
-				"Please add `desktop-file-utils` to USES.");
+			&perror("WARN", $file, $., "this port installs .desktop files. ".
+				"If the .desktop file(s) installed contain ``MimeType='', ".
+				"you must add `desktop-file-utils` to USES.");
 		}
 
 		if ($_ =~ m|^(%%([^%]+)%%)?.*\.mo$| && $makevar{USES} !~ /\bgettext\b/) {