summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Command/ImportFeed.hs4
-rw-r--r--debian/changelog1
2 files changed, 3 insertions, 2 deletions
diff --git a/Command/ImportFeed.hs b/Command/ImportFeed.hs
index b60627cfe..ed3c3bcd3 100644
--- a/Command/ImportFeed.hs
+++ b/Command/ImportFeed.hs
@@ -150,9 +150,9 @@ downloadFeed url = do
showOutput
uo <- Url.getUrlOptions
liftIO $ withTmpFile "feed" $ \f h -> do
- fileEncoding h
+ hClose h
ifM (Url.download url f uo)
- ( parseFeedString <$> hGetContentsStrict h
+ ( parseFeedString <$> readFileStrictAnyEncoding f
, return Nothing
)
diff --git a/debian/changelog b/debian/changelog
index 9ef48e01f..3c4f0d1bb 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -12,6 +12,7 @@ git-annex (5.20150406.2) UNRELEASED; urgency=medium
commit.
* info: Display repository mode: bare when in a bare (non-direct mode)
repo.
+ * importfeed: Fix feed download when curl is used.
-- Joey Hess <id@joeyh.name> Mon, 06 Apr 2015 20:14:20 -0400