Skip to contentSkip to conversation

buildhistory-collect-srcrevs: write an srcrev when named, not None

PATCH New Christopher Larson 1 participant 1 message Nov 21, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 buildhistory-collect-srcrevs: write an srcrev when named, not None

From: Christopher Larson <[email protected]>

The script was writing the main 'SRCREV' value for SRCREV_name, not the value of the latter. In the case of recipes without 'SRCREV', like linux-yocto, it was writing an srcrev of 'None' for all of them.

---
 scripts/buildhistory-collect-srcrevs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/buildhistory-collect-srcrevs +1 -1
index 8a03580..d375b04 100755
@@ -101,7 +101,7 @@ def main():
                 for name, value in srcrevs.items():
                     orig = orig_srcrevs.get(name, orig_srcrev)
                     if options.reportall or value != orig:
-                        all_srcrevs[curdir].append((pn, name, srcrev))
+                        all_srcrevs[curdir].append((pn, name, value))
 
     for curdir, srcrevs in sorted(all_srcrevs.items()):
         if srcrevs:
Signature · 1 line
2.8.0