rsync appends a suffix while uploading and renames them later. We
don't want to remove in-progress uploads so we have to allow these.
$keep_files = '(status|\.message|README)$';
# file patterns that aren't deleted right away
-$valid_files = '(\.changes|\.tar\.(?:gz|bz2|xz)|\.dsc|\.u?deb|diff\.gz|\.sh)$';
+$valid_files = '(\.changes|\.tar\.(?:gz|bz2|xz)|\.dsc|\.u?deb|diff\.gz|\.sh)(\.[A-Za-z0-9]{6})?$';
# Change files to mode 644 locally (after md5 check) or only on master?
$chmod_on_target = 0;