diy : removed global write lock on the db

This commit is contained in:
alalazo 2016-05-09 13:55:26 +02:00 committed by Todd Gamblin
parent 74fb1029fa
commit a3fc492d45

View File

@ -65,8 +65,6 @@ def diy(self, args):
if len(specs) > 1:
tty.die("spack diy only takes one spec.")
# Take a write lock before checking for existence.
with spack.installed_db.write_transaction():
spec = specs[0]
if not spack.repo.exists(spec.name):
tty.warn("No such package: %s" % spec.name)
@ -89,8 +87,7 @@ def diy(self, args):
if package.installed:
tty.error("Already installed in %s" % package.prefix)
tty.msg("Uninstall or try adding a version suffix for this "
"DIY build.")
tty.msg("Uninstall or try adding a version suffix for this DIY build.")
sys.exit(1)
# Forces the build to run out of the current directory.