bugGNU Octave - Bugs: bug #30047, pkg rebuild assumes directory...

 
 

bug #30047: pkg rebuild assumes directory exists

Submitted by:  Jake <epy>
Submitted on:  Thu 03 Jun 2010 10:50:50 PM UTC  
 
Category: LibrariesSeverity: 2 - Minor
Priority: 5 - NormalItem Group: Documentation
Status: Wont FixAssigned to: None
Originator Name: Open/Closed: Closed
Release: 3.2.4Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Mon 16 Aug 2010 12:28:22 PM UTC, comment #5:

Just to make myself clear, I agree that the error message is not very helpful because an inexperienced user may have no idea why that directory is needed and what should he do to create it (install some packages).

Jaroslav Hajek <highegg>
Mon 16 Aug 2010 11:59:10 AM UTC, comment #4:

Oh, apologies, I thought was a baser error from another function, I didn't know that pkg itself checked that the directory exists. Can probably close this bug then.

Jake <epy>
Mon 16 Aug 2010 11:32:25 AM UTC, comment #3:

Well, it does indeed check, and fails out with the error you see.
You're welcome to propose a patch for a better behavior.

Jaroslav Hajek <highegg>
Mon 16 Aug 2010 11:12:49 AM UTC, comment #2:

In general, it's bad practice to make assumptions in programming. I don't think it'd be hard to check if the directory exists before trying to do something. I could probably make the change myself if it's that big of a deal.

Jake <epy>
Mon 16 Aug 2010 08:06:20 AM UTC, comment #1:

I'd say that pkg rebuild is right to assume the directory already exists. What else do you think it should do?

Jaroslav Hajek <highegg>
Thu 03 Jun 2010 10:50:50 PM UTC, original submission:

octave:5> pkg rebuild
error: couldn't read directory /home/jake/octave: No such file or directory
error: called from:
error: /usr/local/share/octave/3.2.4/m/pkg/pkg.m at line 426, column 7
error: /usr/local/share/octave/3.2.4/m/pkg/pkg.m at line 380, column 17
octave:5>

Jake <epy>

 

(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 rik5 (Updated the item)
  • -unavailable- added by highegg (Posted a comment)
  • -unavailable- added by epy (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):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 20 Aug 2010 10:00:04 PM UTCrik5StatusNone=>Wont Fix
      Open/ClosedOpen=>Closed
    Mon 16 Aug 2010 12:28:22 PM UTChigheggSeverity3 - Normal=>2 - Minor
      Item GroupIncorrect Result=>Documentation

    Back to the top


    Powered by Savane 3.1-cleanup1