From 3d1a4c165264b3d9876fb84cca2ce6335c264b97 Mon Sep 17 00:00:00 2001 From: Olivier Thauvin Date: Wed, 4 Jul 2007 15:53:30 +0000 Subject: - add Pkg_is_platform_compat() and Urpm_platformscore() coming with rpm 4.4.8 --- t/parse.t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 't') diff --git a/t/parse.t b/t/parse.t index 2a3a8fd..f1788d2 100644 --- a/t/parse.t +++ b/t/parse.t @@ -4,7 +4,7 @@ use strict; use warnings; -use Test::More tests => 40; +use Test::More tests => 41; use MDV::Packdrakeng; use URPM; use URPM::Build; @@ -72,6 +72,7 @@ is($pkg->get_tag(1001), '1.0', 'version'); is($pkg->get_tag(1002), '1mdk', 'release'); is($pkg->queryformat("%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}"), "test-rpm-1.0-1mdk.noarch", q/get headers from hdlist/); +ok($pkg->is_platform_compat() > 0, "can evaluate platform score"); my $headers = eval { [ $b->parse_rpms_build_headers(rpms => [ "RPMS/noarch/test-rpm-1.0-1mdk.noarch.rpm" ], dir => 'headers') ] }; -- cgit v1.2.1