Bitbake is now requiring there be a call to get_srcrev() when urls contain
floating revisions. This breaks some recipetool workflows since it is running
these queries to determine those revisions. Add a PV entry which triggers
that call to avoid the errors.

Signed-off-by: Richard Purdie <[email protected]>
---
 scripts/lib/scriptutils.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/lib/scriptutils.py b/scripts/lib/scriptutils.py
index 47a08194d0d..adf81476f0c 100644
--- a/scripts/lib/scriptutils.py
+++ b/scripts/lib/scriptutils.py
@@ -179,6 +179,7 @@ def fetch_url(tinfoil, srcuri, srcrev, destdir, logger, 
preserve_tmp=False, mirr
                 f.write('BB_STRICT_CHECKSUM = "ignore"\n')
                 f.write('SRC_URI = "%s"\n' % srcuri)
                 f.write('SRCREV = "%s"\n' % srcrev)
+                f.write('PV = "0.0+${SRCPV}"\n')
                 f.write('WORKDIR = "%s"\n' % tmpworkdir)
                 # Set S out of the way so it doesn't get created under the 
workdir
                 f.write('S = "%s"\n' % os.path.join(tmpdir, 'emptysrc'))
-- 
2.32.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#161660): 
https://lists.openembedded.org/g/openembedded-core/message/161660
Mute This Topic: https://lists.openembedded.org/mt/89076820/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to