Add PGPSIG field in repo-add
Use base64 encoding to store the value in the database if a .sig file exists for the package being added. Signed-off-by: Geoffroy Carrier <geoffroy.carrier@koon.fr> Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
2f2f53ddc9
commit
8fde399fe6
1 changed files with 6 additions and 0 deletions
|
@ -268,6 +268,12 @@ db_write_entry()
|
||||||
msg2 "$(gettext "Computing md5 checksums...")"
|
msg2 "$(gettext "Computing md5 checksums...")"
|
||||||
echo -e "%MD5SUM%\n$md5sum\n" >>desc
|
echo -e "%MD5SUM%\n$md5sum\n" >>desc
|
||||||
|
|
||||||
|
# add base64'd PGP signature
|
||||||
|
if [[ -f $startdir/$pkgfile.sig ]]; then
|
||||||
|
pgpsig=$(openssl base64 -in "$startdir/$pkgfile.sig" | tr -d '\n')
|
||||||
|
echo -e "%PGPSIG%\n$pgpsig\n" >>desc
|
||||||
|
fi
|
||||||
|
|
||||||
[[ -n $url ]] && echo -e "%URL%\n$url\n" >>desc
|
[[ -n $url ]] && echo -e "%URL%\n$url\n" >>desc
|
||||||
write_list_entry "LICENSE" "$_licenses" "desc"
|
write_list_entry "LICENSE" "$_licenses" "desc"
|
||||||
[[ -n $arch ]] && echo -e "%ARCH%\n$arch\n" >>desc
|
[[ -n $arch ]] && echo -e "%ARCH%\n$arch\n" >>desc
|
||||||
|
|
Loading…
Add table
Reference in a new issue