Megatest

Diff
Login

Differences From Artifact [a70e001edf]:

To Artifact [b4faa297a9]:


401
402
403
404
405
406
407
408
409

410
411
412
413
414
415
416
417
418

419
420

421
422
423
424
425
426
427
401
402
403
404
405
406
407


408
409
410

411
412

413


414


415
416
417
418
419
420
421
422







-
-
+


-


-

-
-
+
-
-
+







               (substring (conc (common:get-last-run-version)) 0 4))))

;;======================================================================
;; Move me elsewhere ...
;; RADT => Why do we meed the version check here, this is called only if version misma
;;
(define (common:cleanup-db dbstruct #!key (full #f))
  (debug:print 0 *default-log-port* "WARNING: common:cleanup-db has NOT been reimplemented yet! Please fix!")
  #;(apply db:multi-db-sync 
  (apply db:multi-db-sync 
   dbstruct
   'schema
   ;; 'new2old
   'killservers
   'adj-target
   ;; 'old2new
   'new2old
   ;; (if full
       '(dejunk)
   '(dejunk)
       ;; '())
       )
  )
  (if (common:api-changed?)
      (common:set-last-run-version)))

(define (common:snapshot-file filepath #!key (subdir  ".") )
  (if (file-exists? filepath)
      (let* ((age-sec  (lambda (file)
                         (if (file-exists? file)