def main()

in scripts/verify_rpm_mtime.py [0:0]


def main():
    exit_code = 0
    for filename in Path("rpm-build/RPMS/noarch").glob("*.rpm"):
        changelog_date, result = check_rpm(filename)
        print(f"checking mtimes in {filename.name}: {changelog_date}")
        if result:
            print("The following files have an incorrect mtime:")
            for fname, mtime in result:
                print(f"* {fname}: {mtime}")
            exit_code = 1

    sys.exit(exit_code)