[Git][security-tracker-team/security-tracker][master] 7 commits: show-debsecan: port to Python 3
Emilio Pozuelo Monfort
pochu at debian.org
Thu Aug 13 09:38:41 BST 2020
Emilio Pozuelo Monfort pushed to branch master at Debian Security Tracker / security-tracker
Commits:
4b66a251 by Emilio Pozuelo Monfort at 2020-08-13T10:21:40+02:00
show-debsecan: port to Python 3
- - - - -
d2aa6560 by Emilio Pozuelo Monfort at 2020-08-13T10:21:40+02:00
show-debsecan: strip lines before printing them
To avoid double newlines.
- - - - -
2d8cd529 by Emilio Pozuelo Monfort at 2020-08-13T10:21:40+02:00
support-ended: add deb11 to the releases list
The file exists in debian-security-support so we need to have it
here too or we will crash.
- - - - -
69963007 by Emilio Pozuelo Monfort at 2020-08-13T10:21:40+02:00
support-ended: switch to Python 3
- - - - -
e803c25d by Emilio Pozuelo Monfort at 2020-08-13T10:21:40+02:00
support-ended: encode file as UTF-8
- - - - -
9208b7e0 by Emilio Pozuelo Monfort at 2020-08-13T10:21:40+02:00
lts-needs-forward-port: port to Python 3
- - - - -
a725d894 by Emilio Pozuelo Monfort at 2020-08-13T10:21:40+02:00
inject-embedded-code-copies: switch to Python 3
- - - - -
4 changed files:
- bin/inject-embedded-code-copies
- bin/lts-needs-forward-port.py
- bin/show-debsecan
- bin/support-ended.py
Changes:
=====================================
bin/inject-embedded-code-copies
=====================================
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
#
# inject embedded code copy data into the secure-testing cve list
#
=====================================
bin/lts-needs-forward-port.py
=====================================
@@ -1,5 +1,4 @@
-#!/usr/bin/python
-# vim: set fileencoding=utf-8 :
+#!/usr/bin/python3
#
# Copyright 2016 Guido Günther <agx at sigxcpu.org>
#
=====================================
bin/show-debsecan
=====================================
@@ -1,10 +1,10 @@
-#!/usr/bin/python
+#!/usr/bin/python3
import sys
import apsw
import base64
import zlib
-from cStringIO import StringIO
+from io import StringIO
if len(sys.argv) not in (2, 3):
print("usage: show-debsecan DATABASE-PATH [BLOB-NAME]")
@@ -25,7 +25,7 @@ else: # len(sys.argv) == 3
data = zlib.decompress(data)
# The following has been taken from a debsecan test case.
- data = StringIO(data)
+ data = StringIO(data.decode('utf-8'))
if data.readline() != "VERSION 1\n":
sys.stderr.write("error: server sends data in unknown format\n")
@@ -50,6 +50,6 @@ else: # len(sys.argv) == 3
print("%s,%s,%s" % (package, vuln, rest))
for line in data:
- print(line)
+ print(line.strip())
db.close()
=====================================
bin/support-ended.py
=====================================
@@ -1,7 +1,6 @@
-#!/usr/bin/python
-# vim: set fileencoding=utf-8 :
+#!/usr/bin/python3
#
-# Copyright 2016 Guido Gnther <agx at sigxcpu.org>
+# Copyright 2016 Guido Günther <agx at sigxcpu.org>
#
# This file is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -33,6 +32,7 @@ release_mapping = {
'deb9': ('stretch', '2022-06-30'),
# End date not yet fixed
'deb10': ('buster', None),
+ 'deb11': ('bullseye', None),
}
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/-/compare/8fe3d28a387d688067414ae14e2f44a11003dea1...a725d894a58344f422a5f8b004fab3b427506aec
--
View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/-/compare/8fe3d28a387d688067414ae14e2f44a11003dea1...a725d894a58344f422a5f8b004fab3b427506aec
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-security-tracker-commits/attachments/20200813/b68bb279/attachment-0001.html>
More information about the debian-security-tracker-commits
mailing list