misctmp cleanup
* Switch to using .git/annex/othertmp for tmp files other than partial downloads, and make stale files left in that directory when git-annex is interrupted be cleaned up promptly by subsequent git-annex processes. * The .git/annex/misctmp directory is no longer used and git-annex will delete anything lingering in there after it's 1 week old. Also, in Annex.Ingest, made the filename it uses in the tmp dir be prefixed with "ingest-" to avoid potentially using a filename used by some other code.
This commit is contained in:
parent
6de8ce8bb1
commit
d5f2463702
22 changed files with 222 additions and 156 deletions
2
Test.hs
2
Test.hs
|
@ -1621,7 +1621,7 @@ test_crypto = do
|
|||
gpgcmd = Utility.Gpg.mkGpgCmd Nothing
|
||||
testscheme scheme = intmpclonerepo $ whenM (Utility.Path.inPath (Utility.Gpg.unGpgCmd gpgcmd)) $ do
|
||||
gpgtmpdir <- annexeval $ (</> "gpgtest")
|
||||
<$> Annex.fromRepo Annex.Locations.gitAnnexTmpMiscDir
|
||||
<$> Annex.fromRepo Annex.Locations.gitAnnexTmpOtherDir
|
||||
annexeval $ Annex.Perms.createAnnexDirectory gpgtmpdir
|
||||
Utility.Gpg.testTestHarness gpgtmpdir gpgcmd
|
||||
@? "test harness self-test failed"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue