mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-01 12:20:51 +08:00
Fix abapGit repo existence check
Before this commit is applied forked abapGit repos aren't recognized
This commit is contained in:
parent
c465a6b2e8
commit
b3996f2cfa
|
@ -9,6 +9,7 @@ CLASS zcl_abapgit_services_abapgit DEFINITION
|
||||||
CONSTANTS c_abapgit_wikipage TYPE string VALUE 'http://docs.abapgit.org' ##NO_TEXT.
|
CONSTANTS c_abapgit_wikipage TYPE string VALUE 'http://docs.abapgit.org' ##NO_TEXT.
|
||||||
CONSTANTS c_package_abapgit TYPE devclass VALUE '$ABAPGIT' ##NO_TEXT.
|
CONSTANTS c_package_abapgit TYPE devclass VALUE '$ABAPGIT' ##NO_TEXT.
|
||||||
CONSTANTS c_abapgit_url TYPE string VALUE 'https://github.com/larshp/abapGit.git' ##NO_TEXT.
|
CONSTANTS c_abapgit_url TYPE string VALUE 'https://github.com/larshp/abapGit.git' ##NO_TEXT.
|
||||||
|
CONSTANTS c_abapgit_tcode TYPE tcode VALUE `ZABAPGIT` ##NO_TEXT.
|
||||||
|
|
||||||
CLASS-METHODS open_abapgit_homepage
|
CLASS-METHODS open_abapgit_homepage
|
||||||
RAISING
|
RAISING
|
||||||
|
@ -102,13 +103,11 @@ CLASS zcl_abapgit_services_abapgit IMPLEMENTATION.
|
||||||
|
|
||||||
METHOD is_installed.
|
METHOD is_installed.
|
||||||
|
|
||||||
TRY.
|
DATA: ls_item TYPE zif_abapgit_definitions=>ty_item.
|
||||||
rv_installed = zcl_abapgit_repo_srv=>get_instance( )->is_repo_installed( c_abapgit_url ).
|
|
||||||
" TODO, alternative checks for presence in the system
|
ls_item-obj_type = 'TRAN'.
|
||||||
CATCH zcx_abapgit_exception.
|
ls_item-obj_name = c_abapgit_tcode.
|
||||||
" cannot be installed anyway in this case, e.g. no connection
|
rv_installed = zcl_abapgit_objects=>exists( ls_item ).
|
||||||
rv_installed = abap_false.
|
|
||||||
ENDTRY.
|
|
||||||
|
|
||||||
ENDMETHOD.
|
ENDMETHOD.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user