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
1ef1d256f7 raco pkg: don't consult GitHub if checksum is given
Also, more consistently propagate a given checksum, which can
happen more through the `pkg-install' export from `pkg/lib'
than through `raco pkg'.

Also, report to the user when consulting GitHub or downloading
a checksum.
2013-04-26 16:28:28 -06:00
Matthew Flatt
9d43fcad3e raco pkg: GitHub API now requires a User-Agent
Merge to v5.3.4
2013-04-26 07:33:21 -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
1fa80c84e0 pkg/lib: fix `get-pkg-content'
When discovering modules, handle the case that a directory
name doesn't work as a collection name.
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
2d6fd46720 raco pkg: report when downloading 2013-04-20 09:38:56 -06:00
Matthew Flatt
71aa65c33c pkg/lib: fix `installed-pkg-names' 2013-04-19 15:30:35 -06:00
Matthew Flatt
17f2822a63 remove debugging `log-error' 2013-04-17 12:28:49 -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
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
Jay McCarthy
259621f7cb Fixing PR13657 2013-04-06 15:07:07 -06:00
Robby Findler
e3b580c200 add installed-pkg-names 2013-04-05 10:22:33 -05:00
Jay McCarthy
9f337c632a Removing the planet2 name from the code 2013-03-22 07:45:14 -06:00