diff options
Diffstat (limited to 'src/proquivs')
-rwxr-xr-x | src/proquivs | 11 |
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_')}\" | \ |