From 5819c56729a679a3baa05c8cc3da5e1a5412a731 Mon Sep 17 00:00:00 2001 From: Franz Heger Date: Mon, 14 Nov 2022 13:56:17 +0100 Subject: Skip missing files when rejecting packages --- mini-dinstall | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mini-dinstall b/mini-dinstall index 347b4c1..e35ffb4 100755 --- a/mini-dinstall +++ b/mini-dinstall @@ -1031,6 +1031,9 @@ class ArchiveDir: traceback.print_exception(Exception, exception, None, None, f) f.close() for file in [x[2] for x in changefile.getFiles()]: + if not os.path.exists(os.path.join(incomingdir, file)): + self._logger.warning('Could not find file "%s", skipping' % file) + continue if os.access(os.path.join(incomingdir, file), os.R_OK): file = os.path.join(incomingdir, file) else: -- cgit v1.2.3