summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Galby <67924449+Jordan474@users.noreply.github.com>2022-05-19 20:27:43 +0200
committerMassimiliano Culpo <massimiliano.culpo@gmail.com>2022-07-14 16:47:26 +0200
commit9d04632ceec7d17251ab3777cbb84ca1dd578ace (patch)
treefd5b2262e8d1e049556ab09c6bfe10ea22562c4b
parentf374fe8a624b54bfddebf6874e4361fcf6bf90e0 (diff)
downloadspack-9d04632ceec7d17251ab3777cbb84ca1dd578ace.tar.gz
spack-9d04632ceec7d17251ab3777cbb84ca1dd578ace.tar.bz2
spack-9d04632ceec7d17251ab3777cbb84ca1dd578ace.tar.xz
spack-9d04632ceec7d17251ab3777cbb84ca1dd578ace.zip
Non-existent upstream is not fatal (#30746)
A non-existent upstream should not be fatal: it could only mean it is not deployed yet. In the meantime, it should not block the user to rebuild anything it needs. A warning is still emitted, to let the user decide if this is ok or not.
-rw-r--r--lib/spack/spack/database.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/spack/spack/database.py b/lib/spack/spack/database.py
index bfe98cd4a0..ea4d705869 100644
--- a/lib/spack/spack/database.py
+++ b/lib/spack/spack/database.py
@@ -1033,9 +1033,7 @@ class Database(object):
self._read_from_file(self._index_path)
return
elif self.is_upstream:
- raise UpstreamDatabaseLockingError(
- "No database index file is present, and upstream"
- " databases cannot generate an index file")
+ tty.warn('upstream not found: {0}'.format(self._index_path))
def _add(
self,