如何防止dput再次上传*.orig.tar.gz文件?

当我上传一个软件包到存档时
$ dput ppa:mylaunchpadid/myppa.ppa mypackage1.0-0ubuntu2_source.changes
Checking signature on .changes
gpg: Signature made ...
gpg: Good signature from ...
Good signature on ...source.changes
Good signature on ....dsc.
Package includes an .orig.tar.gz file although the debian revision suggests
that it might not be required. Multiple uploads of the .orig.tar.gz may be
rejected by the upload queue management software.
Uploading to ppa (via sftp to ppa.launchpad.net):

如何防止每次上传修订版本时都上传 orig.tar.gz 文件?
1个回答

为了防止 dput 再次上传你的 orig.tar.gz 文件,你需要从 source.changes 文件中删除它。
要做到这一点,你只需在构建命令中添加 -sd 选项即可。它将强制排除原始的 orig.tar.gz 源文件。
来自于 dpkg-genchanges 的 man 页面:
   -sd    Forces  the  exclusion  of the original source and includes only
          the diff.
对于dpkg-buildpackage命令:
$ dpkg-buildpackage -sd

对于debuild命令:
$ debuild -sd

对于pdebuild命令:
$ pdebuild --debbuildopts -sd

1请注意,~/.devscripts 可能已经传递了 -sa 选项给 debuild,这当然会强制源代码上传,而且在其中包含这个选项是不好的。 - Thomas Ward
@ThomasW. 很高兴知道,谢谢你提到这个可能性。 - Sylvain Pineau