summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2010-05-12 00:51:04 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2010-05-12 00:51:04 +0200
commitbb32119919027cdaf0426b0c76cb82545a5680c4 (patch)
tree624ea76b77ae85b261da6526840d45e8328b21d5
parentf1dd0bc2eeea1819b572794424ef3b26b060acff (diff)
downloadweb-bb32119919027cdaf0426b0c76cb82545a5680c4.tar.gz
web-bb32119919027cdaf0426b0c76cb82545a5680c4.tar.bz2
web-bb32119919027cdaf0426b0c76cb82545a5680c4.zip
Update page -- esp. mention the new version; install mechanisms to update the current version easily
-rw-r--r--helper.py7
-rw-r--r--templates/pages/changelog.mako2
-rw-r--r--templates/pages/download.mako14
-rw-r--r--templates/pages/index.mako7
-rw-r--r--versions1
5 files changed, 26 insertions, 5 deletions
diff --git a/helper.py b/helper.py
index 866e93d..5c7425a 100644
--- a/helper.py
+++ b/helper.py
@@ -3,12 +3,13 @@ import os
import Image
import markdown
import cStringIO
-
+from collections import namedtuple
opj = os.path.join
# some nice imports
import itertools as it
+Version = namedtuple('Version', 'current last')
APPDIR = os.path.dirname(os.path.abspath(__file__))
def appdir (*args):
@@ -17,6 +18,10 @@ def appdir (*args):
def url (path):
return "\"%s\"" % web.url(path)
+def versions ():
+ with open(appdir("versions")) as f:
+ return Version._make(f.read().split())
+
def toJS (ls):
ls = ("'%s':'%s'" % x for x in ls)
return "{ %s }" % ", ".join(ls)
diff --git a/templates/pages/changelog.mako b/templates/pages/changelog.mako
index b76cabe..472ca61 100644
--- a/templates/pages/changelog.mako
+++ b/templates/pages/changelog.mako
@@ -9,7 +9,7 @@
This is a condensed changelog (starting with version <a href="#0.8.5">0.8.5</a>) for portato. The complete one can be found in the <a href="http://git.necoro.eu/portato.git/tree/doc/NEWS">sources</a>.
</p>
- <p> <strong>Note:</strong> Releases with a forth version number (e.g. <em>0.9.0.2</em>) is a bugfix release and therefore not mentioned extra. From <a href="#0.10">0.10</a> onwards, the third part is omitted. This means, that now everything with a third number is a bugfix release.
+ <p> <strong>Note:</strong> Releases with a forth version number (e.g. <em>0.9.0.2</em>) are bugfix releasse and therefore not mentioned extra. From <a href="#0.10">0.10</a> onwards, the third part is omitted. This means, that now everything with a third number is a bugfix release.
</p>
</%def>
diff --git a/templates/pages/download.mako b/templates/pages/download.mako
index 349c0fc..757fe34 100644
--- a/templates/pages/download.mako
+++ b/templates/pages/download.mako
@@ -2,9 +2,19 @@
title = "Download"
%>
<%inherit file="/page.mako" />
+<% v = h.versions().current %>
+
<p>
- In most cases, it should be ok to install portato via emerge. But if you want to download it by hand nevertheless, you can do it <a href="http://sourceforge.net/projects/portato/files/">via sourceforge.net</a>.
+ <span class="hstart">» </span><strong>Current version:</strong> ${v} (<a href=${"/changelog#" + v | url}>Changelog</a>)
</p>
<p>
- A condensed changelog is available <a href=${"/changelog" | url}>here</a>.
+ In most cases, it should be ok to install portato via emerge. But if you want to download it by hand nevertheless, you can do it <a href="https://sourceforge.net/projects/portato/files/Portato/${v}/portato-${v}.tar.gz/download">via sourceforge.net</a>.
</p>
+
+<p>
+ Note though, that the release bundles are not created with a local installation in mind, but shaped in a way that it is easy for portage to handle. Thus you might encounter difficulties. If you <em>really</em> want to have a local version, consider using
+</p>
+<ul>
+ <li><a href="https://git.necoro.eu/portato.git/snapshot/portato-${v}.tar.gz">snapshots of the current version tag</a></li>
+ <li>local git checkout as described in the <a href=${"/development" | url}>development section</a>.</li>
+</ul>
diff --git a/templates/pages/index.mako b/templates/pages/index.mako
index f12a77f..02d4a48 100644
--- a/templates/pages/index.mako
+++ b/templates/pages/index.mako
@@ -6,11 +6,16 @@
<p>
Portato is a GUI for the package manager of <a href="http://www.gentoo.org">Gentoo</a> and <a href="http://www.sabayonlinux.org">Sabayon</a> - Portage. It is mostly written in <a href="http://www.python.org">Python</a> for the GTK+-frontend, which is used in most Linux desktop environments (except KDE).
</p>
-
<p>
As the current portage development is quite fast-paced, Portato is not able to keep step. Thus it might be that the released version(s) do not behave as expected. In these cases also try the <a href=${"/development" | url}>development version</a>.
</p>
+<%self:h2>Current version</%self:h2>
+<p>
+ <% v = h.versions() %>
+ The actual version of portato is <strong>${v.current}</strong> -- see <a href=${"/changelog#%s" % v.current | url}>the changelog</a> for why you should consider updating. Note that versions older than the previous one (${v.last}) are not supported at all.
+</p>
+
<%self:h2>Installation</%self:h2>
<p>
Portato is delivered with the standard portage tree and can be installed using <code>emerge portato</code>.
diff --git a/versions b/versions
new file mode 100644
index 0000000..5690e2b
--- /dev/null
+++ b/versions
@@ -0,0 +1 @@
+0.14 0.13.x