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

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

[Octave-bug-tracker] [bug #59821] "pkg update" on windows unexpectedly i


From: Nicholas Jankowski
Subject: [Octave-bug-tracker] [bug #59821] "pkg update" on windows unexpectedly installs packages to local
Date: Sun, 9 May 2021 21:50:53 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36

Follow-up Comment #30, bug #59821 (project octave):

ok, last part first - pkg update ignores the -global/local flag. So in the
current state that part of the revised help text is correct. 

Just double checked this since some other bugs were fixed.  the global_install
variable is not persistent.  so if you call 'pkg update -global', it will set
global_install = true while it parses the update list, but then it calls 'pkg
install -forge <pkgname>' for each item on the list.  it does not pass
-global/-local, so when stepping through each install it reruns the superuser
check each time, and sets it accordingly.  it would need some way of passing
the global/local option to each pkg install call for it to carry through.  

it didn't look like too hard a fix, so I was planning on making a 'pkg updaet
ignores -local/global option' bug report and playing with ways for it to pass
that option, and then adjusting the docstring accordingly just hadn't gotten
there yet.



    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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