[OE-core] [PATCH] package_rpm: Only rebuild the indexes if the packages have changed
Khem Raj
raj.khem at gmail.com
Sun Apr 29 00:03:20 UTC 2012
> + if os.path.exists(path + "/solvedb.checksum") and open(path + "/solvedb.checksum", "r").read() == checksum:
> + open(path + "/solvedb.done", "w")
> + continue
> +
> + if os.path.exists(path + "/solvedb"):
> + os.system("rm -rf %s" % (path + "/solvedb"))
to be pythonic may be use shutils.rmtree() here
> + os.mkdir(path + "/solvedb")
> + m = open(path + "/solvedb/manifest", "w")
> + m.write("# Dynamically generated solve manifest\n")
> + for f in manifest:
More information about the Openembedded-core
mailing list