bugGNU Octave - Bugs: bug #47491, pkg: no method to query...

 
 

bug #47491: pkg: no method to query directories where package is installed

Submitted by:  CarnĂ« Draug <carandraug>
Submitted on:  Tue 22 Mar 2016 04:10:51 AM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: NoneAssigned to: None
Originator Name: Open/Closed: Open
Release: devOperating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Wed 23 Mar 2016 06:22:44 AM UTC, comment #1:

On global packages the two dirs are not nested

/usr/lib/octave/packages/io-2.4.1/i686-pc-cygwin-api-v50+/
/usr/share/octave/packages/io-2.4.1/

They have the same separation of octave tree

/usr/lib/octave/4.0.0/exec/i686-pc-cygwin/
/usr/lib/octave/4.0.0/oct/i686-pc-cygwin/
/usr/share/octave/4.0.0/m

marco atzeri <matzeri>
Tue 22 Mar 2016 04:10:51 AM UTC, original submission:

An installed package has two directories, an arch independent directory with all the m files, and an arch dependent with all the oct files (this is a bit of a farce since the the later is nested on the first).

To find the location of the arch independent directory, one can search through "pkg list". However, there is is no way to find the other directory. The most typical solution is to use octave_config_info to deduce that directory. However, this only works because the directories are nested and requires knowledge of the internals of pkg.

Path for both directories could be returned by pkg describe (pkg list is a bit of a pain because it always returns the info for all packages in a cell array of scalar structs).

Carnë Draug <carandraug>
Project Member

 

(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

Digest:
   bug dependencies.

 

Carbon-Copy List
  • -unavailable- added by matzeri (Posted a comment)
  • -unavailable- added by carandraug (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):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 27 Mar 2016 09:05:59 PM UTCcdfDependencies-=>bugs #47332 is dependent

    Back to the top


    Powered by Savane 3.1-cleanup1