summaryrefslogtreecommitdiffstats
path: root/t/superuser--media_info_dir.t
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-01-18 10:07:11 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-01-18 10:07:11 +0000
commit1552f8682706dd1b9b95365b64d663bb38589ef5 (patch)
tree2c347eca02c10cd9ef4dfda5ddcc63865d49f08f /t/superuser--media_info_dir.t
parent14483fcf80d1f2977753b7d5012ee48a602c7833 (diff)
downloadurpmi-1552f8682706dd1b9b95365b64d663bb38589ef5.tar
urpmi-1552f8682706dd1b9b95365b64d663bb38589ef5.tar.gz
urpmi-1552f8682706dd1b9b95365b64d663bb38589ef5.tar.bz2
urpmi-1552f8682706dd1b9b95365b64d663bb38589ef5.tar.xz
urpmi-1552f8682706dd1b9b95365b64d663bb38589ef5.zip
cleanup using run_urpm_cmd
Diffstat (limited to 't/superuser--media_info_dir.t')
-rw-r--r--t/superuser--media_info_dir.t4
1 files changed, 1 insertions, 3 deletions
diff --git a/t/superuser--media_info_dir.t b/t/superuser--media_info_dir.t
index 599ffde1..7d07d011 100644
--- a/t/superuser--media_info_dir.t
+++ b/t/superuser--media_info_dir.t
@@ -74,9 +74,7 @@ sub rpm_v3 {
foreach my $src_rpm (glob('media/rpm-v3/*.rpm')) {
my ($wanted_arch) = $src_rpm =~ /(\w+)\.rpm$/;
- my $cmd = urpm_cmd('urpmq') . " -f $src_rpm";
- warn "# $cmd\n";
- chomp(my $fullname = `$cmd`);
+ chomp(my $fullname = run_urpm_cmd("urpmq -f $src_rpm"));
my ($arch) = $fullname =~ /(\w+)$/;
if (rpm_is_jbj_version()) {