当我将包上传到存档时
$ 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