summaryrefslogtreecommitdiff
path: root/henrietta-cache.scm
diff options
context:
space:
mode:
Diffstat (limited to 'henrietta-cache.scm')
-rw-r--r--henrietta-cache.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/henrietta-cache.scm b/henrietta-cache.scm
index 9daa883..15921af 100644
--- a/henrietta-cache.scm
+++ b/henrietta-cache.scm
@@ -169,7 +169,8 @@ EOF
(make-pathname tmp-dir dir))
(else tmp-dir))))
(move-to-cache contents-dir cache-dir)
- (delete-directory tmp-dir #t) ; sloppy; don't know which dir selected
+ (unless (eq? contents-dir tmp-dir)
+ (delete-directory tmp-dir #t)) ; remove parent if needed
(delete-file tmp-file) ))))
(define (download-release distribution-file-type uri cache-dir)