Skip to content

Commit

Permalink
Don't overwrite an existing control app in the metadata directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Dec 10, 2011
1 parent ee4f232 commit 789e3d7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions scripts/mojosetup_mainline.lua
Expand Up @@ -956,9 +956,12 @@ local function install_control_app(desc, key)
end
end

local perms = "0755" -- !!! FIXME
install_parent_dirs(dst, key)
install_file_from_filesystem(dst, src, perms, desc, key, maxbytes)
-- don't overwrite preexisting stuff.
if not MojoSetup.platform.exists(dst) then
local perms = "0755" -- !!! FIXME
install_parent_dirs(dst, key)
install_file_from_filesystem(dst, src, perms, desc, key, maxbytes)
end

-- Okay, now we need all the support files.
if not MojoSetup.archive.enumerate(base) then
Expand Down

0 comments on commit 789e3d7

Please sign in to comment.