Skip to contentSkip to conversation

scripts/buildstats-diff: fix epoch numbers in --ver-diff

PATCH New Markus Lehtonen 1 participant 1 message Feb 15, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scripts/buildstats-diff: fix epoch numbers in --ver-diff

Incorrect data was printed (recipe name instead of epoch number) when displaying changes in epoch.

---
 scripts/buildstats-diff | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/buildstats-diff +1 -1
index 5cea184..adeba44 100755
@@ -301,7 +301,7 @@ def print_ver_diff(bs1, bs2):
         print("\nEPOCH CHANGED:")
         print("--------------")
         for pkg in sorted(echanged):
-            field1 = "{} -> {}".format(pkg, bs1[pkg]['epoch'], bs2[pkg]['epoch'])
+            field1 = "{} -> {}".format(bs1[pkg]['epoch'], bs2[pkg]['epoch'])
             field2 = "{} -> {}".format(bs1[pkg]['nevr'], bs2[pkg]['nevr'])
             print(fmt_str.format(pkg, field1, field2, maxlen=maxlen))
 
Signature · 1 line
2.6.6