octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #48151] pkg update - error if packages are spe


From: Nicholas Jankowski
Subject: [Octave-bug-tracker] [bug #48151] pkg update - error if packages are specified
Date: Mon, 6 Jun 2016 17:57:17 +0000 (UTC)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:46.0) Gecko/20100101 Firefox/46.0

URL:
  <http://savannah.gnu.org/bugs/?48151>

                 Summary: pkg update - error if packages are specified
                 Project: GNU Octave
            Submitted by: nrjank
            Submitted on: Mon 06 Jun 2016 05:57:14 PM GMT
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Other
                  Status: None
             Assigned to: None
         Originator Name: Nicholas Jankowski
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

first noticed using Octave 4.0.2, Windows 32bit, zip-file install.  

"pkg update _pkgname1_ _pkgname2_ ..." produced an error because of
'installed_pkgs_list' not being defined. Saw that the dev branch had a fix for
this and a following line defining update_lst, but searching failed to find me
a bug/patch tracker related to these fixes.  The dev version still gives the
following error:


>> pkg update control signal
error: cell cannot be indexed with .


the line of interest is:

 installed_names = {installed_pkgs_lst.name}';

but installed_pkgs_lst is a cell array of structs, so .name errors out. the
following line does work:


#installed_names = cellfun (@(idx) idx.name, installed_pkgs_lst,
'UniformOutput', false);


With this running the pkg command above works. Will upload a patch for review
to implement this fix.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?48151>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]