Skip to content
Snippets Groups Projects
Commit 8859a09c authored by Tom Scogland's avatar Tom Scogland
Browse files

handle explicit when requesting to install already installed packages

parent 4acdfeae
Branches
Tags
No related merge requests found
......@@ -888,6 +888,11 @@ def do_install(self,
# Ensure package is not already installed
if spack.install_layout.check_installed(self.spec):
tty.msg("%s is already installed in %s" % (self.name, self.prefix))
rec = spack.installed_db.get_record(self.spec)
if (not rec.explicit) and explicit:
with spack.installed_db.write_transaction():
rec = spack.installed_db.get_record(self.spec)
rec.explicit = True
return
tty.msg("Installing %s" % self.name)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment