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

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

[Octave-bug-tracker] [bug #51632] MS Windows portable (i.e. zip) version


From: Nicholas Jankowski
Subject: [Octave-bug-tracker] [bug #51632] MS Windows portable (i.e. zip) version cannot find pre-installed packages, needs pkg rebuild, not mentioned at first run
Date: Wed, 2 Aug 2017 14:17:10 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0

Follow-up Comment #16, bug #51632 (project octave):

comment on the maintainers list mentioned that the code would throw an error
every time Octave started if it was on a system where the user didn't have
write access to the normal global_list location. Suggested using a try/catch
to hide the error.


if (exist(pkg("global_list"),"file") == 0)
  try 
    pkg rebuild;
  catch
  end_try_catch
endif


or the ultracompact 1 line version:



if (exist(pkg("global_list"),"file") == 0), try, pkg
rebuild, catch, end_try_catch, endif



looks like this could just be added to the octaverc sitting in mxe-octave. But
that would force this change on everyone to fix a problem only occurring in
the Windows zip-distribution. Maybe a line could be added to the
binary-dist-rules.mk file to append that line(s) to the octaverc file prior to
zipping? Or maybe there's a better way to accomplish that?

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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