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

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

[Octave-bug-tracker] [bug #41215] Request for a "pkg test" feature


From: Philip Nienhuis
Subject: [Octave-bug-tracker] [bug #41215] Request for a "pkg test" feature
Date: Sat, 28 Dec 2019 17:14:39 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 6.1; rv:52.0) Gecko/20100101 Firefox/52.0

Follow-up Comment #19, bug #41215 (project octave):

_<Loading packages>_
Yeah I thought about that early on and looked into it. An issue is that pkg.m
automatically also loads all related package dependencies.
pkg.m is smart there but when UNloading a package it does NOT take its
dependencies nor its dependers into account.
Maybe the underlying reason is that sorting out shared dependencies was too
daunting at the time pkg.m was written. Indeed the code to find & load
dependencies for just one package is already quite substantial, but for
unloading some package the same or similar code has to be run for *all* other
packages as well. For unloading several packages in one call the code would
get even more complicated. As pkg.m stands dependencies are just one-way
"linkages", if they were two-way instead things would be a lot simpler.

However for this case it could be easy (in principle) - installed_packages.m
returns a cell array with an info struct for each package incl. a "loaded"
field. Running it before and after should give the required info. But a snag
is that the results can't be fed directly to the "unload" option - there's
some processing required.

I'd suggest to first get bug #41298, bug #57489 plus this bug (all related)
"fixed" and then I'll look into the unloading stuff.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?41215>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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