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 FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Unexpected Error
Status: ConfirmedAssigned to: None
Originator Name: Open/Closed: Open
Release: devOperating 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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

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

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup1