diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/oh-gencontrol | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/oh-gencontrol b/src/oh-gencontrol index 1c322d5..e0af798 100644 --- a/src/oh-gencontrol +++ b/src/oh-gencontrol @@ -112,6 +112,12 @@ else >> ${control} [ ${?} -eq 1 ] && missing_field Architecture + # XXX: If an optional field is omitted, its name is still written out. + # Fields should be handled by wrapper functions, e.g.: + # copy_required_field Maintainer + # copy_required_field ${binpkg} Description + # copy_optional_field Homepage + # Optional fields. { printf 'Essential: ' && oh_get_field ${binpkg} Essential;} >> ${control} { printf 'Depends: ' && oh_get_field ${binpkg} Depends;} >> ${control} |