CVS: theedge/var/lib/lunar/functions sources.lunar,1.12,1.13
sofar at lunar-linux.org
sofar at lunar-linux.org
Mon Jul 28 17:54:24 GMT 2003
- Previous message: CVS: theedge/var/lib/lunar/functions build.lunar, 1.6,
1.7 check.lunar, 1.2, 1.3 config.lunar, 1.1.1.1,
1.2 connect.lunar, 1.1, 1.2 depends.lunar, 1.13,
1.14 download.lunar, 1.27, 1.28 edit.lunar, 1.5,
1.6 init.lunar, 1.2, 1.3 install.lunar, 1.9,
1.10 locking.lunar, 1.2, 1.3 main.lunar, 1.1,
1.2 messages.lunar, 1.7, 1.8 misc.lunar, 1.2,
1.3 modules.lunar, 1.22, 1.23 moonbase.lunar, 1.9,
1.10 optimize.lunar, 1.37, 1.38 postbuild.lunar, 1.5,
1.6 prune.lunar, 1.3, 1.4 queue.lunar, 1.1.1.1,
1.2 recovery.lunar, 1.1.1.1, 1.2 sizes.lunar, 1.2,
1.3 sources.lunar, 1.11, 1.12 temp.lunar, 1.2,
1.3 tracking.lunar, 1.2, 1.3 uniqid.lunar, 1.3,
1.4 updatelog.lunar, 1.10, 1.11 useradd.lunar, 1.2,
1.3 view.lunar, 1.1, 1.2
- Next message: CVS: moonbase/zbeta/giftopenft-cvs - New directory
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /var/cvs/lunar/theedge/var/lib/lunar/functions
In directory dbguin.lunar-linux.org:/tmp/cvs-serv27801
Modified Files:
sources.lunar
Log Message:
Booohooo
Index: sources.lunar
===================================================================
RCS file: /var/cvs/lunar/theedge/var/lib/lunar/functions/sources.lunar,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- sources.lunar 28 Jul 2003 17:41:56 -0000 1.12
+++ sources.lunar 28 Jul 2003 17:54:22 -0000 1.13
@@ -155,3 +155,41 @@
+# usage : gpg_verify_src $SRC $GPG-SIG-URL $GPG-PUBLIC-KEYS-URL
+gpg_verify_source() {
+ if [ ! -x /usr/bin/gpg ] ; then
+ message "${PROBLEM_COLOR}! Cannot verify sources without ${MODULE_COLOR}gpg${DEFAULT_COLOR}${PROBLEM_COLOR} installed${DEFAULT_COLOR}"
+ return 1
+ fi
+
+ # do we need to download a keyset?
+ if [ -n "$3" ] ; then
+ TMP_GPG_KEYS=$(temp_create "gpg-pubkeys")
+ verbose_msg "Downloading pub keys from \"$3\""
+ if wget $3 -O $TMP_GPG_KEYS -q ; then
+ GNUPGHOME=/var/state/lunar/ gpg --import $TMP_GPG_KEYS
+ fi
+ fi
+
+ # try to get the required key
+ TMP_GPG_SIG=$(temp_create "gpg-signature")
+ verbose_msg "Downloading signature \"$2\""
+ if wget $2 -O $TMP_GPG_SIG -q ; then
+ verbose_msg "Verifying signature of \"$1\""
+ verbose_msg "GNUPGHOME=/var/state/lunar/ gpg --verify $TMP_GPG_SIG $1"
+ if GNUPGHOME=/var/state/lunar/ gpg --verify $TMP_GPG_SIG $1 ; then
+ echo good!
+ else
+ echo bad!
+ fi
+# temp_destroy $TMP_SIG
+ verbose_msg "result was \"$?\""
+ else
+ message "B()RK"
+ temp_destroy $TMP_SIG
+ exit 1
+ fi
+
+}
+
+
- Previous message: CVS: theedge/var/lib/lunar/functions build.lunar, 1.6,
1.7 check.lunar, 1.2, 1.3 config.lunar, 1.1.1.1,
1.2 connect.lunar, 1.1, 1.2 depends.lunar, 1.13,
1.14 download.lunar, 1.27, 1.28 edit.lunar, 1.5,
1.6 init.lunar, 1.2, 1.3 install.lunar, 1.9,
1.10 locking.lunar, 1.2, 1.3 main.lunar, 1.1,
1.2 messages.lunar, 1.7, 1.8 misc.lunar, 1.2,
1.3 modules.lunar, 1.22, 1.23 moonbase.lunar, 1.9,
1.10 optimize.lunar, 1.37, 1.38 postbuild.lunar, 1.5,
1.6 prune.lunar, 1.3, 1.4 queue.lunar, 1.1.1.1,
1.2 recovery.lunar, 1.1.1.1, 1.2 sizes.lunar, 1.2,
1.3 sources.lunar, 1.11, 1.12 temp.lunar, 1.2,
1.3 tracking.lunar, 1.2, 1.3 uniqid.lunar, 1.3,
1.4 updatelog.lunar, 1.10, 1.11 useradd.lunar, 1.2,
1.3 view.lunar, 1.1, 1.2
- Next message: CVS: moonbase/zbeta/giftopenft-cvs - New directory
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Lunar-commits
mailing list