|
14 | 14 | from src.Utilities.git_utilities import check_git_on_device |
15 | 15 | from src.Utilities.installer import make_action |
16 | 16 |
|
17 | | -UPDATER_VER = "0.0.1" |
| 17 | +UPDATER_VER = "0.1" |
18 | 18 | OS_TYPE = check_os() |
19 | 19 |
|
20 | 20 |
|
|
55 | 55 | print("work folder and updater dir here, check vim src folder") |
56 | 56 | if path.exists(USER_FOLDER + UPDATER_DIR): |
57 | 57 | print("vim folder here") |
58 | | - print(check_current_vim_version_in_system()) |
59 | 58 | print("cd vim & output vim version in system & start pull") |
60 | 59 | print("pulling") |
61 | 60 | isUpdated = git_action("pull", USER_FOLDER + UPDATER_DIR) |
62 | 61 | if isUpdated: |
63 | 62 | print("vim already up to date") |
| 63 | + print(check_current_vim_version_in_system()) |
| 64 | + print(check_current_vim_version_in_src(USER_FOLDER + UPDATER_DIR)) |
64 | 65 | sys_exit(0) |
65 | 66 | print(check_current_vim_version_in_src(USER_FOLDER + UPDATER_DIR)) |
66 | 67 | make_action("make", USER_FOLDER + UPDATER_DIR) |
67 | 68 | make_action("install", USER_FOLDER + UPDATER_DIR) |
| 69 | + print("vim updated to {}".format(check_current_vim_version_in_system())) |
68 | 70 |
|
69 | 71 | else: |
70 | 72 | git_action("clone", VIM_REPO, USER_FOLDER + UPDATER_DIR) |
71 | | - print(check_current_vim_version_in_src(USER_FOLDER + UPDATER_DIR + VIM_FOLDER)) |
| 73 | + print(check_current_vim_version_in_src(USER_FOLDER + UPDATER_DIR)) |
72 | 74 | make_action("make", USER_FOLDER + UPDATER_DIR) |
73 | 75 | make_action("install", USER_FOLDER + UPDATER_DIR) |
| 76 | + print("vim updated to {}".format(check_current_vim_version_in_system())) |
74 | 77 |
|
75 | 78 | elif path.isdir(USER_FOLDER) and not path.exists(USER_FOLDER + UPDATER_DIR): |
76 | 79 | print("can't find work folder") |
|
86 | 89 |
|
87 | 90 | print("start git clone") |
88 | 91 | git_action("clone", VIM_REPO, USER_FOLDER + UPDATER_DIR) |
89 | | - print(check_current_vim_version_in_src(USER_FOLDER + UPDATER_DIR + VIM_FOLDER)) |
| 92 | + print(check_current_vim_version_in_src(USER_FOLDER + UPDATER_DIR)) |
90 | 93 | make_action("make", USER_FOLDER + UPDATER_DIR) |
91 | 94 | make_action("install", USER_FOLDER + UPDATER_DIR) |
| 95 | + print("vim updated to {}".format(check_current_vim_version_in_system())) |
92 | 96 |
|
93 | 97 | else: |
94 | 98 | print("error with user folder: {user_folder}".format(user_folder=USER_FOLDER)) |
|
0 commit comments