From 85be3aefa7c52a63fe63e59fb636e4f041fd0567 Mon Sep 17 00:00:00 2001 From: Elizabeth Fischer Date: Wed, 24 Aug 2016 15:26:19 -0400 Subject: Put url_for_version() after versions in example. --- lib/spack/docs/packaging_guide.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-70-g09d2