Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#7915 - /etc/mime.types lacks linefeeds
Attached to Project:
Arch Linux
Opened by Antons Šušpans (antox) - Thursday, 30 August 2007, 21:21 GMT
Last edited by Greg (dolby) - Tuesday, 17 June 2008, 10:49 GMT
Opened by Antons Šušpans (antox) - Thursday, 30 August 2007, 21:21 GMT
Last edited by Greg (dolby) - Tuesday, 17 June 2008, 10:49 GMT
|
DetailsDescription:
/etc/mime.types lacks linefeeds, therefore is not usable. Additional info: * package version(s): mime-types 1.0-1 Steps to reproduce: less /etc/mime.types |
This task depends upon
If that doesn't help, run 'find /var/lib/pacman/local/ -name install | xargs grep -l mime.types' and have a closer look at the results.
Nevertheless, the file looks fine here, so maybe the find run from above might still prove useful.
There is a normal "mime.types" file in "mime-types" package. But grepping (that you suggested) discovered, that the file "/etc/mime.types" gets corrupted during the installation of "jre" since "/var/lib/pacman/local/jre-6u2-1/install" has the following:
if [ -f /etc/mime.types ] ; then
mime=$(grep -v 'application/x-java-jnlp-file' /etc/mime.types)
echo $mime>/etc/mime.types
fi
echo 'application/x-java-jnlp-file jnlp' >>/etc/mime.types
I am not an experienced linux user and I don't know whether:
$ a=`echo -e "1\n2"`; echo $a
1 2
is the right behavior.
However, I'd suggest to replace that chunk of code with:
grep -qs 'application/x-java-jnlp-file' /etc/mime.types || echo 'application/x-java-jnlp-file jnlp' >> /etc/mime.types
and also something sensible for post_remove,
BUT is the "/etc/mime.types" file expected to be modified by package installers?