PROG: Remove inactive sources during uninstall (#4141)

This commit is contained in:
Marc Bernard 2020-11-07 03:24:34 -05:00 committed by GitHub
parent e9e90a4ff1
commit 098682dcbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -126,8 +126,10 @@ CLASS ZCL_ABAPGIT_OBJECT_PROG IMPLEMENTATION.
permission_failure = 3 permission_failure = 3
reject_deletion = 4 reject_deletion = 4
OTHERS = 5. OTHERS = 5.
IF sy-subrc = 2.
IF sy-subrc <> 0. " Drop also any inactive code that is left in REPOSRC
DELETE REPORT lv_program ##SUBRC_OK.
ELSEIF sy-subrc <> 0.
zcx_abapgit_exception=>raise( |Error from RS_DELETE_PROGRAM: { sy-subrc }| ). zcx_abapgit_exception=>raise( |Error from RS_DELETE_PROGRAM: { sy-subrc }| ).
ENDIF. ENDIF.