Mercurial > hg > octave-lyh
diff scripts/pkg/pkg.m @ 14472:045a5b85495d
maint: Remove redundant private function from the package manager.
* scripts/pkg/private/issuperuser.m: remove file.
* scripts/pkg/pkg.m: remove call to issuperuser.
* scripts/pkg/private/getarchprefix.m: remove call to issuperuser.
* scripts/pkg/private/create_pkgaddel.m: remove call to issuperuser.
author | Carlo de Falco <kingcrimson@tiscali.it> |
---|---|
date | Fri, 16 Mar 2012 21:14:49 +0100 |
parents | d2c095e45196 |
children | 7371e127c351 |
line wrap: on
line diff
--- a/scripts/pkg/pkg.m +++ b/scripts/pkg/pkg.m @@ -273,7 +273,9 @@ mlock (); - global_install = issuperuser (); + ## If user is superuser set global_istall to true + ## FIXME: is it OK to set this always true on windows? + global_install = ((ispc () && ! isunix ()) || (geteuid () == 0)); if (prefix == -1) if (global_install)