From 8d3aa2d46ebab7a59e57234f0b3f6fc3225a13e8 Mon Sep 17 00:00:00 2001 From: Elliot Smith Date: Fri, 11 Sep 2015 13:57:30 -0700 Subject: toaster: Don't def a function for each call to build_artifact() Cache the mimetype object and only define the function for getting a mimetype once. Also ensure that filemagic is listed as a requirement of toaster. Doing this also means we can remove the code which tries multiple different "magic" libraries, as we know we have the right version available. Signed-off-by: Elliot Smith Signed-off-by: brian avery Signed-off-by: Richard Purdie --- toaster-requirements.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'toaster-requirements.txt') diff --git a/toaster-requirements.txt b/toaster-requirements.txt index 19b529372..1d92d5e3a 100644 --- a/toaster-requirements.txt +++ b/toaster-requirements.txt @@ -2,3 +2,4 @@ Django==1.6 South==0.8.4 argparse==1.2.1 wsgiref==0.1.2 +filemagic==1.6 -- cgit 1.2.3-korg