summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2017-08-26 18:09:01 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2017-09-30 02:06:59 -0700
commit29ce69f3edef0482d850118cbaf1b368034495d6 (patch)
treecec7df31d134b904132361a979a82731eb8853de /lib
parent9e7faff6c979a89d4549238e66c25bb59d04db2a (diff)
downloadspack-29ce69f3edef0482d850118cbaf1b368034495d6.tar.gz
spack-29ce69f3edef0482d850118cbaf1b368034495d6.tar.bz2
spack-29ce69f3edef0482d850118cbaf1b368034495d6.tar.xz
spack-29ce69f3edef0482d850118cbaf1b368034495d6.zip
Only print "no patches needed" if there were no patches.
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/package.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/spack/spack/package.py b/lib/spack/spack/package.py
index b70113e9f5..3bfee0a0b6 100644
--- a/lib/spack/spack/package.py
+++ b/lib/spack/spack/package.py
@@ -1044,7 +1044,11 @@ class PackageBase(with_metaclass(PackageMeta, object)):
except spack.multimethod.NoSuchMethodError:
# We are running a multimethod without a default case.
# If there's no default it means we don't need to patch.
- tty.msg("No patches needed for %s" % self.name)
+ if not patched:
+ # if we didn't apply a patch, AND the patch function
+ # didn't apply, say no patches are needed.
+ # Otherwise, we already said we applied each patch.
+ tty.msg("No patches needed for %s" % self.name)
except:
tty.msg("patch() function failed for %s" % self.name)
touch(bad_file)