File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 16
16
IDOM_CLIENT_IMPORT_SOURCE_URL_INFIX = "/_snowpack/pkg"
17
17
18
18
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
-
23
19
if not IDOM_CLIENT_BUILD_DIR .current .exists ():
24
20
# populate the runtime build directory if it doesn't exist
25
21
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 )
26
27
27
28
28
29
def get_user_packages_file (app_dir : Path ) -> Path :
You can’t perform that action at this time.
0 commit comments