[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

X Strike Force XFree86 SVN commit: rev 827 - trunk/debian



Author: branden
Date: 2003-12-06 21:22:19 -0500 (Sat, 06 Dec 2003)
New Revision: 827

Modified:
   trunk/debian/shell-lib.sh
Log:
Document that safe_debconf() should not be used with db_get or db_metaget
commands; the return is only meaningful if the exit status of the debconf
command is zero, which should be checked directly and not via a middle-man
like safe_debconf().


Modified: trunk/debian/shell-lib.sh
===================================================================
--- trunk/debian/shell-lib.sh	2003-12-07 01:53:15 UTC (rev 826)
+++ trunk/debian/shell-lib.sh	2003-12-07 02:22:19 UTC (rev 827)
@@ -498,6 +498,10 @@
   #
   # Run specified debconf command with (optional) specified arguments, guarding
   # ourselves against abnormal exits.
+  #
+  # NOTE: Do *not* use this function with db_get or db_metaget commands; in
+  # those cases the return value of the debconf command *must* be checked
+  # before the string returned by debconf is used for anything.
 
   local retval
 



Reply to: