Public bug reported: In previous versions of dput, the sftp method would use a temporary file name while uploading. For example:
linux-headers-4.4.61-20-ev3dev- rpi_1~1_armhf.deb.tmp.1492202382.950381994.19485.970636164 In bionic with package version 1.0.1ubuntu1, it no longer does this. I have a remote script that it triggered by a file system watcher that looks for the creation of a new .changes file. Since the file is created with this line: with sftp_client.file(remote_path, "w") as remote_fileobj: the initial file is empty and as a result, my script sent me this message from reprepro: Unexpected empty file 'raspberrypi-firmware_1.20180409-1ev3dev1_armhf.changes'! There have been errors! This script was working with previous versions of dput. ** Affects: dput (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1762572 Title: regression: sftp method no longer uses temporary file name during upload To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/dput/+bug/1762572/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs