Skip to content

Commit bf29217

Browse files
committed
debug gpg
1 parent 8a763a9 commit bf29217

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

‎packaging/linux/docker_build.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ gpg_tempfile="$gpg_tempdir/code_signing_key"
5757
gpg --export-secret-key --armor "$code_signing_fingerprint" > "$gpg_tempfile"
5858

5959
# Make sure the Docker image is built.
60-
image=keybase_packaging_v42
60+
image=keybase_packaging_v43
6161
if [ -z "$(sudo docker images -q "$image")" ] ; then
6262
echo "Docker image '$image' not yet built. Building..."
6363
sudo docker build -t "$image" "$clientdir/packaging/linux"

‎packaging/linux/rpm/layout_repo.sh‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,11 @@ for arch in x86_64 ; do
7777
--define '__gpg_sign_cmd %{__gpg} gpg --batch --no-verbose --no-armor --use-agent --no-secmem-warning -u "%{_gpg_name}" -sbo %{__signature_filename} %{__plaintext_filename}' \
7878
--addsign "$rpmcopy" < /dev/null
7979

80+
echo "Signing '$rpmcopy'...2"
81+
echo "Signing '$rpmcopy'...2.. $(which gpg) $(which gpg1)"
8082
# Add a standalone signature file, for user convenience. Other packaging
8183
# steps will pick this up and copy it around.
82-
gpg --detach-sign --armor --use-agent --local-user "$code_signing_fingerprint" \
84+
/usr/bin/gpg --detach-sign --armor --use-agent --local-user "$code_signing_fingerprint" \
8385
-o "$rpmcopy.sig" "$rpmcopy"
8486

8587
# Update the latest pointer. Even though the RPM repo is split by
@@ -88,12 +90,15 @@ for arch in x86_64 ; do
8890
ln -sf "repo/$arch/$rpmname" "$repo_root/$binary_name-latest-$arch.rpm"
8991
ln -sf "repo/$arch/$rpmname.sig" "$repo_root/$binary_name-latest-$arch.rpm.sig"
9092

93+
echo "Signing '$rpmcopy'...3"
9194
# Run createrepo to update the database files.
9295
"$CREATEREPO" "$repo_root/repo/$arch"
9396

94-
gpg --detach-sign --armor --use-agent --local-user "$code_signing_fingerprint" \
97+
/usr/bin/gpg --detach-sign --armor --use-agent --local-user "$code_signing_fingerprint" \
9598
-o "$repo_root/repo/$arch/repodata/repomd.xml.asc" "$repo_root/repo/$arch/repodata/repomd.xml"
9699

100+
echo "Signing '$rpmcopy'...4"
97101
# Add updateinfo.xml changelog to the repo
98102
"$MODIFYREPO" "$here/updateinfo.xml" "$repo_root/repo/$arch/repodata"
103+
echo "Signing '$rpmcopy'...5"
99104
done

0 commit comments

Comments
 (0)