head	1.3;
access;
symbols
	rpm-4_3_1-start:1.2
	rpm-4_3:1.2.0.16
	rpm-4_2_1-release:1.2
	rpm-4_1_1-release:1.2
	rpm-4_2-release:1.2
	rpm-4_2:1.2.0.14
	rpm-4_1-release:1.2
	rpm-4_1:1.2.0.12
	rpm-4_0_4-release:1.2
	jbj-before-beecrypt:1.2
	rpm-4_0_3-release:1.2
	jbj_b4_rollback:1.2
	rpm-4_0_2-release:1.2
	rpm-4_0_1-release:1.2
	rpm-3_0_6-release:1.2
	rpm-4_0-release:1.2
	rpm-3_0_6:1.2
	rpm-4_0:1.2.0.10
	rpm-3_0_5:1.2.0.8
	jbj_sparc64:1.2.0.6
	jbj_before_api_breakage:1.2.0.4
	rpm-3_0_4:1.2.0.2;
locks; strict;
comment	@# @;


1.3
date	2004.10.13.18.40.33;	author jbj;	state dead;
branches;
next	1.2;

1.2
date	2000.02.11.21.06.10;	author msw;	state Exp;
branches
	1.2.10.1;
next	1.1;

1.1
date	2000.02.11.20.29.22;	author msw;	state Exp;
branches;
next	;

1.2.10.1
date	2002.02.15.15.32.13;	author ewt;	state Exp;
branches;
next	;


desc
@@


1.3
log
@Move rpm-python test scripts to test subdirectory.
@
text
@#!/usr/bin/python

import rpm

def printlist(h, tag):
    print "####### %s tag contains:" % tag
    i = 0
    list = h[tag]
    if not list:
        print "NO SUCH TAG"
        return
    
    for file in list:
        print file
        i = i + 1
    print "******** %d files" % i
    

db = rpm.opendb(0)
rc = db.findbyname('redhat-release')
h = db[rc[0]]
printlist (h, 'filenames')
printlist (h, 'oldfilenames')

print "-------------- expand --------------------"
h.expandFilelist()
printlist (h, 'oldfilenames')
printlist (h, 'filenames')

print "-------------- compress --------------------"
h.compressFilelist()
printlist (h, 'oldfilenames')
printlist (h, 'filenames')

print "-------------- expand --------------------"
h.expandFilelist()
printlist (h, 'oldfilenames')
printlist (h, 'filenames')

print "-------------- full --------------------"
h.fullFilelist()
printlist (h, 'oldfilenames')
printlist (h, 'filenames')

@


1.2
log
@add a method to fill the filelist fully
@
text
@@


1.2.10.1
log
@split header bindings into separate file
@
text
@d1 1
a1 5
#!/usr/bin/python2.2

import sys

sys.path = [ '.libs' ] + sys.path
@


1.1
log
@add compress/uncompress filelist
@
text
@d24 2
a26 1
print "-------------- expand --------------------"
d29 1
d34 11
@

