File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1616IDOM_CLIENT_IMPORT_SOURCE_URL_INFIX = "/_snowpack/pkg"
1717
1818
19- if getmtime (BACKUP_BUILD_DIR ) > getmtime (IDOM_CLIENT_BUILD_DIR .current ):
20- # delete the runtime build if the backup build is newer (i.e. IDOM was re-installed)
21- shutil .rmtree (IDOM_CLIENT_BUILD_DIR .current )
22-
2319if not IDOM_CLIENT_BUILD_DIR .current .exists ():
2420 # populate the runtime build directory if it doesn't exist
2521 shutil .copytree (BACKUP_BUILD_DIR , IDOM_CLIENT_BUILD_DIR .current , symlinks = True )
22+ elif getmtime (BACKUP_BUILD_DIR ) > getmtime (IDOM_CLIENT_BUILD_DIR .current ):
23+ # delete the existing runtime build because it's out of date
24+ shutil .rmtree (IDOM_CLIENT_BUILD_DIR .current )
25+ # replace it with the newer backup build (presumable from a fresh install)
26+ shutil .copytree (BACKUP_BUILD_DIR , IDOM_CLIENT_BUILD_DIR .current , symlinks = True )
2627
2728
2829def get_user_packages_file (app_dir : Path ) -> Path :
You can’t perform that action at this time.
0 commit comments