[Lunar-commits] r22999 - lunar/trunk/var/lib/lunar/functions
Auke Kok
sofar at lunar-linux.org
Sat Jan 20 22:58:49 CET 2007
Author: sofar
Date: 2007-01-20 22:58:49 +0100 (Sat, 20 Jan 2007)
New Revision: 22999
Modified:
lunar/trunk/var/lib/lunar/functions/download.lunar
Log:
Forget about attempting to use the cache for svn/cvs packages if the plugin is not installed. This just leads to confusion. Error out instead with at least some useful message as to what is going on.
Modified: lunar/trunk/var/lib/lunar/functions/download.lunar
===================================================================
--- lunar/trunk/var/lib/lunar/functions/download.lunar 2007-01-20 14:21:42 UTC (rev 22998)
+++ lunar/trunk/var/lib/lunar/functions/download.lunar 2007-01-20 21:58:49 UTC (rev 22999)
@@ -41,7 +41,11 @@
plugin_call SOURCE_DOWNLOAD $1 $2 $3
RETVAL=$?
if [ $RETVAL == 2 ]; then
- message "${PROBLEM_COLOR}Warning:${QUERY_COLOR} I don't know how to download \"$1\"${DEFAULT_COLOR}"
+ # refuse to continue - it's useless to have the user attempt to
+ # download cvs/svn etc snapshots from the cache URLs
+ error_message "${PROBLEM_COLOR}I don't know how to download ${QUERY_COLOR}\"$1\".${DEFAULT_COLOR}"
+ error_message "${MESSAGE_COLOR}Install the package that provides the method and plugin to download it.${DEFAULT_COLOR}"
+ exit 1
fi
return $RETVAL
}
More information about the Lunar-commits
mailing list