summaryrefslogtreecommitdiff
path: root/Command/Import.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-12-02 15:12:33 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-12-02 15:12:33 -0400
commitb38a482dd99a4f16c9752190e929b7726aba4c83 (patch)
tree5ea3ff8397d4207ce9db5cf5a963957acf747d07 /Command/Import.hs
parent8e7728b312704f6f4cb84d81302c1518f0e85948 (diff)
addurl, importfeed: Changed to honor annex.largefiles settings, when the content of the url is downloaded. (Not when using --fast or --relaxed.)
importfeed just calls addurl functions, so inherits this from it. Note that addurl still generates a temp file, and uses that key to download the file. It just adds it to the work tree at the end when the file is small.
Diffstat (limited to 'Command/Import.hs')
-rw-r--r--Command/Import.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Command/Import.hs b/Command/Import.hs
index 3887ea57b..7e8ce3b7a 100644
--- a/Command/Import.hs
+++ b/Command/Import.hs
@@ -129,7 +129,7 @@ start largematcher mode (srcfile, destfile) =
else moveFile srcfile destfile
ifM (checkFileMatcher largematcher destfile)
( Command.Add.perform destfile
- , Command.Add.performSmall destfile
+ , next $ Command.Add.addSmall destfile
)
notoverwriting why = do
warning $ "not overwriting existing " ++ destfile ++ " " ++ why