Mercurial > octave
comparison scripts/pkg/pkg.m @ 28500:9e9ddc90e88a
pkg.m: Handle package names in a case insensitive manner (bug #57735).
* pkg.m: Use tolower() on input package names so that all comparisons will
be case insensitive.
author | Rik <rik@octave.org> |
---|---|
date | Tue, 23 Jun 2020 11:55:11 -0700 |
parents | 8b71a6cec9bf |
children | e5ced6bd5ac0 |
comparison
equal
deleted
inserted
replaced
28499:7a640885171a | 28500:9e9ddc90e88a |
---|---|
454 if (! strcmp (action, "none")) | 454 if (! strcmp (action, "none")) |
455 error ("pkg: more than one action specified"); | 455 error ("pkg: more than one action specified"); |
456 endif | 456 endif |
457 action = varargin{i}; | 457 action = varargin{i}; |
458 otherwise | 458 otherwise |
459 files{end+1} = varargin{i}; | 459 files{end+1} = tolower (varargin{i}); |
460 endswitch | 460 endswitch |
461 endfor | 461 endfor |
462 | 462 |
463 if (octave_forge && ! any (strcmp (action, {"install", "list"}))) | 463 if (octave_forge && ! any (strcmp (action, {"install", "list"}))) |
464 error ("pkg: '-forge' can only be used with install or list"); | 464 error ("pkg: '-forge' can only be used with install or list"); |