summaryrefslogtreecommitdiffstats
path: root/urpme
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-10-01 16:45:34 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-10-01 16:45:34 +0000
commit046f4775d1a5a719cdea1e4d3cbc5a0bd081bcc4 (patch)
treebc34203d86a8f71d04fd13087c24154290f1979f /urpme
parentbfa2e43a1c357cdfd3b347a09c407fdfc1e4bcfc (diff)
downloadurpmi-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--urpme8
1 files changed, 4 insertions, 4 deletions
diff --git a/urpme b/urpme
index 6cda84e9..85394743 100644
--- a/urpme
+++ b/urpme
@@ -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";