Make the dumps page work when dumps is a symlink
This commit is contained in:
parent
b19227c086
commit
c59d90c26b
1 changed files with 8 additions and 1 deletions
|
|
@ -77,7 +77,14 @@ reaches the Guix Data Service"))
|
||||||
|
|
||||||
(sort (file-system-fold enter? leaf down up skip error
|
(sort (file-system-fold enter? leaf down up skip error
|
||||||
'() ; Start with an empty alist
|
'() ; Start with an empty alist
|
||||||
(%config 'dumps-dir))
|
(%config 'dumps-dir)
|
||||||
|
(lambda args
|
||||||
|
;; Use stat, then fall back to lstat if that fails
|
||||||
|
(catch #t
|
||||||
|
(lambda ()
|
||||||
|
(apply stat args))
|
||||||
|
(lambda _
|
||||||
|
(apply lstat args)))))
|
||||||
(lambda (a b)
|
(lambda (a b)
|
||||||
;; Sort so that the recent dumps are first
|
;; Sort so that the recent dumps are first
|
||||||
(string>? (car a) (car b)))))
|
(string>? (car a) (car b)))))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue