From 2f9039e6af47a6a4b2f6e0c62d1ee45c4adeed1b Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 21 Feb 2012 18:38:30 -0500 Subject: Clean up control fields library file. Delete an old commented-out function and update a function description. --- diff --git a/lib/controlfields b/lib/controlfields index 18ac1b1..cf0075f 100644 --- a/lib/controlfields +++ b/lib/controlfields @@ -19,41 +19,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -# Gets a simple control field. -# Parameters: -# package name (if omitted, source package control file is read) -# field name -# Output: -# field value -# Return value: -# 0 on success -# 1 on missing field -# 255 on invalid invocation -#oh_get_simple_field() -#{ -# case ${#} in -# 1) -# _control=../control -# _field=${1} -# ;; -# 2) -# _control=../${1}.pkg/control -# _field=${2} -# ;; -# *) -# return 255 -# ;; -# esac -# -# _value=`sed -n "s/^${_field}:[[:space:]]*\([[:space:]]\)[[:space:]]*$/\\1/p" -# ${_control}` -# -# [ -z "${_value}" ] && return 1 -# echo "${_value}" -# return 0 -#} - -# Gets a folded or multiline control field. +# Gets a control field value. # Parameters: # package name (if omitted, source package control file is read) # field name -- cgit v0.9.1