Skip to content

Commit

Permalink
fix: patch completion message is shown even though the cache director…
Browse files Browse the repository at this point in the history
…y has not been completely removed
  • Loading branch information
inotia00 committed Oct 9, 2023
1 parent 355b657 commit 756814a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions wsEvents/patchApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ module.exports = async function patchApp(ws) {
})
);

if (data.toString().includes('Purging')) await afterBuild(ws);
if (data.toString().includes('Purged') || data.toString().includes('purge')) await afterBuild(ws);

if (data.toString().includes('INSTALL_FAILED_UPDATE_INCOMPATIBLE')) {
await reinstallReVanced(ws);
Expand All @@ -205,7 +205,7 @@ module.exports = async function patchApp(ws) {
})
);

if (data.toString().includes('Purging')) await afterBuild(ws);
if (data.toString().includes('Purged') || data.toString().includes('purge')) await afterBuild(ws);

if (data.toString().includes('INSTALL_FAILED_UPDATE_INCOMPATIBLE')) {
await reinstallReVanced(ws);
Expand Down
4 changes: 2 additions & 2 deletions wsEvents/patchAppWithRipLibs.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ module.exports = async function patchAppWithRipLibs(ws) {
})
);

if (data.toString().includes('Purging')) await afterBuild(ws);
if (data.toString().includes('Purged') || data.toString().includes('purge')) await afterBuild(ws);

if (data.toString().includes('INSTALL_FAILED_UPDATE_INCOMPATIBLE')) {
await reinstallReVanced(ws);
Expand All @@ -229,7 +229,7 @@ module.exports = async function patchAppWithRipLibs(ws) {
})
);

if (data.toString().includes('Purging')) await afterBuild(ws);
if (data.toString().includes('Purged') || data.toString().includes('purge')) await afterBuild(ws);

if (data.toString().includes('INSTALL_FAILED_UPDATE_INCOMPATIBLE')) {
await reinstallReVanced(ws);
Expand Down

0 comments on commit 756814a

Please sign in to comment.