diff options
Diffstat (limited to 't/helper.pm')
-rw-r--r-- | t/helper.pm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/t/helper.pm b/t/helper.pm index 032d8c9a..8dd26488 100644 --- a/t/helper.pm +++ b/t/helper.pm @@ -4,7 +4,7 @@ use Test::More; use base 'Exporter'; our @EXPORT = qw(need_root_and_prepare start_httpd httpd_port - urpmi_addmedia urpmi_removemedia + urpmi_addmedia urpmi_removemedia urpmi_update urpmi_cmd urpmi urpme urpmi_cfg set_urpmi_cfg_global_options system_ @@ -51,6 +51,10 @@ sub urpmi_removemedia { my ($para) = @_; system_("perl -I.. ../urpmi.removemedia $urpmi_debug_opt --urpmi-root $::pwd/root $para"); } +sub urpmi_update { + my ($para) = @_; + system_("perl -I.. ../urpmi.update $urpmi_debug_opt --urpmi-root $::pwd/root $para"); +} sub urpmi_cmd() { "perl -I.. ../urpmi $urpmi_debug_opt --urpmi-root $::pwd/root --ignoresize"; } |