summaryrefslogtreecommitdiffstats
path: root/rpmmodule/testit
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>1999-04-27 19:04:47 +0000
committerErik Troan <ewt@redhat.com>1999-04-27 19:04:47 +0000
commit290cac45f61f65a7792242a79edd14240b4949d8 (patch)
tree1e5c76e17725ead86a6a660a9fb8058db952f7c9 /rpmmodule/testit
parent599fc3a0b2e0b5ad9ff1c2af9218adcbd6ae6ac9 (diff)
downloadanaconda-290cac45f61f65a7792242a79edd14240b4949d8.tar.gz
anaconda-290cac45f61f65a7792242a79edd14240b4949d8.tar.xz
anaconda-290cac45f61f65a7792242a79edd14240b4949d8.zip
*** empty log message ***
Diffstat (limited to 'rpmmodule/testit')
-rwxr-xr-xrpmmodule/testit10
1 files changed, 10 insertions, 0 deletions
diff --git a/rpmmodule/testit b/rpmmodule/testit
new file mode 100755
index 000000000..5d0ab9f0f
--- /dev/null
+++ b/rpmmodule/testit
@@ -0,0 +1,10 @@
+#!/usr/bin/python
+
+import rpm
+
+(h, isSource) = rpm.headerFromPackage('foo')
+print "from foo:", h[rpm.RPMTAG_NAME]
+
+list = rpm.readHeaderList('hdlist')
+for n in list:
+ print "from list:", n[rpm.RPMTAG_NAME]