/[collab-qa]/fileconflicts/query-contents.py
ViewVC logotype

Contents of /fileconflicts/query-contents.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 59 - (show annotations) (download) (as text)
Fri Mar 16 00:18:54 2007 UTC (6 years, 2 months ago) by filippo
File MIME type: text/x-python
File size: 552 byte(s)
add id svn:keywords as well
1 #!/usr/bin/python
2 # released under the GPLv2
3 # author: Filippo Giunchedi <filippo@debian.org>
4 # queries the given db for optional package
5 # $Id$
6 import cPickle, sys
7
8 def main():
9 if len(sys.argv) < 2:
10 print "usage: contents.db [package]"
11 sys.exit(1)
12
13 f = open(sys.argv[1], 'r')
14 dups = cPickle.load(f)
15 f.close()
16
17 for k,v in dups.items():
18 if len(sys.argv) == 2:
19 print k,v
20 else:
21 if sys.argv[2] in v:
22 print k, dups[k]
23
24 if __name__ == '__main__':
25 main()

Properties

Name Value
svn:executable *
svn:keywords id

  ViewVC Help
Powered by ViewVC 1.1.5