diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2001-10-01 16:45:34 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2001-10-01 16:45:34 +0000 |
commit | 046f4775d1a5a719cdea1e4d3cbc5a0bd081bcc4 (patch) | |
tree | bc34203d86a8f71d04fd13087c24154290f1979f /urpme | |
parent | bfa2e43a1c357cdfd3b347a09c407fdfc1e4bcfc (diff) | |
download | urpmi-046f4775d1a5a719cdea1e4d3cbc5a0bd081bcc4.tar urpmi-046f4775d1a5a719cdea1e4d3cbc5a0bd081bcc4.tar.gz urpmi-046f4775d1a5a719cdea1e4d3cbc5a0bd081bcc4.tar.bz2 urpmi-046f4775d1a5a719cdea1e4d3cbc5a0bd081bcc4.tar.xz urpmi-046f4775d1a5a719cdea1e4d3cbc5a0bd081bcc4.zip |
fix option parsing (to allow "urpme kernel-headers")
Diffstat (limited to 'urpme')
-rw-r--r-- | urpme | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -16,12 +16,12 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -local $_ = join '', @ARGV; +local $_ = ' ' . join(' ', @ARGV) . ' '; -/-h/ || @ARGV == 0 and die "usage: urpme [-a] [--auto] <packages...>\n"; +/ --?h/ || @ARGV == 0 and die "usage: urpme [-a] [--auto] <packages...>\n"; -$matches = /-a/; -$auto = /-auto/; +$matches = / -a /; +$auto = / --?auto /; my $DIR = "/var/lib/urpmi"; |