Commit 3150547f authored by Luke Lau's avatar Luke Lau Committed by Oleg Grenrus

Give a small example of a file+noindex:// repo layout

parent 68320f16
...@@ -155,6 +155,21 @@ repository. ...@@ -155,6 +155,21 @@ repository.
``package-name-version.tar.gz`` files in the directory, and will use optional ``package-name-version.tar.gz`` files in the directory, and will use optional
corresponding ``package-name-version.cabal`` files as new revisions. corresponding ``package-name-version.cabal`` files as new revisions.
For example, if ``/absolute/path/to/directory`` looks like
::
/absolute/path/to/directory/
foo-0.1.0.0.tar.gz
bar-0.2.0.0.tar.gz
bar-0.2.0.0.cabal
then ``cabal`` will create an index with two packages:
- ``foo-0.1.0.0`` using the source and ``.cabal`` file inside
``foo-0.1.0.0.tar.gz``
- ``bar-0.2.0.0`` using the source inside ``bar-0.2.0.0.tar.gz``
and ``bar-0.2.0.0.cabal``
The index is cached inside the given directory. If the directory is not The index is cached inside the given directory. If the directory is not
writable, you can append ``#shared-cache`` fragment to the URI, writable, you can append ``#shared-cache`` fragment to the URI,
then the cache will be stored inside the :cfg-field:`remote-repo-cache` directory. then the cache will be stored inside the :cfg-field:`remote-repo-cache` directory.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment