Don't warn about missing source id for external packages (#24125)
This commit is contained in:
parent
b03049e938
commit
c09eea5947
@ -1529,6 +1529,7 @@ def content_hash(self, content=None):
|
|||||||
# should this attempt to download the source and set one? This
|
# should this attempt to download the source and set one? This
|
||||||
# probably only happens for source repositories which are
|
# probably only happens for source repositories which are
|
||||||
# referenced by branch name rather than tag or commit ID.
|
# referenced by branch name rather than tag or commit ID.
|
||||||
|
if not self.spec.external:
|
||||||
message = 'Missing a source id for {s.name}@{s.version}'
|
message = 'Missing a source id for {s.name}@{s.version}'
|
||||||
tty.warn(message.format(s=self))
|
tty.warn(message.format(s=self))
|
||||||
hash_content.append(''.encode('utf-8'))
|
hash_content.append(''.encode('utf-8'))
|
||||||
|
Loading…
Reference in New Issue
Block a user