fix importfeed --force skip behavior reversion

importfeed --force: Don't treat it as a failure when an already downloaded
file exists. (Fixes a behavior change introduced in 10.20230626.)

04ee6c4c6b caused the reversion. Inside a CommandPerform, stop causes it
to fail. Before that commit, it was inside a CommandStart, where stop
causes it to skip.
This commit is contained in:
Joey Hess 2024-02-02 15:57:07 -04:00
parent 0c64cd30c2
commit 2f3fe4d904
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
2 changed files with 4 additions and 1 deletions

View file

@ -2,6 +2,9 @@ git-annex (10.20240130) UNRELEASED; urgency=medium
* importfeed: Added --scrape option, which uses yt-dlp to screen scrape
the equivilant of an RSS feed.
* importfeed --force: Don't treat it as a failure when an already
downloaded file exists. (Fixes a behavior change introduced in
10.20230626.)
* importfeed --force: Avoid creating duplicates of existing
already downloaded files when yt-dlp or a special remote was used.

View file

@ -412,7 +412,7 @@ runDownload todownload url extension cache cv getter = do
case dest of
Nothing -> do
recordsuccess
stop
next $ return True
Just f -> getter (toRawFilePath f) >>= \case
Just ks
-- Download problem.