You are not logged in.

#1 2014-06-02 18:46:02

89c51
Member
Registered: 2012-06-05
Posts: 709

Mirrorlist file type.

Kind of a weird and non important question but here goes.


Why the mirrorlist file is of type text/x-matlab????

Offline

#2 2014-06-02 20:43:17

clfarron4
Member
From: London, UK
Registered: 2013-06-28
Posts: 2,162
Website

Re: Mirrorlist file type.

I'm not getting this when I open up the Properties from right-click in Cinnamon or MATE.


Claire is fine.
Problems? I have dysgraphia, so clear and concise please.
My public GPG key for package signing
My x86_64 package repository

Offline

#3 2014-06-02 20:57:45

Trilby
Forum Fellow
From: Earth, unfortunately
Registered: 2011-11-29
Posts: 18,266

Re: Mirrorlist file type.

$ file /etc/pacman.d/mirrorlist 
/etc/pacman.d/mirrorlist: ASCII text
$ file --mime-type /etc/pacman.d/mirrorlist 
/etc/pacman.d/mirrorlist: text/plain

But I don't use the default.  Where do you get the data that it is that type?

EDIT: I just re-extracted the default mirrorlist from the pacman-mirrorlist package, and I get the same results as I just posted for my generated one.

Of course I also don't have matlab installed, so maybe matlab registers something as it's 'type'.

Last edited by Trilby (2014-06-02 21:01:41)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Online

#4 2014-06-02 21:22:20

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 4,489
Website

Re: Mirrorlist file type.

When I look at "properties" via thunar it shows as "Kind: MATLAB script/function"... hmm
EDIT:

empty@Arch ~ % pacman -Q matlab
error: package 'matlab' was not found
1 empty@Arch ~ % pacman -Ss matlab                                                                                                                          :(
community/sage-mathematics 6.2-2
    Open Source Mathematics Software, free alternative to Magma, Maple, Mathematica, and Matlab

Last edited by Head_on_a_Stick (2014-06-02 21:26:24)

Offline

#5 2014-06-03 06:13:08

x33a
Forum Moderator
Registered: 2009-08-15
Posts: 4,342
Website

Re: Mirrorlist file type.

@ 89c51, I assume that you are using

mimetype

, part of the perl-file-mimeinfo package.

I can confirm that it shows a similar output in my case. But

file

shows it as "ASCII text".

Offline

#6 2014-06-03 12:44:20

89c51
Member
Registered: 2012-06-05
Posts: 709

Re: Mirrorlist file type.

I get this when from Right Click>File Properties in Enlightenment File manager. In the file type field. It uses mimetype probably.

It was just weird. I have nothing matlab related on the computer.

I was expecting it to be text/plain or something.

Offline

#7 2014-06-04 10:29:14

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 5,753

Re: Mirrorlist file type.

$ mimetype -a /etxc/pacman.d/mirrorlist
mirrorlist: text/x-matlab
mirrorlist: text/plain
$
$ mimetype -D /etc/pacman.d/mirrorlist
> Data dirs are: /home/panoramix/.local/share, /usr/local/share, /usr/share
> Checking inode type
> Checking globs for basename 'mirrorlist'
> Value "##" at offset 2 matches at /usr/share/mime/magic line 1449
/etc/pacman.d/mirrorlist: text/x-matlab
$

Looks like the starting ## causes this.


Booting with apg Openrc, NOT systemd.
Automounting : not needed, i prefer pmount
Aur helpers : makepkg + my own local repo === rarely need them

Offline

#8 2014-06-04 12:30:15

x33a
Forum Moderator
Registered: 2009-08-15
Posts: 4,342
Website

Re: Mirrorlist file type.

Lone_Wolf wrote:

Looks like the starting ## causes this.

Wow, thanks. I didn't know about the -D flag.

Indeed, it's the double hash sign which causes mime and probably the other GUI filemanagers as well, to recognise the file as

text/x-matlab

If I change the double hash to a single hash, I get

$ mimetype /etc/pacman.d/mirrorlist
/etc/pacman.d/mirrorlist: text/plain

Offline

Board footer

Powered by FluxBB