summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrjray <devnull@localhost>2000-08-06 08:57:09 +0000
committerrjray <devnull@localhost>2000-08-06 08:57:09 +0000
commit6d00e4754013dfcae066a729b8843ec970119c11 (patch)
treec8c9b7518990c9cb9c882e0eee8fd190e8bd9351
parent965e6616c39ec56b2d0401db060edcd4ef145747 (diff)
downloadlibrpm-tizen-6d00e4754013dfcae066a729b8843ec970119c11.tar.gz
librpm-tizen-6d00e4754013dfcae066a729b8843ec970119c11.tar.bz2
librpm-tizen-6d00e4754013dfcae066a729b8843ec970119c11.zip
Changed some tests to fit new RPM::Header behavior.
CVS patchset: 4017 CVS date: 2000/08/06 08:57:09
-rwxr-xr-xPerl-RPM/t/01_database.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/Perl-RPM/t/01_database.t b/Perl-RPM/t/01_database.t
index c55aab6c3..08e1f8f54 100755
--- a/Perl-RPM/t/01_database.t
+++ b/Perl-RPM/t/01_database.t
@@ -56,12 +56,12 @@ print "ok 7\n";
print "not " unless (@matches == 1);
print "ok 8\n";
-print "not " unless ($matches[0]->{name}->[0] eq 'rpm');
+print "not " unless ($matches[0]->{name} eq 'rpm');
print "ok 9\n";
# There may be more than one package that depends on rpm
@matches = $rpm->find_by_required_by('rpm');
-for (@matches) { $_ = $_->{name}->[0] }
+for (@matches) { $_ = $_->{name} }
# As long as we see this one (it has to be present to build this package)
print "not " unless (grep 'rpm-devel', @matches);
print "ok 10\n";