Could you add an option to dput for removing files after a successful upload? The idea is that when you're preparing a binary-only upload, sometimes you just want to upload it and forget about the files. This is very common when porting. In particular, when dput is being run by a buildd, if it could be set to remove the files after a succesful upload, cleaning the ~buildd/upload dir periodicaly wouldn't be necessary.
Hi Robert, Thank you for your bugreport and interest in dput. I can understand that you want to forget about the files, but what about keeping at least the .upload file documenting when the upload happened? I don't think adding an option to remove files would be useful. Instead I think it would be more helpful to pass the name of the files that were uploaded as an argument to the pre- and postupload command. That way you can create a script run after the upload to clean up the files, exactly as you like it. And other users can then move files around or do anything they like with the files. Would that be an acceptable solution for you? If yes, I think we might add this feature to the current version of dput. Christian
Yes, that'd be fine. Then I can write a script that cleans up the whole thing for me. Thank you.