[bitbake-devel] http AUTOREV feature

Andrej Valek andrej.valek at siemens.com
Thu Feb 1 15:47:02 UTC 2018

Hi all,

I would like to ask You a question about AUTOREV feature request.

I would like to have the same AUTOREV feature for http/s, ftp file
downloading like in git/svn. This feature will download new files even
if a recipe wasn't changed.

I have made some tests in bbclass, how could be working.

for uri in d.getVar('SRC_URI', True).split():
   (scheme, _ , path) = bb.fetch.decodeurl(uri)[:3]

   if scheme in ("http", "https", "ftp"):
   # get remote file timestamp
         resp = urlopen(uri, timeout=5)
         timestamp = resp.info().getheaders("Last-Modified")[0]
      except Exception as e:
         bb.warn("Error gettig timestamp for %s (%s)" % (uri, e))

This stuff just downloads header data (not the whole file). From the
header parses last modification timestamp. This timestamp will be
converted into md5sum and appended set into AUTOREV variable like

What do you think about it? Would be this kind of feature acceptable?


More information about the bitbake-devel mailing list