forcing rpm-check if files added to the commit 55/16455/1
authorDan Radez <dradez@redhat.com>
Wed, 6 Jul 2016 13:50:16 +0000 (09:50 -0400)
committerDan Radez <dradez@redhat.com>
Wed, 6 Jul 2016 14:04:06 +0000 (10:04 -0400)
Change-Id: I88514fe95121ecc7e6e4cbb41f529404c815bf06
Signed-off-by: Dan Radez <dradez@redhat.com>
ci/build.sh

index fd079c9..af065b1 100755 (executable)
@@ -112,10 +112,10 @@ fi
 
 # Conditionally execute RPM build checks if the specs change and target is not rpm or iso
 if [[ "$MAKE_TARGETS" == "images" ]]; then
-    commit_file_list=$(git show --pretty="format:" --name-only)
+    commit_file_list=$(git show --pretty="format:" --name-status)
     if git show -s | grep "force-build-rpms"; then
         MAKE_TARGETS+=" rpms"
-    elif [[ $commit_file_list == *build/Makefile* ]]; then
+    elif [[ $commit_file_list == *"A$(printf '\t')"* || $commit_file_list == *build/Makefile* ]]; then
         # Makefile forces all rpms to be checked
         MAKE_TARGETS+=" rpms-check"
     else