bugGNU Octave - Bugs: bug #57489, pkg.m doesn't convey multiple...

 
 

bug #57489: pkg.m doesn't convey multiple package names as argument to all actions

Submitter:  Philip Nienhuis <philipnienhuis>
Submitted:  Fri 27 Dec 2019 09:33:41 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Philip Nienhuis Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 30 Dec 2019 08:18:36 PM UTC, comment #3: 

Thanks for review & pushing.

Philip Nienhuis <philipnienhuis>
Group Member
Mon 30 Dec 2019 06:07:26 PM UTC, comment #2: 

I completed the changeset message and checked it in under your credentials here: https://hg.savannah.gnu.org/hgweb/octave/rev/b9710ee393ac.

Marking as fixed and closing report.

Rik <rik5>
Group administrator
Fri 27 Dec 2019 09:36:24 PM UTC, comment #1: 

cset attached.

(file #48122)

Philip Nienhuis <philipnienhuis>
Group Member
Fri 27 Dec 2019 09:33:41 PM UTC, original submission:  

Steps to reproduce:
1. Be sure you have multiple packages installed, e.g., a, b, c, ...
2. type: pkg list a b
Result:
pkg only lists package 'a'
Expected result:
pkg lists all requested packages.

>> pkg list
Package Name  | Version | Installation directory
--------------+---------+-----------------------
    geometry  |   4.0.0 | /home/philip/octave/geometry-4.0.0
          io  |  2.4.13 | /home/philip/octave/io-2.4.13
     mapping  |   1.4.0 | /home/philip/octave/mapping-1.4.0
     matgeom  |   1.0.0 | /home/philip/octave/matgeom-1.0.0
     octproj  |   1.1.5 | /home/philip/octave/octproj-1.1.5
>> pkg list io geometry
Package Name  | Version | Installation directory
--------------+---------+-----------------------
          io  |  2.4.13 | /home/philip/octave/io-2.4.13
>> pkg list geometry io
Package Name  | Version | Installation directory
--------------+---------+-----------------------
    geometry  |   4.0.0 | /home/philip/octave/geometry-4.0.0


E.g., 'pkg unload', 'pkg install' etc. do it right as they use a different mechanism to process the list of user-specified packages and don't rely on the output of installed_packages.m

The culprit is in private function installed_packages.m.

I'll upload a cset as soon as I have a bug number.

Philip Nienhuis <philipnienhuis>
Group Member

 

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

Attach Files:
   
   
Comment:
   

Attached Files

 

Depends on the following items: None found

Digest:
   bug dependencies.

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by philipnienhuis (Submitted the item)
  •  

    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 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-12-30 rik5 StatusPatch Submitted Fixed
        Open/ClosedOpen Closed
        Release5.1.0 dev
    2019-12-29 philipnienhuis StatusNone Patch Submitted
    2019-12-27 philipnienhuis Dependencies- bugs #41215 is dependent
    2019-12-27 philipnienhuis Summarypkg,m doesn't convey multiple package names as argument to all actions pkg.m doesn't convey multiple package names as argument to all actions
    2019-12-27 philipnienhuis Attached File- Added bug_57489_pkg_multiple_names_actions.cset, #48122

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code