diff options
author | Francois Pons <fpons@mandriva.com> | 2003-01-06 14:04:04 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2003-01-06 14:04:04 +0000 |
commit | 6ae04a8f731222975c0ae2df3c9a9e6bdafa773c (patch) | |
tree | 103a05158cf050440ba6c5d0b563cf39c338fa4a /urpmf | |
parent | dd93cd18f3fce4ca8367cb8fb0be3927a95d0608 (diff) | |
download | urpmi-6ae04a8f731222975c0ae2df3c9a9e6bdafa773c.tar urpmi-6ae04a8f731222975c0ae2df3c9a9e6bdafa773c.tar.gz urpmi-6ae04a8f731222975c0ae2df3c9a9e6bdafa773c.tar.bz2 urpmi-6ae04a8f731222975c0ae2df3c9a9e6bdafa773c.tar.xz urpmi-6ae04a8f731222975c0ae2df3c9a9e6bdafa773c.zip |
4.2-3mdk
Diffstat (limited to 'urpmf')
-rwxr-xr-x | urpmf | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -48,6 +48,7 @@ usage: ") . _(" --files - print tag files: all files (multiple lines). ") . _(" --conflicts - print tag conflicts: all conflicts (multiple lines). ") . _(" --obsoletes - print tag obsoletes: all obsoletes (multiple lines). +") . _(" -i - ignore case distinctions in any pattern. ") . _(" -f - print version, release and arch with name. ") . _(" -e - include perl code directly as perl -e. ") . _(" -a - binary AND operator, true if both expression are true. @@ -65,7 +66,8 @@ my $media = ''; my $synthesis = ''; my $verbose = 0; my $quiet = undef; -my $fullname = ''; +my $pattern = ''; +my $full = ''; my %params; #- parse arguments list. @@ -84,13 +86,14 @@ while (defined($_ = shift @ARGV)) { foreach qw(group size summary description provides requires files conflicts obsoletes); next }; /^--(group|size|epoch|summary|description|provides|requires|files|conflicts|obsoletes)$/ and do { $params{$1} = 1; next }; + /^-i$/ and do { $pattern = 'i'; next }; /^-f$/ and do { $full = 'full'; next }; /^-e$/ and do { $expr .= '('.$_.')'; next }; /^-a$/ and do { $expr .= ' && '; next }; /^-o$/ and do { $expr .= ' || '; next }; /^[!\(\)]$/ and do { $expr .= $_; next }; #- assume a regex directly - $expr .= 'm{'.$_.'}'; + $expr .= 'm{'.$_.'}'.$pattern; } my $urpm = new urpm; |