summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2020-08-01 22:53:21 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2020-08-01 23:19:26 (EDT)
commitd405fbae565f5d3ae716ff7db9aec94b4fa37148 (patch)
tree7302b145d3a63c04ebd9a072992b5d90da3ec4e8
parentc1ac58c0cbd29aff34ad7fd538d743b82f14a42c (diff)
src/proquivs: Drop Section field entirely
It's not necessary for packages that aren't processed by pro-archman.
-rwxr-xr-xsrc/proquivs11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/proquivs b/src/proquivs
index ea2d141..e9beb2d 100755
--- a/src/proquivs
+++ b/src/proquivs
@@ -4,7 +4,7 @@ set -eu
. /usr/share/sh/libopkbuild.shso.2
-FIELDS='Package Source Version Architecture Platform Section Maintainer
+FIELDS='Package Source Version Architecture Platform Maintainer
Essential Depends Recommends Suggests Pre-Depends Conflicts Provides
Replaces Description Homepage'
@@ -13,7 +13,6 @@ field_source='proquivs-dummy'
field_version='1.0'
field_architecture='all'
field_platform='all'
-field_section=''
field_maintainer='"J. Random Hacker" <jrandom@example.com>'
field_essential=''
field_depends=''
@@ -95,12 +94,6 @@ build()
"${field_package}" 1>&2
return 1
fi
- if [ -n "${field_section}" ] && \
- ! ob_validate_section "${field_section}"; then
- printf 'proquivs: Error: Invalid section name "%s"\n' \
- "${field_section}" 1>&2
- return 1
- fi
if ! mkdir 'proquivs'; then
printf 'proquivs: Error: Failed to create package\n' 1>&2
@@ -139,7 +132,7 @@ build()
exec 3>"${field_package}.pkg/control"
printf 'Architecture: %s\n' "${field_architecture}" 1>&3
printf 'Platform: %s\n' "${field_platform}" 1>&3
- for name in Section Essential Depends Recommends Suggests Pre-Depends \
+ for name in Essential Depends Recommends Suggests Pre-Depends \
Conflicts Provides Replaces; do
eval "value=\"\$(printf '%s' \"\${field_$(\
printf '%s' "${name}" | tr 'A-Z-' 'a-z_')}\" | \