bricks@425: #! /usr/bin/python bricks@425: # Copyright (C) 2010 by Intevation GmbH bricks@425: # Authors: bricks@425: # Bjoern Ricks bricks@425: # bricks@425: # This program is free software under the GPL (>=v2) bricks@425: # Read the file COPYING coming with the software for details. bricks@425: bricks@425: from optparse import OptionParser bricks@425: bricks@425: import treepkgcmd bricks@425: from treepkg.info.data import CacheDb bricks@425: bricks@425: def main(): bricks@425: parser = OptionParser() bricks@425: parser.add_option("--db", help=("path to the CacheDb")) bricks@425: options, args = parser.parse_args() bricks@425: bricks@425: cachedb = CacheDb(options.db) bricks@425: packages = cachedb.get_packages() bricks@425: for package in packages: bricks@425: print "=============================" bricks@425: print "name: %s" % package.name bricks@425: print "=============================" bricks@425: print "binary: %s" % package.filename bricks@425: print "source: %s" % package.sourcepath bricks@425: print "arch: %s" % package.arch bricks@425: print "md5sum: %s" % package.md5sum bricks@425: bricks@425: if __name__ == "__main__": bricks@425: main()