update.sh: move quarantine creation into function
commitdc0653ec96b6be9f138f3b7ada6384115a06c692
authorKyle J. McKay <mackyle@gmail.com>
Fri, 18 Sep 2020 04:30:51 +0000 (17 21:30 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Fri, 18 Sep 2020 04:30:51 +0000 (17 21:30 -0700)
tree96c0405ee00f5e34552967883f153b86572e066c
parent835dce64ab8f77f7fda74b294390aa7b67f9d031
update.sh: move quarantine creation into function

Move creation of the quarantine area into its own function.

This makes it possible to selectively use the quarantine feature
depending on the type of the source repository being fetched.

This is necessary because foreign vcs fetches may not easily
support fetching into a quarantine area.  While it's certainly
possible to fetch the git portion of a foreign vcs fetch into
a quarantine area, if the fetch fails the quarantine and the
quarantined objects are discarded, it can be very complicated
to reset the foreign vcs part of the fetch to avoid corruption.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
jobd/update.sh