bugGNU Octave - Bugs: bug #57825, pkg: install fails when current...

 
 

bug #57825: pkg: install fails when current directory is not writeable: urlwrite: unable to open file

Submitter:  Mike Miller <mtmiller>
Submitted:  Sat 15 Feb 2020 08:10:28 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 16 Feb 2020 09:17:03 PM UTC, comment #1: 

This was an easy fix, pushed on the default branch for Octave 6

https://hg.savannah.gnu.org/hgweb/octave/rev/7a22be5833c7

Mike Miller <mtmiller>
Group Member
Sat 15 Feb 2020 08:10:28 PM UTC, original submission:  

Running 'pkg install -forge' on any package, when the current directory is not writeable by the user, raises an unexpected error


>> pkg install -forge generate_html
error: urlwrite: unable to open file
error: called from
    pkg at line 439 column 25


This is presumably because the code to download a package from Octave Forge is trying to write to the current directory.

Surprisingly, 'pkg install https://...' does work, it seems to be able to download the URL to a file in a temporary directory instead of the current directory.

Mike Miller <mtmiller>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only group members can vote.

 

Follow 3 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2020-02-16 mtmiller StatusNone Fixed
    Open/ClosedOpen Closed
2020-02-15 mtmiller Carbon-CopyRemoved 80942 -

Back to the top

Powered by Savane 3.13-02a9.
Corresponding source code