Files
pisi/tools/cat-db.py
T
Eray Özkural 2dd9480911 * make all db's use lockeddbshelve
* fix: long standing bug that prevented dbs and locks from being
  properly closed at exit, now pisi.finalize does something :)
2005-10-24 11:07:44 +00:00

27 lines
559 B
Python
Executable File

#!/usr/bin/python
#
# Copyright (C) 2005, TUBITAK/UEKAE
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2 of the License, or (at your option)
# any later version.
#
# Please read the COPYING file.
#
# Author: Eray Ozkural <eray@uludag.org.tr>
import sys
import bsddb.dbshelve as shelve
sys.path.append('.')
import pisi
d = shelve.open( sys.argv[1] )
for (k, data) in d.iteritems():
print k, data
d.close()