Skip to contentSkip to conversation

SRCREV change bitbake bug

PATCH Richard Purdie 1 participant 1 message Sep 14, 2007

lore
Share & tools
lore
#0 lore raw

This is a quick report of a problem I've been made aware of. Basically the AUTOREV variable doesn't work as expected with current bitbake which breaks insane-srcrevs.inc and moko-auto.inc :-(.

The patch below hacks around this. I'd like to have some time to think about the problem and find a better solution before committing anything to bitbake. The section of code was already marked "gross hack" and sure enough, its bitten us already :(.

Anyone needing AUTOREV can probably manage to apply the patch in the meantime ;-).

Cheers,

Richard

bb/fetch/svn.py (working copy) renamed from bb/fetch/svn.py (revision 970) +3 -0
Index: lib/bb/fetch/svn.py
===================================================================
@@ -77,6 +77,9 @@
                 if rev and "get_srcrev" in rev:
                     ud.revision = self.latest_revision(url, ud, d)
                     ud.date = ""
+                elif rev and "AUTOREV" in rev:
+                    ud.revision = self.latest_revision(url, ud, d)
+                    ud.date = ""
                 elif rev:
                     ud.revision = rev
                     ud.date = ""