fix addurl concurrency issue
authorJoey Hess <joeyh@joeyh.name>
Wed, 27 Oct 2021 20:15:41 +0000 (16:15 -0400)
committerJoey Hess <joeyh@joeyh.name>
Wed, 27 Oct 2021 20:15:41 +0000 (16:15 -0400)
commiteb95ed4863015dc991de946b403c450e482637d7
tree7c607a30dadd23e1c7770813f3fb3eac3d99c1ee
parenta3cdff3fd52de12d0dda9004ea1212001a03d45c
fix addurl concurrency issue

addurl: Support adding the same url to multiple files at the same time when
using -J with --batch --with-files.

Implementation was easier than expected, was able to reuse OnlyActionOn.

While it will download the url's content multiple times, that seems like
the best thing to do; see my comment for why.

Sponsored-by: Dartmouth College's DANDI project
CHANGELOG
Command/AddUrl.hs
doc/bugs/addurl_failure_has_empty_error-messages.mdwn
doc/bugs/addurl_failure_has_empty_error-messages/comment_4_74e37e96d01bfb8b9521000d5faa7e53._comment
doc/bugs/addurl_failure_has_empty_error-messages/comment_5_1b87390e69204b42878930cc1614437e._comment [new file with mode: 0644]