summaryrefslogtreecommitdiffstats
path: root/bin/check-syntax
Commit message (Collapse)AuthorAgeFilesLines
* Replace file() with open() for Python 3 compatabilityBrian May2019-03-041-1/+1
|
* Replace "x.has_key(y)" with "y in x" syntaxBrian May2018-08-201-1/+1
|
* Fix print statements for Python 3.6 compatibilityBrian May2018-08-061-1/+1
|
* Replace <> with != for Python 3.6 compatibilityBrian May2018-07-151-2/+2
|
* Update python exception syntax for Python 3.6 compatibilityBrian May2018-07-131-2/+2
|
* check-syntax: don't hardcode sourcesEmilio Pozuelo Monfort2018-06-151-19/+21
| | | | | Get them from config.json instead. This also simplifies the parse_* functions as there's just a generic one now.
* Makefile: don't hardcode the syntax stampsEmilio Pozuelo Monfort2018-06-151-0/+6
|
* Merge DLAFile into DSAFileEmilio Pozuelo Monfort2018-06-081-4/+1
| | | | | The only difference is that the regular expressions look for DSA or DLA, but we can just guess that based on the path.
* add support for squeeze-lts (Closes: #759727 once Florian has applied this ↵Salvatore Bonaccorso2014-09-011-1/+5
| | | | | | to soler.d.o) git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@28539 e39458fd-73e7-0310-bf30-c45bca0a0e42
* Revert "add support for squeeze-lts (Closes: #759727 once Florian has ↵Salvatore Bonaccorso2014-09-011-5/+1
| | | | | | | | applied this to soler.d.o)" This reverts commit 6357e7f64b5cdab2f194dc5a1ae0ff309bb625f6. git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@28536 e39458fd-73e7-0310-bf30-c45bca0a0e42
* add support for squeeze-lts (Closes: #759727 once Florian has applied this ↵Holger Levsen2014-08-311-1/+5
| | | | | | to soler.d.o) git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@28525 e39458fd-73e7-0310-bf30-c45bca0a0e42
* * bin/check-sytax:Florian Weimer2007-08-301-3/+11
| | | | | | | Support reading from standard input git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@6444 e39458fd-73e7-0310-bf30-c45bca0a0e42
* * bin/check-sytax:Florian Weimer2007-08-301-5/+1
| | | | | | | Remove CAN parser git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@6442 e39458fd-73e7-0310-bf30-c45bca0a0e42
* Implement bin/update-db, to update the database with a single command.Florian Weimer2005-09-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Most processing is skipped if no input files have been modified. lib/python/security_db.py (SchemaMismatch): New exception. (DB): Handle schema versioning. (DB.initSchema): Add subrelease column to source_packages and binary_packages. Set user_version. Remove stray commit. (DB._parseFile): Return information to the caller if the file is unchanged. (DB.readPackages): Move deletion code to callees. (DB._readSourcePackages, DB._readBinaryPackages): Implement incremental updates. Add subrelease. Need to invoke _clearVersions if any changes are made. (DB.deleteBugs, DB.finishBugs): Moved into readBugs. (DB.insertBugs): Rename ... (DB.readBugs): ... to this one. Implement incremental updates. Invoke _clearVersions if necessary. (DB._clearVersions): Add. (DB._updateVersions): Skip processing if _clearVersions has not been invoked. (DB.getVersion, DB.releaseContainsPackage, DB._synthesizeReleases): Obsolete, remove. (test): Update. lib/python/bugs.py (CANFile, CVEFile): Split into two classes, which handle the differences between the two files. bin/check-syntax: Update accordingly. bin/update-db: New database update script. Implements incremental updates. Makefile: Remove references to bin/update-packages. Simplify drastically. git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@1994 e39458fd-73e7-0310-bf30-c45bca0a0e42
* lib/python/debian_support.py (ParseError):Florian Weimer2005-09-121-13/+18
| | | | | | | | | | | | | | | | | | | Add class. lib/python/debian_support.py (PackageFile.raiseSyntaxError):o Raise ParseError instead of SyntaxError. bin/check-syntax, bin/update-bug-list-db: Handle the ParseError exception gracefully. lib/python/bugs.py (CVEFile.matchHeader): Check parentheses/brackets. data/CAN/list: Fix uncovered syntax errors. git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@1937 e39458fd-73e7-0310-bf30-c45bca0a0e42
* Add list parser written in Python.Florian Weimer2005-09-121-0/+70
"make check" runs a syntax check (no SQLite required). "make all" updates the SQLite database, and performs cross-list consistency checks. There is some support for loading Debian Package/Sources files, but this information is currently not used by the checks. git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@1934 e39458fd-73e7-0310-bf30-c45bca0a0e42

© 2014-2024 Faster IT GmbH | imprint | privacy policy