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.
This commit is contained in:
@@ -1064,9 +1064,7 @@ def _read(self):
|
|||||||
self._state_is_inconsistent = False
|
self._state_is_inconsistent = False
|
||||||
return
|
return
|
||||||
elif self.is_upstream:
|
elif self.is_upstream:
|
||||||
raise UpstreamDatabaseLockingError(
|
tty.warn('upstream not found: {0}'.format(self._index_path))
|
||||||
"No database index file is present, and upstream"
|
|
||||||
" databases cannot generate an index file")
|
|
||||||
|
|
||||||
def _add(
|
def _add(
|
||||||
self,
|
self,
|
||||||
|
|||||||
Reference in New Issue
Block a user