提交 4ca363ee 编写于 作者: J James Troup

Fix hideous data loss bug.

上级 d28af59e
#!/usr/bin/env python #!/usr/bin/env python
# Clean incoming of old unused files # Clean incoming of old unused files
# Copyright (C) 2000 James Troup <james@nocrew.org> # Copyright (C) 2000, 2001 James Troup <james@nocrew.org>
# $Id: shania,v 1.2 2001-01-28 09:06:44 troup Exp $ # $Id: shania,v 1.3 2001-03-02 02:43:49 troup Exp $
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by
...@@ -173,10 +173,12 @@ Debian distribution maintenance software ...@@ -173,10 +173,12 @@ Debian distribution maintenance software
print "Sent reminder email to %s." % (changes["maintainer822"]); print "Sent reminder email to %s." % (changes["maintainer822"]);
else: else:
# Ensure the files aren't deleted # Ensure the files aren't deleted
for keys in (files.keys(), dsc_files.keys(), changes_filename): keys = [];
for i in keys: for i in (files.keys(), dsc_files.keys(), [changes_filename]):
if all_files.has_key(i): keys.extend(i);
del all_files[i]; for key in keys:
if all_files.has_key(key):
del all_files[key];
# Anthing left at this stage is not referenced by a .changes or # Anthing left at this stage is not referenced by a .changes or
# .dsc and should be deleted if old enough. # .dsc and should be deleted if old enough.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册