summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGregory L. Lee <lee218@llnl.gov>2014-03-17 15:55:15 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2014-04-14 15:22:03 -0700
commit2aa859e0cf8348eb6602ae2a267852596b194d61 (patch)
treedf88f7d978949156bb14d42b5562f67405b0dfd4 /lib
parentd224718d96e8cdfdea67a08430e22ca73bd043c4 (diff)
downloadspack-2aa859e0cf8348eb6602ae2a267852596b194d61.tar.gz
spack-2aa859e0cf8348eb6602ae2a267852596b194d61.tar.bz2
spack-2aa859e0cf8348eb6602ae2a267852596b194d61.tar.xz
spack-2aa859e0cf8348eb6602ae2a267852596b194d61.zip
fixed installed dependents and uninstall error message
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/package.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/spack/spack/package.py b/lib/spack/spack/package.py
index b3f2b1857d..f949f2ef57 100644
--- a/lib/spack/spack/package.py
+++ b/lib/spack/spack/package.py
@@ -543,9 +543,7 @@ class Package(object):
dependents = []
for spec in spack.db.installed_package_specs():
if self.name in spec.dependencies:
- dep_spec = spec.dependencies[self.name]
- if self.spec == dep_spec:
- dependents.append(dep_spec)
+ dependents.append(spec)
return dependents
@@ -772,8 +770,8 @@ class Package(object):
if not self.ignore_dependencies:
deps = self.installed_dependents
if deps: tty.die(
- "Cannot uninstall %s. The following installed packages depend on it:"
- % self.name, " ".join(deps))
+ "Cannot uninstall %s. The following installed packages depend on it: %s"
+ % (self.name, deps))
self.remove_prefix()
tty.msg("Successfully uninstalled %s." % self.name)