view bin/listcachedb.py @ 570:44c0f8404983

Refactor git pull command out of update Tag MUST NOT use update because therefore it always changes the current local branch! For listing the tags it's enough to pull the latest repo changes
author Bjoern Ricks <bricks@intevation.de>
date Fri, 02 Sep 2011 11:46:29 +0000
parents b0179962ce26
children
line wrap: on
line source
#! /usr/bin/python
# Copyright (C) 2010 by Intevation GmbH
# Authors:
# Bjoern Ricks    <bjoern.ricks@intevation.de>
#
# This program is free software under the GPL (>=v2)
# Read the file COPYING coming with the software for details.

from optparse import OptionParser

import treepkgcmd
from treepkg.info.data import CacheDb

def main():
    parser = OptionParser()
    parser.add_option("--db", help=("path to the CacheDb"))
    options, args = parser.parse_args()

    cachedb = CacheDb(options.db)
    packages = cachedb.get_packages()
    for package in packages:
        print "============================="
        print "name:    %s" % package.name
        print "============================="
        print "binary:  %s" % package.filename
        print "source:  %s" % package.sourcepath
        print "arch:    %s" % package.arch
        print "md5sum:  %s" % package.md5sum

if __name__ == "__main__":
    main()
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)