Update spack setup and spack graph to be consistent with c557e765 and 9347f869. Fixes #2316.

This commit is contained in:
Elizabeth Fischer
2016-11-12 12:02:03 -05:00
parent bece9aca84
commit c4b6ab777f
2 changed files with 4 additions and 2 deletions

View File

@@ -28,6 +28,7 @@
import spack
import spack.cmd
import spack.store
from spack.spec import *
from spack.graph import *
@@ -73,7 +74,7 @@ def graph(parser, args):
if args.specs:
tty.die("Can't specify specs with --installed")
args.dot = True
specs = spack.installed_db.query()
specs = spack.store.db.query()
else:
specs = spack.cmd.parse_specs(

View File

@@ -30,6 +30,7 @@
import llnl.util.tty as tty
import spack
import spack.store
import spack.cmd
import spack.cmd.install as install
import spack.cmd.common.arguments as arguments
@@ -130,7 +131,7 @@ def setup(self, args):
tty.die("spack setup only takes one spec.")
# Take a write lock before checking for existence.
with spack.installed_db.write_transaction():
with spack.store.db.write_transaction():
spec = specs[0]
if not spack.repo.exists(spec.name):
tty.warn("No such package: %s" % spec.name)