Browse Source

package uploader: do not require build.sh when deleting package

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

6
scripts/package_uploader.sh

@ -518,6 +518,9 @@ process_packages() {
emergency_exit emergency_exit
fi fi
if $PACKAGE_DELETION_MODE; then
delete_package "$package_name" || continue
else
if [ ! -f "$TERMUX_PACKAGES_BASEDIR/packages/$1/build.sh" ]; then if [ ! -f "$TERMUX_PACKAGES_BASEDIR/packages/$1/build.sh" ]; then
msg " * ${package_name}: skipping because such package does not exist." msg " * ${package_name}: skipping because such package does not exist."
continue continue
@ -565,11 +568,10 @@ process_packages() {
if $PACKAGE_CLEANUP_MODE; then if $PACKAGE_CLEANUP_MODE; then
delete_old_versions_from_package "$package_name" || continue delete_old_versions_from_package "$package_name" || continue
elif $PACKAGE_DELETION_MODE; then
delete_package "$package_name" || continue
else else
upload_package "$package_name" || continue upload_package "$package_name" || continue
fi fi
fi
done done
if $SCRIPT_EMERG_EXIT; then if $SCRIPT_EMERG_EXIT; then

Loading…
Cancel
Save