From ce9011a9dea4d4f8040170c28031cfbcadfbfd81 Mon Sep 17 00:00:00 2001 From: Elliot Smith Date: Tue, 6 Oct 2015 20:05:21 -0700 Subject: bitbake: toaster: Use Python's mimetypes module filemagic is used to guess the mimetype of files when a user requests a download. However, this adds a dependency on an external library. Python does have a mimetypes module, though this guesses the mimetype rather than doing anything clever with the actual file content. But for our purposes, it's more than adequate. (NB Django also uses this module when serving static files.) Use this instead of relying on any external code, and remove the filemagic dependency. (Bitbake rev: 0dd0ac25d54c73f13812db04826b57b3d16ea43f) Signed-off-by: Elliot Smith Signed-off-by: brian avery Signed-off-by: Richard Purdie --- bitbake/toaster-requirements.txt | 1 - 1 file changed, 1 deletion(-) (limited to 'bitbake/toaster-requirements.txt') diff --git a/bitbake/toaster-requirements.txt b/bitbake/toaster-requirements.txt index c4a2221553..1d7d21b331 100644 --- a/bitbake/toaster-requirements.txt +++ b/bitbake/toaster-requirements.txt @@ -2,5 +2,4 @@ Django==1.6 South==0.8.4 argparse==1.2.1 wsgiref==0.1.2 -filemagic==1.6 beautifulsoup4>=4.4.0 -- cgit v1.2.3-54-g00ecf