From 24bc63e1a2d36d9024b109e757e8fd01e510ffec Mon Sep 17 00:00:00 2001
From: SinTan1729 <sayantan.santra689@gmail.com>
Date: Sat, 2 Mar 2024 18:53:49 -0600
Subject: [PATCH] fix: Do not check for apk updates with checkonly flag

---
 src/ReVancedBuilder/ReVancedBuilder.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ReVancedBuilder/ReVancedBuilder.py b/src/ReVancedBuilder/ReVancedBuilder.py
index cbb64a4..9f018ef 100755
--- a/src/ReVancedBuilder/ReVancedBuilder.py
+++ b/src/ReVancedBuilder/ReVancedBuilder.py
@@ -164,7 +164,7 @@ appstate['up-to-date'] = True
 if flag != 'buildonly':
     appstate = update_tools(appstate)
     appstate = update_microg(appstate)
-    if not appstate['up-to-date'] or flag == 'force':
+    if (not appstate['up-to-date'] and flag != 'checkonly') or flag == 'force':
         appstate = get_apks(appstate)
 
 if (flag != 'checkonly' and not appstate['up-to-date']) or flag in ['force', 'buildonly']: