Sea*_*nch 0 launchpad packaging ppa gnupg
我为我正在处理的库创建了一个源包。我debuild用来构建它,然后我可以使用dput.
现在我想设置它,以便我可以从 Jenkins 自动执行此操作。我遇到的主要问题是签署 .dsc 和 .changes 文件。我想做的是签署包裹gpg而不是这样debuild做。这样我就可以使用 gpg 选项自动签署文件--passphrase-fd 0。
于是我就用debuild与选项-uc和-us再ClearSign会处理这些文件gpg。但是当我这样做时,它会创建一个单独的.dsc.asc和source.changes.asc. 当我然后尝试上传时dput出现错误
Checking signature on .changes
gpg: no valid OpenPGP data found.
gpg: the signature could not be verified.
Please remember that the signature file (.sig or .asc)
should be the first file given on the command line.
Run Code Online (Sandbox Code Playgroud)
这似乎表明我应该将该.asc文件作为参数列出,dput但我无法让它工作。
我找到了以下解决方案debsign和-p选项:
debuild正如您所提到的,无需签名即可使用使用 thendebsign和-p选项设置要使用的密码,就像这样
debsign \
-p'gpg --passphrase-file /home/myname/my_passphrase_file.txt --batch --no-use-agent'\
-S -kMYKEYID package_source.change
Run Code Online (Sandbox Code Playgroud)仍然有一些其他问题,但这部分看起来像工作。直接使用 GPG 签名文件不起作用,因为在此期间计算的校验和debuild已更改。
无论如何,我总是更喜欢用密码存储密钥。
| 归档时间: |
|
| 查看次数: |
2687 次 |
| 最近记录: |