#!/usr/bin/env python # Rewrite the metadata in all the installed packages (unless GARVERSION has # changed). This is only useful if you've made a change to GARstow that's # invalidated all the package hashes and are certain that nothing else about # the packages has changed; regular users shouldn't use it. from garstowlib.packages import * def main(args): ips = get_installed() for package in sorted(ips.keys()): if get_version(package) != get_installed_version(package): print "%s: version differs" % package else: print "%s: rewriting metadata" % package write_package_vars(package) if __name__ == "__main__": main(sys.argv[1:])