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

如何防止 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):

如何防止上传原始压缩文件每次我上传修订版时?

答案1

为了防止dput再次上传您的原始压缩文件文件,您需要将其从source.changes文件中删除。

为此,您基本上必须更改对构建命令的调用以添加选项-sd。它将强制排除原始原始压缩文件来源。

dpkg-genchanges手册页中:

   -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

相关内容