aboutsummaryrefslogtreecommitdiffstats
path: root/toaster-requirements.txt
diff options
context:
space:
mode:
authorElliot Smith <elliot.smith@intel.com>2015-10-06 20:05:21 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-10-11 05:27:52 +0100
commit0dd0ac25d54c73f13812db04826b57b3d16ea43f (patch)
treeca3fa0e50e6562673e68973a341302cfe1c6895d /toaster-requirements.txt
parent9a825eb928cb35096d2c1563788310fb6a13e93e (diff)
downloadbitbake-0dd0ac25d54c73f13812db04826b57b3d16ea43f.tar.gz
bitbake-0dd0ac25d54c73f13812db04826b57b3d16ea43f.tar.bz2
bitbake-0dd0ac25d54c73f13812db04826b57b3d16ea43f.zip
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. Signed-off-by: Elliot Smith <elliot.smith@intel.com> Signed-off-by: brian avery <avery.brian@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'toaster-requirements.txt')
-rw-r--r--toaster-requirements.txt1
1 files changed, 0 insertions, 1 deletions
diff --git a/toaster-requirements.txt b/toaster-requirements.txt
index c4a22215..1d7d21b3 100644
--- a/toaster-requirements.txt
+++ b/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