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

Submitted by:  Philip Nienhuis <philipnienhuis>
Submitted on:  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

Add a New Comment (Rich Markup)
   

You are not logged in

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

 

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

Thanks for review & pushing.

Philip Nienhuis <philipnienhuis>
Project 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>
Project Administrator
Fri 27 Dec 2019 09:36:24 PM UTC, comment #1: 

cset attached.

(file #48122)

Philip Nienhuis <philipnienhuis>
Project 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>
Project 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)
  •  

    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.

     

     

     

    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.5