[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: |
Fri, 3 Jan 2020 10:29:00 -0500 (EST) |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; rv:52.0) Gecko/20100101 Firefox/52.0 |
Follow-up Comment #23, bug #41215 (project octave):
Hi Mike,
Whether a package is loaded is tracked in (1) the path (authorative IMO) and
stored by various pkg.m private functions into a variable
"installed_pkgs_lst".
Unfortunately the latter seems to be volatile and regenerated for almost any
pkg.m activity. AFAICS it never makes into the pkg.m function proper.
As to what needs to be done, your idea matches mine. When unloading packages
also PKG_DEL needs to be called, so my idea is to compare the path before and
after, and for all packages that were found to be loaded in the course of 'pkg
tst' just rmpath() their directories. Is that what onCleanup() does? (I don't
know its details, never used it).
Indeed installed-packages.m doesn't need to be invoked.
Packages might also manipulate the EXEC_PATH; I suppose that could be tackled
analogously?
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?41215>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #41215] Request for a "pkg test" feature, Mike Miller, 2020/01/02
- [Octave-bug-tracker] [bug #41215] Request for a "pkg test" feature,
Philip Nienhuis <=
- [Octave-bug-tracker] [bug #41215] Request for a "pkg test" feature, Mike Miller, 2020/01/03
- [Octave-bug-tracker] [bug #41215] Request for a "pkg test" feature, Mike Miller, 2020/01/03
- [Octave-bug-tracker] [bug #41215] Request for a "pkg test" feature, Philip Nienhuis, 2020/01/03
- [Octave-bug-tracker] [bug #41215] Request for a "pkg test" feature, Mike Miller, 2020/01/04
- [Octave-bug-tracker] [bug #41215] Request for a "pkg test" feature, Philip Nienhuis, 2020/01/04
- [Octave-bug-tracker] [bug #41215] Request for a "pkg test" feature, Mike Miller, 2020/01/04
- [Octave-bug-tracker] [bug #41215] Request for a "pkg test" feature, Philip Nienhuis, 2020/01/04
- [Octave-bug-tracker] [bug #41215] Request for a "pkg test" feature, Philip Nienhuis, 2020/01/04
- [Octave-bug-tracker] [bug #41215] Request for a "pkg test" feature, Mike Miller, 2020/01/04
- [Octave-bug-tracker] [bug #41215] Request for a "pkg test" feature, Philip Nienhuis, 2020/01/05