summaryrefslogtreecommitdiffstats
path: root/lib/controlfields
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-02-21 18:38:30 (EST)
committer P. J. McDermott <pjm@nac.net>2012-02-21 18:38:30 (EST)
commit2f9039e6af47a6a4b2f6e0c62d1ee45c4adeed1b (patch)
treef8c0918827a0c78f96c7a20e1cc4252cb6d5d9e2 /lib/controlfields
parentad930744790f0792c0442a24bd379f27a16f8f66 (diff)
Clean up control fields library file.
Delete an old commented-out function and update a function description.
Diffstat (limited to 'lib/controlfields')
-rw-r--r--lib/controlfields36
1 files changed, 1 insertions, 35 deletions
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 <http://www.gnu.org/licenses/>.
-# 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