Browse Source

package_uploader.sh: handle licenses "custom" and "non-free"

emacs-27
Leonid Plyushch 6 years ago
parent
commit
c1b444a9b1
  1. 8
      scripts/package_uploader.sh

8
scripts/package_uploader.sh

@ -142,7 +142,7 @@ emergency_exit() {
json_metadata_dump() { json_metadata_dump() {
local old_ifs=$IFS local old_ifs=$IFS
local license local license
local pkg_licenses local pkg_licenses=""
IFS="," IFS=","
for license in ${PACKAGE_METADATA['LICENSES']}; do for license in ${PACKAGE_METADATA['LICENSES']}; do
@ -550,10 +550,8 @@ process_packages() {
msg " * ${package_name}: skipping because field 'TERMUX_PKG_LICENSE' is empty." msg " * ${package_name}: skipping because field 'TERMUX_PKG_LICENSE' is empty."
SCRIPT_ERROR_EXIT=true SCRIPT_ERROR_EXIT=true
continue continue
elif grep -qP '.*custom.*' <(echo "${PACKAGE_METADATA['LICENSES']}"); then elif grep -qP '.*(custom|non-free).*' <(echo "${PACKAGE_METADATA['LICENSES']}"); then
msg " * ${package_name}: skipping because it has custom license." PACKAGE_METADATA["LICENSES"]=""
SCRIPT_ERROR_EXIT=true
continue
fi fi
PACKAGE_METADATA["DESCRIPTION"]=$(get_package_property "$package_name" "TERMUX_PKG_DESCRIPTION") PACKAGE_METADATA["DESCRIPTION"]=$(get_package_property "$package_name" "TERMUX_PKG_DESCRIPTION")

Loading…
Cancel
Save