Mercurial > hg > octave-terminal
changeset 10959:4f46520e2103
relax check in get_forge_pkg
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Sat, 11 Sep 2010 13:21:17 +0200 |
parents | 80cf5bf4232c |
children | 409ceee18acc |
files | scripts/ChangeLog scripts/pkg/get_forge_pkg.m |
diffstat | 2 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2010-09-11 Jaroslav Hajek <highegg@gmail.com> + + * pkg/get_forge_pkg.m: Allow underscores in pkg names. + 2010-09-08 Ben Abbott <bpabbott@mac.com> * plot/__fltk_print__.m, plot/private/__ghostscript__.m,
--- a/scripts/pkg/get_forge_pkg.m +++ b/scripts/pkg/get_forge_pkg.m @@ -29,7 +29,7 @@ ## Verify that name is valid. if (! (ischar (name) && rows (name) == 1 && ndims (name) == 2)) error ("get_forge_pkg: package name must be a string"); - elseif (! all (isalnum (name) | name == "-" | name == ".")) + elseif (! all (isalnum (name) | name == "-" | name == "." | name == "_")) error ("get_forge_pkg: invalid package name: %s", name); endif