Add support for oldoldstable in the codename/version/date macros

parent 77c55b6e
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
set -e set -e
mkdir -p /srv/wiki.debian.org/var/apt mkdir -p /srv/wiki.debian.org/var/apt
cd /srv/wiki.debian.org/var/apt cd /srv/wiki.debian.org/var/apt
for release in oldstable stable testing unstable experimental ; do for release in oldoldstable oldstable stable testing unstable experimental ; do
wget -qO $release.tmp http://httpredir.debian.org/debian/dists/$release/Release || continue wget -qO $release.tmp http://httpredir.debian.org/debian/dists/$release/Release || continue
sed -n 's/^Date: //p' $release.tmp | date --file=- +%F > $release.date.tmp sed -n 's/^Date: //p' $release.tmp | date --file=- +%F > $release.date.tmp
sed -n 's/^Version: //p' $release.tmp > $release.version.tmp sed -n 's/^Version: //p' $release.tmp > $release.version.tmp
......
from MoinMoin import wikiutil from MoinMoin import wikiutil
suites = set(['oldstable', 'stable', 'testing', 'unstable', 'experimental']) suites = set(['oldoldstable', 'oldstable', 'stable', 'testing', 'unstable', 'experimental'])
def execute(macro, suite): def execute(macro, suite):
if suite in suites: if suite in suites:
......
from MoinMoin import wikiutil from MoinMoin import wikiutil
suites = set(['oldstable', 'stable', 'testing', 'unstable', 'experimental']) suites = set(['oldoldstable', 'oldstable', 'stable', 'testing', 'unstable', 'experimental'])
def execute(macro, suite): def execute(macro, suite):
if suite in suites: if suite in suites:
......
from MoinMoin import wikiutil from MoinMoin import wikiutil
suites = set(['oldstable', 'stable', 'testing', 'unstable', 'experimental']) suites = set(['oldoldstable', 'oldstable', 'stable', 'testing', 'unstable', 'experimental'])
def execute(macro, suite): def execute(macro, suite):
if suite in suites: if suite in suites:
......
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