Commit Graph

18 Commits

Author SHA1 Message Date
Matthew Flatt
d8f9820ef3 raco pkg: expose, record, etc., module and dependency information
A package catalog now supplies information about a package's modules
and dependencies, so propagate it when copying a catalog, make the
information accessible via `raco pkg catalog-show', and so on.
2013-04-28 08:34:14 -06:00
Matthew Flatt
fc54bbba3c pkg: "module name resolver" and "index" -> "catalog"
This termonology change affects lots of function names from `pkg/lib'
and `pkg/db' (former `pkg/pnr-db'), and it also affects some `raco
pkg' commands.

Existing package installations that are marked as 'pnr in a
local configuration are converted automatically to 'catalog, but any
existing "indexes" configuration must be changed to "catalogs".
2013-04-23 08:38:07 -06:00
Matthew Flatt
27b7e7dc7e pkg/lib: add pkg-index-update-local' and pkg-index-suggestions-for-module'
Assembles other functions to create and consult a local database of
packages and the modules that the packages implement.
2013-04-22 10:27:02 -06:00
Matthew Flatt
ef0491be07 pkg/pnr-db: fir and document `get-module-pkgs' 2013-04-22 10:27:02 -06:00
Matthew Flatt
4cc320e49d pkg/pnr-db: add `get-pkgs-without-modules'
Also, by default, clear out information for old checksums when
setting a package's information.
2013-04-22 10:27:02 -06:00
Matthew Flatt
ccc7438d41 pkg/lib: add `#:quiet?' options and adjust printing 2013-04-22 10:27:02 -06:00
Matthew Flatt
d9649ebdc5 pkg/lib: doc correction 2013-04-19 15:30:35 -06:00
Matthew Flatt
d2b1dc6c63 raco pkg remove: only setup needed collections
That is, limit the ending `raco setup' to the same collections
as the corresponding `raco pkg install' (droppping collections
that no longer exist afterward, of course).
2013-04-16 13:17:05 -06:00
Matthew Flatt
7e91a00648 remove accidentally added files 2013-04-16 12:27:20 -06:00
Matthew Flatt
10e53e3bf4 pkg/lib: lock clean-up, and add `path->pkg'
Make the installed-package database lock reentrant, change some
functions to take the lock, and fix the documentation on when a
lock is expected to be taken outside of functions.
2013-04-16 08:58:19 -06:00
Matthew Flatt
267ac03279 pkg/lib: clean up names and package-scope parameter
More consistent exported names and parameters that better match the
three scope choices (installation, user, or shared) --- cleaning up
after myself.
2013-04-16 08:58:19 -06:00
Matthew Flatt
b47c1857b5 raco pkg: support platform-specific package dependencies
A platform-specific dependency is useful for triggering
installation of a platform-specific library only on the
platform where its needed.
2013-04-15 06:21:49 -06:00
Matthew Flatt
37aa091e1c raco pkg: add support for local package-index databases
Adds `pkg/pnr-db', `raco pkg index-copy', and `raco pkg index-show'.

Includes tools to build a database of modules that are supplied by
packages, which will be useful for a tool to recommend package
installs when a module is not found.

Also, document `pkg/lib' and add extra helper functions
for getting package information from a package name resolver.
2013-04-15 06:21:49 -06:00
Matthew Flatt
ef6639f4c7 pkg docs: add a tag for the "how to develop" section
Merge to v5.3.4
2013-04-11 09:54:17 -06:00
Matthew Flatt
8d7c231cd8 doc clarification 2013-04-09 10:55:21 -06:00
Jay McCarthy
c396d1e435 Adding documentation notes re Eli 2013-04-08 06:41:14 -06:00
Jay McCarthy
06767ab8c3 Fixes PR13655 2013-04-06 15:07:06 -06:00
Jay McCarthy
9f337c632a Removing the planet2 name from the code 2013-03-22 07:45:14 -06:00