importfeed: Avoid downloading a redundant item from a feed whose guid has been downloaded before, even when the url has changed.

To support this, always store itemid in metadata; before this was only done
when annex.genmetadata was set.
This commit is contained in:
Joey Hess 2015-03-31 13:29:51 -04:00
parent 86b66758c2
commit 9e25cbde20
6 changed files with 54 additions and 14 deletions

View file

@ -11,6 +11,8 @@ known items, it could instead build a `Map (Either URlString GUID) Key`.
This would at least prevent the duplication, when the feed has guids.
> [[done]] --[[Joey]]
It would be even nicer if the old file could be updated with the new
content. But, since files can be moved around, deleted, tagged, etc,
that only seems practical at all if the file is still in the directory