2
0
forked from pool/nodejs-common

Add fallback for update-alterntatives symlinks

OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-common?expand=0&rev=46
This commit is contained in:
Adam Majer 2021-06-11 11:27:52 +00:00 committed by Git OBS Bridge
parent d5d95bd2a7
commit da73788f4a

5
node.c
View File

@ -70,7 +70,10 @@ int main(int argc, char *argv[])
// if we want default version and not using update-alternatives
if (version == default_version)
{
return libalts_exec_default(argv);
// should not return, and if it does, it probably means
// we should fall back to using node-default fallback.
libalts_exec_default(argv);
fputs("Falling back to using -default symlink.\n", stderr);
}
#endif