Commit e0cf3181 authored by Jakub Jirutka's avatar Jakub Jirutka

travis: fix changed_abuilds() to ignore deleted APKBUILDs

parent a13b023b
......@@ -22,9 +22,10 @@ changed_abuilds() {
local repo="$1"
local commit_ish="$2"
# Get names of repo's subdirectories with modified APKBUILD.
local aports="$(git diff-tree -r --relative="$repo" --name-only "$commit_ish" -- '*APKBUILD' \
| xargs -I% dirname % | xargs)"
# Get names of repo's subdirectories with modified APKBUILD,
# but ignore deleted ones.
local aports="$(git diff-tree -r --relative="$repo" --name-only --diff-filter=ACMR \
"$commit_ish" -- '*APKBUILD' | xargs -I% dirname % | xargs)"
# Sort abuilds by build order.
ap builddirs -d "$(pwd)/$repo" $aports 2>/dev/null | xargs -I% basename %
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment