Hello  Richard Purdie

Above patch in  lib/bb/fetch2/git.py fails "devtool modify" for the recipe which uses  ${AUTOREV}

Raised a topic on the same(below URL).

 

https://lists.openembedded.org/g/Openembedded-issues/topic/devtool_fails_if_srcrev_is/93705955?p=,,,20,0,0,0::recentpostdate/sticky,,,20,2,0,93705955,previd%3D1663264030971523351,nextid%3D1298300470000000000&previd=1663264030971523351&nextid=1298300470000000000 

 

Not expert in complete workflow. To verify it set __BBSEENSRCREV as 1 above your patch( which is totally wrong this is just to check if its the issue). It actually works as expected

        d.setVar('__BBSEENSRCREV', '1')

        if not d.getVar("__BBSEENSRCREV"):

            raise bb.fetch2.FetchError("Recipe uses a floating tag/branch without a fixed SRCREV yet doesn't call bb.fetch2.get_srcrev() (use SRCPV in PV for OE).")

Just want to understand how __BBSEENSRCREV is set. is it possible to set this variable/ignore this check for devtool operations