Setup relevant directories in case epoch changes

This commit is contained in:
Waqar Ahmed
2021-08-16 14:52:55 +05:00
parent c534fac6f1
commit d8a92b66c3

View File

@@ -2,6 +2,7 @@ import logging
import os
from .clean import complete_cleanup
from .preflight import setup_dirs
from .utils.manifest import get_manifest
from .utils.paths import TMP_DIR
@@ -25,5 +26,6 @@ def check_epoch():
logger.warning('Build epoch changed! Removing temporary files and forcing clean build.')
update_epoch(current_epoch)
complete_cleanup()
setup_dirs()
else:
update_epoch(current_epoch)