index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Geoffroy Carrier <geoffroy.carrier@koon.fr> | 2008-06-02 10:27:01 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-03-23 00:26:54 -0500 |
commit | 8fde399fe62c3a08310e1830bb15b6e93ed360f9 (patch) | |
tree | edb9ecc306752c7f262264084baa301b3b1bcc45 /scripts | |
parent | 2f2f53ddc9f05d00244a41a66eef9ed34bc87463 (diff) |
-rw-r--r-- | scripts/repo-add.sh.in | 6 |
diff --git a/scripts/repo-add.sh.in b/scripts/repo-add.sh.in index dfc93974..70cfd63c 100644 --- a/scripts/repo-add.sh.in +++ b/scripts/repo-add.sh.in @@ -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 |