{"action":"opened","issue":{"url":"https://api.github.com/repos/OCA/OpenUpgrade/issues/422","labels_url":"https://api.github.com/repos/OCA/OpenUpgrade/issues/422/labels{/name}","comments_url":"https://api.github.com/repos/OCA/OpenUpgrade/issues/422/comments","events_url":"https://api.github.com/repos/OCA/OpenUpgrade/issues/422/events","html_url":"https://github.com/OCA/OpenUpgrade/issues/422","id":123095817,"number":422,"title":"addons/document/content_index.py should use python-magic instead of non-portable file -b --mime","user":{"login":"risto3","id":1100807,"avatar_url":"https://avatars.githubusercontent.com/u/1100807?v=3","gravatar_id":"","url":"https://api.github.com/users/risto3","html_url":"https://github.com/risto3","followers_url":"https://api.github.com/users/risto3/followers","following_url":"https://api.github.com/users/risto3/following{/other_user}","gists_url":"https://api.github.com/users/risto3/gists{/gist_id}","starred_url":"https://api.github.com/users/risto3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/risto3/subscriptions","organizations_url":"https://api.github.com/users/risto3/orgs","repos_url":"https://api.github.com/users/risto3/repos","events_url":"https://api.github.com/users/risto3/events{/privacy}","received_events_url":"https://api.github.com/users/risto3/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-19T16:21:35Z","updated_at":"2015-12-19T16:21:35Z","closed_at":null,"body":"Had a ton of the following sort of messages running on SunOS:\r\n    file: illegal option -- mime \r\n    usage: file [-bdh] [-M mfile] [-m mfile] [-f ffile] file ...\r\n       file [-bdh] [-M mfile] [-m mfile] -f ffile\r\n       file -i [-bh] [-f ffile] file ...\r\n       file -i [-bh] -f ffile\r\n       file -c [-d] [-M mfile] [-m mfile]\r\n\r\nSeems more appropriate to use python-magic instead of Popen 'file' to get the mime-type."}}