mass-delta-builder.py: Fix a typo about upgrade-tools dir 62/312762/1
authorJaehoon Chung <jh80.chung@samsung.com>
Fri, 14 Jun 2024 03:26:30 +0000 (12:26 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Fri, 14 Jun 2024 03:26:30 +0000 (12:26 +0900)
Fix a typo.
- s/UPGRATE_TOOLS_DIR/UPGRADE_TOOLS_DIR/

Change-Id: I47c242e3c2930cae804089913629c00779125e3a
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
mass-delta-builder/mass-delta-builder.py

index f70372dcde9cae3b57fd9c56ca57be6bc3c62539..d37a7cfac370810a76c84049dd030056a848a1ed 100755 (executable)
@@ -42,7 +42,7 @@ RESULT_DIR='/result/'
 FAIL_FILE = f"{IMAGES_DIR}/failed"
 MAX_FAIL = 3
 FAIL_CLEANUP_DAYS = 90
-UPGRATE_TOOLS_DIR='/upgrade-tools/'
+UPGRADE_TOOLS_DIR='/upgrade-tools/'
 
 
 class TotaDirType(Enum):
@@ -721,7 +721,7 @@ class DeltaBuilder:
         return None
 
     def get_tota_dir(self, target_cfg_name, tota_dir_type):
-        BASE_PATH = os.path.join(UPGRATE_TOOLS_DIR, "mk_delta")
+        BASE_PATH = os.path.join(UPGRADE_TOOLS_DIR, "mk_delta")
         if tota_dir_type == TotaDirType.Old:
             return os.path.join(BASE_PATH, target_cfg_name, "data", "old_tar")
 
@@ -775,8 +775,8 @@ class DeltaBuilder:
             self.place_images_in_appropriate_dirs(order)
 
             build_type = "full" if order.delta_type == DeltaType.full else "common"
-            args = [os.path.join(UPGRATE_TOOLS_DIR, "scripts/delta-generation.sh"),
-                    UPGRATE_TOOLS_DIR,
+            args = [os.path.join(UPGRADE_TOOLS_DIR, "scripts/delta-generation.sh"),
+                    UPGRADE_TOOLS_DIR,
                     order.target_cfg_name(),
                     build_type]
             process = subprocess.run(args, check=True)