Change-Id: I39a7da02dbf9ca0b0a05343387e86f572c57037d
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/11372
Reviewed-by: Michelle Wang <michellew@vmware.com>
Tested-by: Michelle Wang <michellew@vmware.com>
... | ... |
@@ -411,6 +411,8 @@ class CleanUp: |
411 | 411 |
"%s/support/package-builder/SpecDeps.py" % (curDir), |
412 | 412 |
configdict["photon-build-param"]["base-commit"]) |
413 | 413 |
subprocess.Popen(command, shell=True).wait() |
414 |
+ if subprocess.Popen(command, shell=True).wait() != 0: |
|
415 |
+ raise Exception("Not able to run clean_stage_for_incremental_build") |
|
414 | 416 |
|
415 | 417 |
#test -n "$(git diff --name-only @~1 @ | grep '^support/\(make\|package-builder\|pullpublishrpms\)')" && \ |
416 | 418 |
# { echo "Remove all staged RPMs"; $(RM) -rf $(PHOTON_RPMS_DIR); } ||: |
... | ... |
@@ -418,7 +420,6 @@ class CleanUp: |
418 | 418 |
{ cd %s; echo \"Remove all staged RPMs\"; /bin/rm -rf ./stage/RPMS; } ||:" % (configdict["photon-path"]) |
419 | 419 |
if subprocess.Popen(command, shell=True).wait() != 0: |
420 | 420 |
raise Exception("Not able to run clean_stage_for_incremental_build") |
421 |
- return |
|
422 | 421 |
|
423 | 422 |
|
424 | 423 |
# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |