Skip to content

Commit

Permalink
Try to delete the metadatadir with the rest of the scratchdir cleanup,
Browse files Browse the repository at this point in the history
 ignoring if it fails to remove it since it might still be in use.

Fixes empty metadata dir sticking around in installs where we don't want it,
 if there was a rollback or download written out during the installation.
  • Loading branch information
icculus committed Feb 20, 2008
1 parent 4789545 commit f15e835
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/mojosetup_mainline.lua
Expand Up @@ -191,7 +191,8 @@ end
local function delete_scratchdirs()
do_delete(MojoSetup.downloaddir)
do_delete(MojoSetup.rollbackdir)
do_delete(MojoSetup.scratchdir) -- must be last!
do_delete(MojoSetup.scratchdir) -- must be after dirs it contains!
do_delete(MojoSetup.metadatadir) -- must be last! (and is okay to fail.)
end


Expand Down

0 comments on commit f15e835

Please sign in to comment.