summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rw-r--r--gurpmi.pm2
-rw-r--r--urpm/args.pm2
3 files changed, 4 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index d357a316..cff211d0 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,6 @@
- gurpmi:
o handle provides (spotted by salem)
+ o handle -p and -P like urpmi
- urpmi:
o never suggest --install-src for spec file (#38876)
o do not allow "urpmi --install-src foo.spec"
diff --git a/gurpmi.pm b/gurpmi.pm
index 2cdb2288..b5bb20cd 100644
--- a/gurpmi.pm
+++ b/gurpmi.pm
@@ -50,6 +50,8 @@ usage:
") . N(" --verify-rpm - verify rpm signature before installation
(--no-verify-rpm disables it, default is enabled).
") . N(" --media - use only the given media, separated by comma.
+") . N(" -p - allow search in provides to find package.
+") . N(" -P - do not search in provides to find package.
") . N(" --root - use another root for rpm installation.
") . N(" --test - only verify if the installation can be achieved correctly.
") . N(" --searchmedia - use only the given media to search requested packages.
diff --git a/urpm/args.pm b/urpm/args.pm
index b34e461e..bff9bded 100644
--- a/urpm/args.pm
+++ b/urpm/args.pm
@@ -370,7 +370,7 @@ sub add_urpmf_parameter {
# common options setup
-foreach my $k ('allow-medium-change', 'auto', 'auto-select', 'force', 'expect-install!', 'no-priority-upgrade', 'previous-priority-upgrade=s', 'root=s', 'test!', 'verify-rpm!')
+foreach my $k ('allow-medium-change', 'auto', 'auto-select', 'force', 'expect-install!', 'no-priority-upgrade', 'p', 'P', 'previous-priority-upgrade=s', 'root=s', 'test!', 'verify-rpm!')
{
$options_spec{gurpmi}{$k} = $options_spec{urpmi}{$k};
}