summaryrefslogtreecommitdiffstats
path: root/t/helper.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2006-12-08 12:17:44 +0000
committerPascal Rigaux <pixel@mandriva.com>2006-12-08 12:17:44 +0000
commit7c9e3c0427dd622bad09695b32aaf5c91dc0159e (patch)
tree15dba4092b548b27b1f85a10993294bfa291d103 /t/helper.pm
parent5993b7166ae289fda3447bfa4716f728422fe5d4 (diff)
downloadurpmi-7c9e3c0427dd622bad09695b32aaf5c91dc0159e.tar
urpmi-7c9e3c0427dd622bad09695b32aaf5c91dc0159e.tar.gz
urpmi-7c9e3c0427dd622bad09695b32aaf5c91dc0159e.tar.bz2
urpmi-7c9e3c0427dd622bad09695b32aaf5c91dc0159e.tar.xz
urpmi-7c9e3c0427dd622bad09695b32aaf5c91dc0159e.zip
add urpmi_update()
Diffstat (limited to 't/helper.pm')
-rw-r--r--t/helper.pm6
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";
}