Commit c134bf90 authored by Jochen Sprickerhof's avatar Jochen Sprickerhof Committed by Holger Levsen
Browse files

r.d.n./stats: reverse sort order



(cherry picked from commit be27ae901ed5c9b0820e0d39a4fb68ecc00bb314)
Signed-off-by: default avatarHolger Levsen <holger@layer-acht.org>
parent b320ded2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -134,7 +134,7 @@ def main() -> None:
    )
    print("</table>")

    print('<p>Packages are ordered by <em>not</em> having a bug in <a href="https://salsa.debian.org/reproducible-builds/reproducible-notes">reproducible-notes</a> primary and secondary by build time (newer logs later).</p>')
    print('<p>Packages are grouped by having a bug in <a href="https://salsa.debian.org/reproducible-builds/reproducible-notes">reproducible-notes</a> and sorted by build time (newer logs later) inside the group.</p>')

    if arch not in ['amd64', 'arm64', 'armhf', 'i386']:
        ci_arch = 'amd64'
@@ -148,7 +148,7 @@ def main() -> None:
        span = 0
        bug_break = False
        print("<p><span>")
        for pkg in sorted(packages, key=lambda pkg: pkg["src"] in rn_bugs and "bugs" in rn_bugs[pkg["src"]]):
        for pkg in sorted(packages, key=lambda pkg: pkg["src"] in rn_bugs and "bugs" in rn_bugs[pkg["src"]], reverse=True):
            if not bug_break and pkg["src"] in rn_bugs and "bugs" in rn_bugs[pkg["src"]]:
                bug_break = True
                print("</span></p><p><span>")