Sylvain Beucler pushed to branch master at Debian Security Tracker / security-tracker
Commits: 42722672 by Sylvain Beucler at 2025-11-10T17:36:09+01:00 lts-missing-uploads: make it work again - - - - - 1 changed file: - bin/lts-missing-uploads Changes: ===================================== bin/lts-missing-uploads ===================================== @@ -1,6 +1,7 @@ #!/usr/bin/env python3 # Check for announced DLAs with no uploads in security-master Sources # Copyright 2016 Chris Lamb <[email protected]> +# Copyright 2025 Sylvain Beucler <[email protected]> # # 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 @@ -37,8 +38,8 @@ class DLAForAnotherRelease(Exception): class LTSMissingUploads(object): - MONTHS = 6 - SOURCES = ['http://security.debian.org/dists/{}/updates/{}/source/Sources.gz'.format(lts, component) + MONTHS = 2 + SOURCES = ['http://security.debian.org/dists/{}-security/{}/source/Sources.gz'.format(lts, component) for component in ('main', 'contrib', 'non-free')] re_line = re.compile( @@ -63,7 +64,7 @@ class LTSMissingUploads(object): pass for idx in range(self.MONTHS): - dt = datetime.datetime.utcnow().replace(day=1) - \ + dt = datetime.datetime.now(datetime.UTC).replace(day=1) - \ dateutil.relativedelta.relativedelta(months=idx) self.info( @@ -95,7 +96,10 @@ class LTSMissingUploads(object): ) continue - archive_version = Version(sources[source]) + if source in sources: + archive_version = Version(sources[source]) + else: + archive_version = Version('0') if dla_version <= archive_version: continue @@ -167,8 +171,6 @@ class LTSMissingUploads(object): print("I: " + msg.format(*args, **kwargs), file=sys.stderr) if __name__ == '__main__': - eventlet.monkey_patch(socket=True) - try: sys.exit(LTSMissingUploads().main(*sys.argv[1:])) except KeyboardInterrupt: View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/-/commit/42722672bb19dbbb1dc21d0c95722fe4d59b66b3 -- View it on GitLab: https://salsa.debian.org/security-tracker-team/security-tracker/-/commit/42722672bb19dbbb1dc21d0c95722fe4d59b66b3 You're receiving this email because of your account on salsa.debian.org.
_______________________________________________ debian-security-tracker-commits mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-security-tracker-commits
