octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #58225] Installing package fails when package


From: Philip Nienhuis
Subject: [Octave-bug-tracker] [bug #58225] Installing package fails when package was already installed globally
Date: Tue, 28 Apr 2020 05:31:31 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 6.1; rv:52.0) Gecko/20100101 Firefox/52.0 Lightning/5.8.1

Follow-up Comment #6, bug #58225 (project octave):

Indeed that is the obvious workaround.

Last weekend (while sailing) I was thinking over this a bit.

This is also going to hit unwary users when doing a "pkg upgrade".

Most users have little notion of the difference between local and global
package installations. That subject is only briefly touched in pkg.m's help.
So what might be needed is (IMO):
* a more general introduction in pkg.m's texinfo about what pkg.m does, and
that, and why, there is a difference between local and global package
installations
* catching if Octave is run with or without admin credentials
* when installing a package, find out if there is already a global
installation of it
* if yes:
** if Octave runs with admin privs, install/upgrade the package right away
** if Octave runs w/o, we have to choose [1]:
*** proceed silently with a local installation (catch the global uninstall
process), knowing that a local installation shadows a global one. So we'd only
need to insert the "-local" flag somewhere so that pkg. explicitly does a
local install.
*** same, but emit a suitable warning.
*** emit an error and abort; explain that a "-local" flag is explicitly
required.
* if no:
** leave the process as it is now (undefined; sometimes a global package is
replaced, sometimes a newer package is installed locally)
** depending on admin privs, install local or global.

 

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?58225>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]