blob: f59259b73e91bb3a80307f72d18457486e9f5c7e (
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 lib '.', 't';
use helper;
use Test::More 'no_plan';
plan skip_all => "Needs a Mageia specific patch that introduces Time::ZoneInfo->current_zone()" if !-e '/etc/mageia-release';
BEGIN { use_ok 'urpm::cfg' }
need_root_and_prepare();
need_downloader();
urpmi_addmedia('--mirrorlist \$MIRRORLIST core media/core/release');
is(run_urpm_cmd('urpmq sed'), "sed\n");
urpmi_removemedia('core');
urpmi_addmedia('--distrib --mirrorlist \$MIRRORLIST');
is(run_urpm_cmd('urpmq sed'), "sed\n");
urpmi_removemedia('-a');
|