--- RPM2-0.66/test.pl.remove_rpmdb_fedora_dependency 2004-04-14 08:43:58.000000000 -0400 +++ RPM2-0.66/test.pl 2006-03-16 15:57:13.000000000 -0500 @@ -13,6 +13,7 @@ use strict; BEGIN { plan tests => 63 }; use RPM2; +use POSIX; ok(1); # If we made it this far, we're ok. ######################### @@ -106,9 +107,10 @@ ok(($pkg <=> $pkg2) == 0); ok(!($pkg < $pkg2)); ok(!($pkg > $pkg2)); - +my $other_rpm_dir = getcwd() . '/rpmdb'; # another rpm, handily provided by the rpmdb-redhat package -my $other_rpm_dir = "/usr/lib/rpmdb/i386-redhat-linux/redhat"; +# ... is no longer shipped. Create a new one: +system( "rm -rf rpmdb; mkdir rpmdb; /usr/bin/rpmdb --dbpath $other_rpm_dir --initdb" ); if (-d $other_rpm_dir) { my $db2 = RPM2->open_rpm_db(-path => $other_rpm_dir); ok(defined $db2); @@ -118,7 +120,6 @@ print "Install the rpmdb-redhat package to test two simultaneous open databases\n"; ok(1); } - ok(RPM2->expand_macro("%%foo") eq "%foo"); RPM2->add_macro("rpm2_test_macro", "testval $$"); ok(RPM2->expand_macro("%rpm2_test_macro") eq "testval $$");