diff options
author | Olivier Thauvin <nanardon@mandriva.org> | 2007-07-04 15:53:30 +0000 |
---|---|---|
committer | Olivier Thauvin <nanardon@mandriva.org> | 2007-07-04 15:53:30 +0000 |
commit | 3d1a4c165264b3d9876fb84cca2ce6335c264b97 (patch) | |
tree | 4eb0b2b6087e1ee2eaf84c1a989064f9428d9005 /t | |
parent | ca1219cb28ad7ef95073a654bb1b103c9e1b69b2 (diff) | |
download | perl-URPM-3d1a4c165264b3d9876fb84cca2ce6335c264b97.tar perl-URPM-3d1a4c165264b3d9876fb84cca2ce6335c264b97.tar.gz perl-URPM-3d1a4c165264b3d9876fb84cca2ce6335c264b97.tar.bz2 perl-URPM-3d1a4c165264b3d9876fb84cca2ce6335c264b97.tar.xz perl-URPM-3d1a4c165264b3d9876fb84cca2ce6335c264b97.zip |
- add Pkg_is_platform_compat() and Urpm_platformscore() coming with rpm 4.4.8
Diffstat (limited to 't')
-rw-r--r-- | t/parse.t | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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') ] }; |