summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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},
);