Skip to contentSkip to conversation

fetch2: document checkstatus API

PATCH New Ross Burton 1 participant 1 message Oct 14, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fetch2: document checkstatus API

The checkstatus semantics are unconventional, so document them.

---
 bitbake/lib/bb/fetch2/__init__.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
bitbake/lib/bb/fetch2/__init__.py +5 -1
index 259b2637a6..63e619ab98 100644
@@ -1780,7 +1780,11 @@ class Fetch(object):
 
     def checkstatus(self, urls=None):
         """
-        Check all urls exist upstream
+        Check all URLs exist upstream.
+
+        Returns None if the URLs exist, raises FetchError if the check wasn't
+        successful but there wasn't an error (such as file not found), and
+        raises other exceptions in error cases.
         """
 
         if not urls:
Signature · 1 line
2.25.1