summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-03-17 13:16:25 +0000
committerThierry Vignaud <tv@mandriva.org>2008-03-17 13:16:25 +0000
commit1835d6d28eb9688683ded6b8fa29ee841f57f454 (patch)
treeaf366576f913292b4a58b62fd4a5683f3ef70f95
parent716e237d5231d9cd7c17348e85c49cad8f322fdd (diff)
downloadurpmi-1835d6d28eb9688683ded6b8fa29ee841f57f454.tar
urpmi-1835d6d28eb9688683ded6b8fa29ee841f57f454.tar.gz
urpmi-1835d6d28eb9688683ded6b8fa29ee841f57f454.tar.bz2
urpmi-1835d6d28eb9688683ded6b8fa29ee841f57f454.tar.xz
urpmi-1835d6d28eb9688683ded6b8fa29ee841f57f454.zip
handle -p and -P like urpmi
-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};
}