addurl: Fix bug in checking annex.largefiles expressions using largerthan, mimetype, and smallerthan; the first two always failed to match, and the latter always matched.

This commit is contained in:
Joey Hess 2016-11-21 11:30:53 -04:00
parent 3c1c3b96fa
commit 6e6d1a8c15
No known key found for this signature in database
GPG key ID: C910D9222512E3C7
4 changed files with 30 additions and 2 deletions

View file

@ -341,7 +341,7 @@ cleanup u url file key mtmp = case mtmp of
Nothing -> go
Just tmp -> do
largematcher <- largeFilesMatcher
ifM (checkFileMatcher largematcher file)
ifM (checkFileMatcher largematcher tmp)
( go
, do
liftIO $ renameFile tmp file