summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorElizabeth Fischer <rpf2116@columbia.edu>2016-12-13 13:48:40 -0500
committerbecker33 <becker33@llnl.gov>2016-12-13 10:48:40 -0800
commit4f9e548bf6e972ae75af2ff7ecb368f05db9baf0 (patch)
treefefccb201a834f02f89308ec9349735ca3637b1e /lib
parentd855403546861af6688c5c4185b6032249b800d9 (diff)
downloadspack-4f9e548bf6e972ae75af2ff7ecb368f05db9baf0.tar.gz
spack-4f9e548bf6e972ae75af2ff7ecb368f05db9baf0.tar.bz2
spack-4f9e548bf6e972ae75af2ff7ecb368f05db9baf0.tar.xz
spack-4f9e548bf6e972ae75af2ff7ecb368f05db9baf0.zip
Update `spack setup` and `spack graph` to be consistent with recent refactoring (#2317)
* Update `spack setup` and `spack graph` to be consistent with c557e765 and 9347f869. Fixes #2316. * Added another "fix" necessary to make `spack setup` work. * Added another "fix" necessary to make `spack setup` work. (reverted from commit 7f0d3ecb38c97ec00491d7cd66b4266e3018b1ca)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/cmd/graph.py3
-rw-r--r--lib/spack/spack/cmd/setup.py3
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/spack/spack/cmd/graph.py b/lib/spack/spack/cmd/graph.py
index ed3aed1946..f9011caef4 100644
--- a/lib/spack/spack/cmd/graph.py
+++ b/lib/spack/spack/cmd/graph.py
@@ -28,6 +28,7 @@ import llnl.util.tty as tty
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(
diff --git a/lib/spack/spack/cmd/setup.py b/lib/spack/spack/cmd/setup.py
index 953906975e..82c5e4cb4e 100644
--- a/lib/spack/spack/cmd/setup.py
+++ b/lib/spack/spack/cmd/setup.py
@@ -30,6 +30,7 @@ import sys
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)