[foo-1.0-1.noarch]
)
-RPMPY_TEST([add bogus package to transaction],[
+RPMPY_TEST([add bogus package to transaction 1],[
ts = rpm.ts()
h = rpm.hdr()
h['name'] = "foo"
[adding package to transaction failed]
)
+RPMPY_TEST([add bogus package to transaction 2],[
+ts = rpm.ts()
+h = rpm.hdr()
+h['name'] = 'foo'
+h['version'] = '1.0'
+h['release'] = '1'
+h['os'] = 'linux'
+h['arch'] = 'noarch'
+h['basenames'] = ['bing', 'bang', 'bong']
+h['dirnames'] = ['/opt' '/flopt']
+h['dirindexes'] = [ 1, 2, 3 ]
+try:
+ ts.addInstall(h, 'foo', 'u')
+except rpm.error, err:
+ myprint(err)
+for e in ts:
+ myprint(e.NEVRA())
+],
+[adding package to transaction failed]
+)
+
AT_SETUP([database iterators])
AT_KEYWORDS([python rpmdb])
AT_CHECK([