diff options
author | Luis R. Rodriguez <mcgrof@do-not-panic.com> | 2013-01-10 18:08:39 -0800 |
---|---|---|
committer | Luis R. Rodriguez <mcgrof@do-not-panic.com> | 2013-01-10 18:08:39 -0800 |
commit | 968541067e333c6b297e9f49666a9d87ac81a477 (patch) | |
tree | 47a7e58916a804662397ad0d4e97d0c66c7c20ad | |
parent | 40b0b93ec09ec3e8aec498a2ae2e5619cd947578 (diff) | |
download | rel-html-968541067e333c6b297e9f49666a9d87ac81a477.tar.gz |
rel-html: process stable mod releases
This processes modifications to stable releases
following the legend used currently in compat-drivers:
* -u - integrates a non-upstream driver in a unified driver format
* -s - get and apply pending-stable/ from linux-next.git
* -n - apply the patches linux-next-cherry-picks directory
* -p - apply the patches on the linux-next-pending directory
* -c - apply the patches on the crap directory
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
-rwxr-xr-x | rel-html.py | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/rel-html.py b/rel-html.py index d1df5cc..1f446cf 100755 --- a/rel-html.py +++ b/rel-html.py @@ -23,6 +23,7 @@ import urllib import ConfigParser import re, sys import os, getopt +from operator import itemgetter def rel_html_license_verbose(): print '-----------------------------------------------------------------------' @@ -213,6 +214,50 @@ class index_parser(HTMLParser): verified = False) self.rel_html_rels.append(rel_next) + # Stable release mods + for r in self.rel_html_rels: + if (self.next_rel_date != '' and + self.next_rel_date not in value and + 'tar.bz2.sign' not in value and + 'tar.bz2' in value and + r.get('version') in value): + m = re.match(r'' + self.rel_html_proj + '-+' \ + "v*(?P<VERSION>\w+.)" \ + "(?P<PATCHLEVEL>\w+.*)" \ + "(?P<SUBLEVEL>\w*)" \ + "(?P<EXTRAVERSION>[.-]\w*)" \ + "(?P<RELMOD>[-][usnpc]+)", \ + value) + if not m: + continue + rel_specifics = m.groupdict() + + rel_mod = rel_specifics['RELMOD'] + if (rel_mod == ''): + continue + rel_name = r.get('rel') + rel_mod + + rel_s = dict(version=r.get('version') + rel_mod, + rel=rel_name, + url='', + maintained = True, + longterm = False, + next_rel = False, + tarball = rel_name + '.tar.bz2', + tarball_exists = True, + signed_tarball = rel_name + '.tar.sign', + signed_tarball_exists = False, + changelog = '', + changelog_url = '', + changelog_exists = False, + changelog_required = False, + signed_changelog = '', + signed_changelog_exists = False, + verified = False) + idx = map(itemgetter('version'), self.rel_html_rels).index(r.get('version')) + self.rel_html_rels.insert(idx+1, rel_s) + break + for r in self.rel_html_rels: # sys.stdout.write('%s<br>\n' % value) if r.get('version') in value: |