summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2006-10-25 10:48:44 +0000
committerThierry Vignaud <tv@mandriva.org>2006-10-25 10:48:44 +0000
commit20880cf7e095f60a9858e574c1716007f3c795b1 (patch)
treebe68582ef736745c2507769677fc6ccf96d9ca02
parente7e24ba15fd0af560fb7b9e9f61798de3eec9225 (diff)
downloadurpmi-20880cf7e095f60a9858e574c1716007f3c795b1.tar
urpmi-20880cf7e095f60a9858e574c1716007f3c795b1.tar.gz
urpmi-20880cf7e095f60a9858e574c1716007f3c795b1.tar.bz2
urpmi-20880cf7e095f60a9858e574c1716007f3c795b1.tar.xz
urpmi-20880cf7e095f60a9858e574c1716007f3c795b1.zip
add support of --root for gurpmi
-rw-r--r--gurpmi.pm3
-rwxr-xr-xgurpmi21
2 files changed, 3 insertions, 1 deletions
diff --git a/gurpmi.pm b/gurpmi.pm
index 574043b6..434ce34d 100644
--- a/gurpmi.pm
+++ b/gurpmi.pm
@@ -35,6 +35,7 @@ Options :
--auto-select
--no-verify-rpm
--media media1,...
+ --root root
--searchmedia media1,...
USAGE
exit 0;
@@ -69,7 +70,7 @@ sub parse_command_line {
$options{$1} = 1;
next;
}
- if (/^--(media|searchmedia)$/) {
+ if (/^--(media|searchmedia|root)$/) {
$nextopt = $1;
next;
}
diff --git a/gurpmi2 b/gurpmi2
index fe3674a7..0d32ad62 100755
--- a/gurpmi2
+++ b/gurpmi2
@@ -120,6 +120,7 @@ sub configure_urpm {
$urpm->exlock_rpm_db;
$urpm->shlock_urpmi_db;
$urpm->configure(
+ root => $gurpmi::options{root},
media => $gurpmi::options{media},
searchmedia => $gurpmi::options{searchmedia},
);