Le Mon, Jul 01, 2019 at 03:52:47PM +0200, Alex Riesen a écrit :
> 
> diff --git a/update-mime b/update-mime
> index d27b8a9..55495ee 100755
> --- a/update-mime
> +++ b/update-mime
> @@ -157,7 +157,10 @@ sub ReadDesktopEntries
>                                       $exec .= " %s" if ($exec !~ m/%s/);
>                               }
>                               elsif (m/MimeType=(.*)/i) {
> -                                     push @types, split(/;/, $1);
> +                                     my $err = 0;
> +                                     push @types, grep { if (length>0) {1} 
> else {++$err;0} }
> +                                                  split(/\s*;\s*/, $1);
> +                                     print STDERR "Warning: $file:$.: 
> ignoring empty entries in MimeType\n" if $err;
>                               }
>                       }
>                       if (!defined($exec) || !scalar(@

Thanks a lot.  I suppose you do not mind your name and email appearing
in the commit or in the package's changelog ?  The commit would be as
follows:

commit 21035f879b53416df6c7f74720c6ff4da3e1f94a
Author: Alex Riesen <alexander.rie...@cetitec.com>
Date:   Wed Jul 3 21:54:55 2019 +0900

    update-mime: softly reject empty media types
    
    Closes: #931300
    Signed-off-by: Charles Plessy <ple...@debian.org>

I will only upload the package after the end of the Freeze, hopefully soon :)

Have a nice day,

Charles

-- 
Charles Plessy
Akano, Uruma, Okinawa, Japan

Reply via email to