[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #60574] pkg update ignores -global / -local op
From: |
Nicholas Jankowski |
Subject: |
[Octave-bug-tracker] [bug #60574] pkg update ignores -global / -local options |
Date: |
Mon, 10 May 2021 14:00:00 -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 |
URL:
<https://savannah.gnu.org/bugs/?60574>
Summary: pkg update ignores -global / -local options
Project: GNU Octave
Submitted by: nrjank
Submitted on: Mon 10 May 2021 01:59:58 PM EDT
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name: Nicholas Jankowski
Originator Email:
Open/Closed: Open
Release: dev
Discussion Lock: Any
Operating System: Any
_______________________________________________________
Details:
as discussed in bug #59821, pkg update accepts a -global or -local option, but
after building the list of packages to update fails to pass the option to 'pkg
install <pkgname>' as it works through the list. Thus, no matter whether the
-global or -local option was specified, pkg will re-run the check for
administrative privileges and the install will take place according to the
default based on that check.
just to verify in octave 6.2.1 (), for a globally installed audio package (on
windows) using a user-level octave instance with write access to the global
package location:
>> __is_elevated_process__
ans = 0
>> pkg list audio
Package Name | Version | Installation directory
--------------+---------+-----------------------
audio | 2.0.1 | ...\mingw64\share\octave\packages\audio-2.0.1
>> pkg update -global audio
**some install warnings about help text**
For information about changes from previous versions of the audio package, run
'news audio'.
>> pkg list audio
Package Name | Version | Installation directory
--------------+---------+-----------------------
audio | 2.0.2 | C:\Users\nicholas.jankowski\octave\audio-2.0.2
stepping through pkg in debug mode, the option first successfully sets
global_install = true. however, it then just calls pkg install -forge audio,
and in that case the __is_elevated_process__ = 0 sets global_install = false
for the installation.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?60574>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #60574] pkg update ignores -global / -local options,
Nicholas Jankowski <=