Added exit on failure to tie
CVS patchset: 3800 CVS date: 2000/06/02 07:53:39
This commit is contained in:
parent
14698620a5
commit
03d4327566
|
@ -10,6 +10,12 @@ print "1..11\n";
|
|||
tie %DB, "RPM::Database" or print "not ";
|
||||
print "ok 1\n";
|
||||
|
||||
unless (tied %DB)
|
||||
{
|
||||
die "$RPM::err";
|
||||
exit -1;
|
||||
}
|
||||
|
||||
# This package must exist, obviously
|
||||
$rpm = $DB{rpm};
|
||||
print "not " unless (defined $rpm and ref $rpm);
|
||||
|
|
Loading…
Reference in New Issue