diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2008-01-15 16:21:55 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2008-01-15 16:21:55 +0000 |
commit | c943a108fbe924c0b96bd7a4e8fbfbb2c4387b9f (patch) | |
tree | 97d801c22355f0a7d94fd27955dd7e4fe898e65e /t/02create_pkgs.t | |
parent | c4371178d66a06424463739c737af6b488153bf8 (diff) | |
download | urpmi-c943a108fbe924c0b96bd7a4e8fbfbb2c4387b9f.tar urpmi-c943a108fbe924c0b96bd7a4e8fbfbb2c4387b9f.tar.gz urpmi-c943a108fbe924c0b96bd7a4e8fbfbb2c4387b9f.tar.bz2 urpmi-c943a108fbe924c0b96bd7a4e8fbfbb2c4387b9f.tar.xz urpmi-c943a108fbe924c0b96bd7a4e8fbfbb2c4387b9f.zip |
use genhdlist2 and create xml info files
Diffstat (limited to 't/02create_pkgs.t')
-rw-r--r-- | t/02create_pkgs.t | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/t/02create_pkgs.t b/t/02create_pkgs.t index 9d8058e4..f4c9941a 100644 --- a/t/02create_pkgs.t +++ b/t/02create_pkgs.t @@ -10,6 +10,7 @@ system('rm -rf tmp media'); foreach (qw(media tmp tmp/BUILD tmp/RPMS tmp/RPMS/noarch tmp/SRPMS)) { mkdir $_; } +my $genhdlist2 = 'genhdlist2 --xml-info'; mkdir "media/suggests"; system_("cp data/old-suggests-1-1.noarch.rpm media/suggests"); @@ -28,7 +29,7 @@ foreach my $spec (glob("data/SPECS/*.spec")) { if ($name eq 'various') { system_("cp -r media/$name media/${name}_nohdlist"); system_("cp -r media/$name media/${name}_no_subdir"); - system_("genhdlist --dest media/${name}_no_subdir"); + system_("$genhdlist2 media/${name}_no_subdir"); symlink "${name}_nohdlist", "media/${name} nohdlist"; symlink "${name}", "media/${name}_bis"; } @@ -44,7 +45,7 @@ foreach my $spec (glob("data/SPECS/srpm*.spec")) { system_("cp -r data/$name media"); system_("cp -r media/$name media/${name}_nohdlist"); system_("cp -r media/$name media/${name}_no_subdir"); - system_("genhdlist --dest media/${name}_no_subdir"); + system_("$genhdlist2 media/${name}_no_subdir"); genhdlist_std($name); } @@ -54,7 +55,7 @@ system_('gendistrib -s .'); sub genhdlist_std { my ($medium_name) = @_; - system_("genhdlist --subdir media/$medium_name/media_info media/$medium_name"); + system_("$genhdlist2 media/$medium_name"); } sub rpmbuild { |