diff options
author | Giuseppe Iuculano <giuseppe@iuculano.it> | 2010-04-02 14:03:25 +0000 |
---|---|---|
committer | Giuseppe Iuculano <giuseppe@iuculano.it> | 2010-04-02 14:03:25 +0000 |
commit | ba79b670ad6c0557672efb31f318a05b5865db74 (patch) | |
tree | 0a62a43b5d1744ab25c429e8c1d09b2288306fc6 /bin | |
parent | cfcc89ceea329de7bcbf9697f041019ce963008d (diff) |
bin/dsa2list: search also the line "Debian (<release>)" to determine the release
git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@14375 e39458fd-73e7-0310-bf30-c45bca0a0e42
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/dsa2list | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/dsa2list b/bin/dsa2list index de11e70128..093b03c2a4 100755 --- a/bin/dsa2list +++ b/bin/dsa2list @@ -64,6 +64,7 @@ re_date = re.compile(r'^([A-Z][a-z][a-z])[a-z]* (\d+)[a-z]*, (\d+)\s+http://.*') re_cve = re.compile('(CVE-\d{4}-\d{4})') release_headline_re = re.compile( r'^Debian GNU/Linux [0-9.]+ (?:\(|alias) ([a-z]+).*') +release_headline_re_s = re.compile(r'^Debian \((\w+)\)') dscurl_re = re.compile(r'^\s*(http://\S+\.dsc).*') # Variants used by "dak new-security-install" @@ -98,6 +99,12 @@ def process_file(file): if match: (release,) = match.groups() continue + else: + match = release_headline_re_s.match(line) + if match: + (release,) = match.groups() + release = release_map[release] + continue match = dscurl_re.match(line) if match: |