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
|
@ -268,6 +268,12 @@ db_write_entry()
|
|||
msg2 "$(gettext "Computing md5 checksums...")"
|
||||
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
|
||||
write_list_entry "LICENSE" "$_licenses" "desc"
|
||||
[[ -n $arch ]] && echo -e "%ARCH%\n$arch\n" >>desc
|
||||
|
|
Loading…
Reference in New Issue