FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor


 
 
LinkBack Thread Tools
 
Old 06-02-2008, 08:27 AM
 
Default GPGSIG in repo-add

From: Geoffroy Carrier <geoffroy.carrier@koon.fr>

---
Here comes the repo-add work. Pretty simple, as you see.
It is pretty straight-forward. The main idea is to use base64, as it can't interfere with
the 'desc' fileformat and won't produce too big lines (as signatures are less than 100 bytes,
it produces less than 150 characters...). Plus it's in coreutils. I don't know much about
*BSD and Mac OS X.

scripts/repo-add.sh.in | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/scripts/repo-add.sh.in b/scripts/repo-add.sh.in
index e90f0e8..f35d9b9 100644
--- a/scripts/repo-add.sh.in
+++ b/scripts/repo-add.sh.in
@@ -204,6 +204,9 @@ db_write_entry()
msg2 "$(gettext "Computing md5 checksums...")"
echo -e "%MD5SUM%
$(md5sum "$pkgfile" | cut -d ' ' -f 1)
" >>desc

+ # add base64'd gpg signature
+ [ -f "$pkgfile.sig" ] && echo -e "%GPGSIG%
$(base64 -w 0 "$pkgfile.sig")
" >>desc
+
[ -n "$url" ] && echo -e "%URL%
$url
" >>desc
write_list_entry "LICENSE" "$_licenses" "desc"
[ -n "$arch" ] && echo -e "%ARCH%
$arch
" >>desc
--
1.5.5.3


_______________________________________________
pacman-dev mailing list
pacman-dev@archlinux.org
http://archlinux.org/mailman/listinfo/pacman-dev
 

Thread Tools




All times are GMT. The time now is 03:45 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org