X Strike Force SVN commit: rev 507 - trunk/debian
Author: branden
Date: 2003-09-12 07:40:56 -0500 (Fri, 12 Sep 2003)
New Revision: 507
Modified:
trunk/debian/shell-lib.sh
Log:
debian/shell-lib.sh: safe_debconf(): make arguments beyond the first
optional, so that we can wrap db_stop (which takes no arguments of its
own)
Modified: trunk/debian/shell-lib.sh
===================================================================
--- trunk/debian/shell-lib.sh 2003-09-10 23:08:13 UTC (rev 506)
+++ trunk/debian/shell-lib.sh 2003-09-12 12:40:56 UTC (rev 507)
@@ -386,17 +386,17 @@
}
safe_debconf () {
- # syntax: safe_debconf debconf_command debconf_argument ...
+ # syntax: safe_debconf debconf_command [ debconf_argument ... ]
#
- # Run specified debconf command with specified arguments, guarding ourselves
- # against abnormal exits.
+ # Run specified debconf command with (optional) specified arguments, guarding
+ # ourselves against abnormal exits.
local retval
# validate arguments
- if [ $# -lt 2 ]; then
+ if [ $# -lt 1 ]; then
usage_errormsg "safe_debconf() called with wrong number of arguments;" \
- "expected at least 2, got $#"
+ "expected at least 1, got $#"
exit $SHELL_LIB_USAGE_ERROR
fi
Reply to: