Skip to content

Commit 5851fba

Browse files
committed
hotfix(rpm/publish): fixup of bd2ac3a - the export target directory needs to exist
Signed-off-by: Damien Duportal <damien.duportal@gmail.com>
1 parent bd2ac3a commit 5851fba

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

rpm/publish/publish.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ function clean() {
2020
}
2121

2222
function generateSite() {
23-
gpg --export -a --output "$D/repodata/repomd.xml.key" "${GPG_KEYNAME}"
24-
gpg --import-options show-only --import "$D/repodata/repomd.xml.key" >"$D/${ORGANIZATION}.key.info"
23+
local gpg_publickey="$D/repodata/repomd.xml.key"
24+
mkdir -p "$(dirname "${gpg_publickey}")"
25+
gpg --export -a --output "${gpg_publickey}" "${GPG_KEYNAME}"
26+
gpg --import-options show-only --import "${gpg_publickey}" >"$D/${ORGANIZATION}.key.info"
2527

2628
"$BASE/bin/indexGenerator.py" \
2729
--distribution rpm \

0 commit comments

Comments
 (0)