bugGNU Octave - Bugs: bug #53577, pkg: should not try to create...


bug #53577: pkg: should not try to create files or directories until actually needed

Submitted by:  Mike Miller <mtmiller>
Submitted on:  Fri 06 Apr 2018 08:52:01 PM UTC  
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error
Status:  Confirmed Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  dev Operating System:  GNU/Linux

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Fri 06 Apr 2018 08:52:01 PM UTC, original submission:

The pkg function creates empty directories and files in the user's home directory, or wherever pkg('prefix') and pkg('local_list') are set to, even if they are not needed.

It shouldn't be too hard to defer creating these files and directories until they are actually used by a pkg command. There is no reason for 'pkg prefix /tmp/foo' to actually create the /tmp/foo directory, until a 'pkg install' command is done later.

Similarly, it shouldn't be an immediate error if I try 'pkg prefix /root/octave', it should just store that for the next pkg command. Then when I actually try to install a package in /root/octave, it should error.

Mike Miller <mtmiller>
Project Administrator


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

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by mtmiller (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.




    No changes have been made to this item

    Back to the top

    Powered by Savane 3.3