aboutsummaryrefslogtreecommitdiffstats
path: root/mini-dinstall
diff options
context:
space:
mode:
authorLibravatarChristoph Goehre <christoph.goehre@gmx.de>2008-08-31 18:09:35 +0200
committerLibravatarChristoph Goehre <christoph.goehre@gmx.de>2008-08-31 18:09:35 +0200
commit5bbaa283c704fb3a1d83c281031d6131cfc58a91 (patch)
tree6862bd1c85460873f8f06ecb97e89e32ff6edaff /mini-dinstall
parent540ebcf6e80402f8f5bcf157f7c75e4eff27e94d (diff)
move changes file in _reject_changefile() too
If we forget to move foo.changes, mini-dinstall wait for the other files (.deb, .dsc, ...) in hope for upload. When the max_retry_time (default 2 days) reaches, he use _reject_changefile() again, to reject the upload. Thereafter mini-dinstall crash, because he can't move vanished files. Aug 29 19:52:29 mini-dinstall [-1218184272] INFO: Upload "/home/debian-packages/foo_0.1_i386.changes" isn't complete; marking for retry in 960 seconds Aug 29 20:08:29 mini-dinstall [-1218184272] ERROR: Unhandled exception while rejecting /home/debian-packages/foo_0.1_i386.changes; archive may be in inconsistent state Aug 29 20:08:30 mini-dinstall [-1218184272] ERROR: Unhandled exception; shutting down Traceback (most recent call last): File "./mini-dinstall", line 508, in run File "./mini-dinstall", line 642, in _daemonize File "./mini-dinstall", line 570, in _reject_changefile File "./mini-dinstall", line 753, in reject File "./mini-dinstall", line 975, in _reject_changefile File "./mini-dinstall", line 174, in do_rename OSError: [Errno 2] No such file or directory Aug 29 20:08:30 mini-dinstall [-1210273024] INFO: Die event caught; waiting for incoming processor to finish
Diffstat (limited to 'mini-dinstall')
-rwxr-xr-xmini-dinstall1
1 files changed, 1 insertions, 0 deletions
diff --git a/mini-dinstall b/mini-dinstall
index 66e54d2..d03209d 100755
--- a/mini-dinstall
+++ b/mini-dinstall
@@ -974,6 +974,7 @@ class ArchiveDir:
file = self._abspath(file)
target = os.path.join(rejectdir, os.path.basename(file))
do_rename(file, target)
+ do_rename(changefilename, os.path.join(rejectdir, os.path.basename(changefilename)))
self._logger.info('Rejecting "%s": %s' % (changefilename, `exception`))
except Exception:
self._logger.error("Unhandled exception while rejecting %s; archive may be in inconsistent state" % (changefilename,))