blob: 16dfc94bd5f93428ac3b9217f974276147f78fe7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/usr/bin/perl
use strict ;
use warnings ;
use Test::More tests => 4;
use URPM;
use URPM::Build;
use URPM::Query;
my $a = new URPM;
ok($a);
my ($start, $end) = $a->parse_rpms_build_headers(rpms => [ "test-rpm-1.0-1mdk.noarch.rpm" ], keep_all_tags => 1);
ok(@{$a->{depslist}} == 1);
my $pkg = $a->{depslist}[0];
ok($pkg);
ok($pkg->get_tag(1000) eq 'test-rpm');
|