summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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