diff options
Diffstat (limited to '.travis/build-pkgs')
-rwxr-xr-x | .travis/build-pkgs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/.travis/build-pkgs b/.travis/build-pkgs index 75fc444674..c3f2bb79e2 100755 --- a/.travis/build-pkgs +++ b/.travis/build-pkgs @@ -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 % |