summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/package.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/spack/spack/package.py b/lib/spack/spack/package.py
index edd00caae6..532a9ff318 100644
--- a/lib/spack/spack/package.py
+++ b/lib/spack/spack/package.py
@@ -1474,7 +1474,8 @@ class PackageBase(six.with_metaclass(PackageMeta, PackageViewMixin, object)):
checksum = spack.config.get('config:checksum')
fetch = self.stage.managed_by_spack
- if checksum and fetch and self.version not in self.versions:
+ if checksum and fetch and (self.version not in self.versions) \
+ and (not self.version.is_commit):
tty.warn("There is no checksum on file to fetch %s safely." %
self.spec.cformat('{name}{@version}'))