Le Sun, Jun 19, 2005 at 05:53:17PM +0200, Robert Luberda a écrit :
> 
> update-mime should warn users when a package as read from
> /etc/mailcap.order does not match any package which register mime
> entries.

Le Wed, Sep 21, 2011 at 03:23:25PM +0200, Drew Parsons a écrit :
> I'd like to add "yes please" to this Request For Enhancement.
> 
> For instance, dvi files can be handled by xdvi which is found in
> texlive-binaries.  But the mime definition for xdvi comes from
> texlive-base not texlive-binaries.  The feature requested in this bug
> would help catch this kind of discrepancy.

Dear Robert and Drew,

this could be done with the following patch.

--- a/update-mime
+++ b/update-mime
@@ -189,6 +189,11 @@ sub ReadOrder
                                s/\s*\#.*$//;
                                next if m/^\s*$/;
                                push @order,$_;
+                               /(.*):/;
+                               my $pkg = $1;
+                               unless( grep {/^$pkg$/} keys(%packages)) {
+                                       print STDERR "Warning: package $pkg 
listed in /etc/mailcap.order does not have mailcap entries.\n";
+                               }
                        }
                        close(FILE);
                } else {

However, I am unsure if it would be a good idea to apply it, because I wonder
if there are systems where on purpose there are mailcap.order entries for
packages that are not installed.  In that case, update-mime would become
verbose, and it is run each time mailcap and Desktop files are modified…

What do you think about this ?

-- 
Charles Plessy
Tsurumi, Kanagawa, Japan


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to