Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | secmaster.py: move to bin/ | Emilio Pozuelo Monfort | 2020-08-13 | 1 | -59/+0 | |
| | ||||||
* | web_support: fix memory leak with Python 3 | Emilio Pozuelo Monfort | 2020-08-11 | 1 | -1/+1 | |
| | | | | | | | ThreadingMixIn keeps a list of all non-deamon threads since Python 3.7, which prevents all the resources from being freed. Daemonize them so that we don't keep their resources forever, eventually causing OOM. | |||||
* | security_db: don't encode debsecan data | Emilio Pozuelo Monfort | 2020-08-06 | 1 | -1/+1 | |
| | | | | It's already a bytes object. | |||||
* | security_db: remove leftover print statement | Emilio Pozuelo Monfort | 2020-08-06 | 1 | -1/+0 | |
| | ||||||
* | web_support: make_list requires a list argument | Emilio Pozuelo Monfort | 2020-08-06 | 1 | -1/+1 | |
| | ||||||
* | test_parsers.py: compare using isinstance | Emilio Pozuelo Monfort | 2020-08-06 | 1 | -1/+1 | |
| | ||||||
* | sectracker.parsers: fix intern under py3 | Emilio Pozuelo Monfort | 2020-08-05 | 1 | -0/+5 | |
| | ||||||
* | sectracker.repo: use standard json module | Emilio Pozuelo Monfort | 2020-08-05 | 1 | -2/+2 | |
| | ||||||
* | sectracker.xpickle: open file in binary mode | Emilio Pozuelo Monfort | 2020-08-05 | 1 | -1/+1 | |
| | ||||||
* | security_db: don't use cmp to compare versions | Emilio Pozuelo Monfort | 2020-08-05 | 1 | -4/+2 | |
| | ||||||
* | sectracker.diagnostics: use isstring for py3 compatibility | Emilio Pozuelo Monfort | 2020-08-05 | 1 | -1/+3 | |
| | ||||||
* | Revert "secmaster.py: update security-master hostname" | Emilio Pozuelo Monfort | 2020-08-04 | 1 | -1/+1 | |
| | | | | This reverts commit 0b98406d0c7c6adddf23b22609a881ea3d39ebec. | |||||
* | secmaster.py: update security-master hostname | Emilio Pozuelo Monfort | 2020-08-04 | 1 | -1/+1 | |
| | ||||||
* | security_db: add missing import | Emilio Pozuelo Monfort | 2020-07-29 | 1 | -0/+2 | |
| | ||||||
* | debian_support: remove PseudoEnum.__cmp__ | Emilio Pozuelo Monfort | 2020-07-29 | 1 | -2/+0 | |
| | | | | | | It uses cmp, which is no longer available in python3. But that's fine, as we are now comparing using pure key functions. So let's remove the cmp helper rather then reintroducing cmp(). | |||||
* | Add comparison functions required for Python3 | Brian May | 2020-07-29 | 1 | -0/+25 | |
| | ||||||
* | bugs.py: sort using Release's sort | Emilio Pozuelo Monfort | 2020-07-29 | 1 | -1/+1 | |
| | | | | | string sort doesn't work here, as buster < jessie < stretch. However Release's sort will dtrt. | |||||
* | bugs.py: make PackageNoteNoDSA.release a Release object | Emilio Pozuelo Monfort | 2020-07-29 | 1 | -1/+4 | |
| | | | | Like in the other PackageNote objects | |||||
* | bugs.py: sort using a lambda key function | Emilio Pozuelo Monfort | 2020-07-29 | 1 | -9/+2 | |
| | ||||||
* | debian_support: decode lines when necessary | Emilio Pozuelo Monfort | 2020-07-29 | 1 | -3/+11 | |
| | | | | | | | | | We sometimes get passed lines as bytes, which we need to decode under python3. We should probably add an argument to PackageFile's constructor for when we get a fileObj argument, but let's do that when we no longer have to worry about py2 and py3 compatibility. | |||||
* | security_db: encode data before passing it to base64 | Emilio Pozuelo Monfort | 2020-07-29 | 1 | -3/+3 | |
| | | | | In python3, base64 takes bytes. | |||||
* | security_db: use pickle's dumps and loads | Emilio Pozuelo Monfort | 2020-07-29 | 1 | -5/+3 | |
| | | | | | | | Rather than using StringIO in py2 and BytesIO in py3 and porting away from buffer which is also gone in py3, let's just use dumps and loads and let the pickle library handle the memory representation for us. | |||||
* | debian_support.py: add py3 compatibility for apt-update-file | Emilio Pozuelo Monfort | 2020-07-29 | 1 | -4/+10 | |
| | ||||||
* | web_support.py: make_list: don't subscript the list | Emilio Pozuelo Monfort | 2020-07-29 | 1 | -5/+5 | |
| | | | | | | We may get objects that are not subscriptable in py3, such as map objects, so just iterate over the whole object and pop the last separator instead. | |||||
* | web_support.py: adapt urllib.quote for python3 | Emilio Pozuelo Monfort | 2020-07-29 | 1 | -3/+7 | |
| | ||||||
* | web_support.py: decode data when necessary | Emilio Pozuelo Monfort | 2020-07-29 | 1 | -1/+8 | |
| | | | | We can't pass bytes under python3 | |||||
* | web_support.py: adapt HTTPServer imports for python3 | Emilio Pozuelo Monfort | 2020-07-29 | 1 | -5/+9 | |
| | ||||||
* | web_support.py: adapt StringIO for python3 | Emilio Pozuelo Monfort | 2020-07-29 | 1 | -7/+11 | |
| | ||||||
* | lib/python: replace tabs with spaces | Emilio Pozuelo Monfort | 2020-07-29 | 2 | -2/+2 | |
| | ||||||
* | web_support.py: fix octal numbers under py3 | Emilio Pozuelo Monfort | 2020-07-29 | 1 | -1/+1 | |
| | ||||||
* | debian_support: use BytesIO for GzipFile in python3 | Emilio Pozuelo Monfort | 2020-07-29 | 1 | -2/+6 | |
| | ||||||
* | bugs.py: encode the string before using the digest | Emilio Pozuelo Monfort | 2020-07-29 | 1 | -1/+1 | |
| | | | | Needed for py3 compatibility. | |||||
* | lib/python: use isinstance rather than types | Emilio Pozuelo Monfort | 2020-07-29 | 5 | -35/+47 | |
| | | | | types.TypeFoo are gone in python3. | |||||
* | config.py: force keys() to get evaluated as list | Emilio Pozuelo Monfort | 2020-07-29 | 1 | -1/+1 | |
| | ||||||
* | Replace cPickle with pickle library | Brian May | 2020-07-29 | 2 | -4/+4 | |
| | | | | cPickle isn't available in Python 3. | |||||
* | Use urllib urllib instead of urllib2 | Brian May | 2020-07-29 | 1 | -3/+6 | |
| | ||||||
* | Force map() to get evaluated as list | Brian May | 2020-07-29 | 1 | -1/+1 | |
| | | | | | Under Python 3, map() doesn't return a list (as in Python 2), but must be evaluated before it can be used as a list. | |||||
* | Force keys() to get evaluated as list | Brian May | 2020-07-29 | 3 | -11/+11 | |
| | | | | | Under Python 3, keys() doesn't return a list (as in Python 2), but must be evaluated before it can be used as a list. | |||||
* | Merge branch 'distro-config' into 'master' | Salvatore Bonaccorso | 2020-06-04 | 5 | -186/+109 | |
|\ | | | | | | | | | Distro config reunification See merge request security-tracker-team/security-tracker!48 | |||||
| * | security_db: don't hardcode the list of supported releases | Emilio Pozuelo Monfort | 2020-02-26 | 1 | -5/+6 | |
| | | | | | | | | | | At times there will just be two, so get that list from the config. | |||||
| * | Makefile: don't hardcode Debian releases | Emilio Pozuelo Monfort | 2020-02-26 | 1 | -2/+2 | |
| | | ||||||
| * | Don't hardcode architecture list in the Makefile | Emilio Pozuelo Monfort | 2020-02-26 | 1 | -1/+5 | |
| | | | | | | | | Move it to config.json instead and grab it from there. | |||||
| * | security_db: don't hardcode release names | Emilio Pozuelo Monfort | 2020-02-26 | 1 | -1/+1 | |
| | | ||||||
| * | debian_support: don't hardcode release names | Emilio Pozuelo Monfort | 2020-02-26 | 1 | -2/+3 | |
| | | ||||||
| * | config: add a method to get all releases | Emilio Pozuelo Monfort | 2020-02-26 | 1 | -1/+8 | |
| | | ||||||
| * | security_db: drop squeeze workarounds | Emilio Pozuelo Monfort | 2020-02-26 | 1 | -6/+0 | |
| | | ||||||
| * | security_db: don't hardcode the testing suite codename | Emilio Pozuelo Monfort | 2020-02-26 | 1 | -8/+11 | |
| | | ||||||
| * | dist_config.py: remove unused file | Emilio Pozuelo Monfort | 2020-02-26 | 1 | -97/+0 | |
| | | ||||||
| * | security_db: remove unused getEffectiveVersion method | Emilio Pozuelo Monfort | 2020-02-26 | 1 | -54/+0 | |
| | | ||||||
| * | security_db: don't hardcode release codenames in _initViews | Emilio Pozuelo Monfort | 2020-02-26 | 1 | -1/+5 | |
| | |