summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElizabeth Fischer <elizabeth.fischer@columbia.edu>2016-08-24 15:26:19 -0400
committerElizabeth Fischer <elizabeth.fischer@columbia.edu>2016-08-24 15:26:19 -0400
commit85be3aefa7c52a63fe63e59fb636e4f041fd0567 (patch)
treeca20059ee0b85074ceb08b7eb21c6fabef990616
parent8a481e7e13c923726088a38a957f248fa69938d2 (diff)
downloadspack-85be3aefa7c52a63fe63e59fb636e4f041fd0567.tar.gz
spack-85be3aefa7c52a63fe63e59fb636e4f041fd0567.tar.bz2
spack-85be3aefa7c52a63fe63e59fb636e4f041fd0567.tar.xz
spack-85be3aefa7c52a63fe63e59fb636e4f041fd0567.zip
Put url_for_version() after versions in example.
-rw-r--r--lib/spack/docs/packaging_guide.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/spack/docs/packaging_guide.rst b/lib/spack/docs/packaging_guide.rst
index a082b85efa..3dc83f9b92 100644
--- a/lib/spack/docs/packaging_guide.rst
+++ b/lib/spack/docs/packaging_guide.rst
@@ -401,10 +401,11 @@ the ``url`` declaration. For example:
:linenos:
class Foo(Package):
+ version('8.2.1', '4136d7b4c04df68b686570afa26988ac')
+ ...
def url_for_version(self, version):
return 'http://example.com/version_%s/foo-%s.tar.gz' \
% (version, version)
- version('8.2.1', '4136d7b4c04df68b686570afa26988ac')
...
If a URL cannot be derived systematically, you can add an explicit URL