Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Paste
P1495
from cache
Active
Public
Actions
Authored by
ardumont
on Oct 12 2022, 1:12 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Subscribers
None
(defun from-cache (wdir dir id)
"Read cache information from *working-directory*/<DIR>/<ID>"
(let ((cache-path (format nil "~A/~A/~A" wdir dir id)))
(when (probe-file cache-path)
(with-open-file (stream cache-path)
(read stream)))))
(setf *repositories-cache*
(from-cache "/var/tmp/forgerie/phabricator" "everything" "repositories"))
(forgerie-core:vc-repository-slug (first *repositories-cache*)) ; => "puppet-environment"
Event Timeline
ardumont
created this paste.
Oct 12 2022, 1:12 PM
2022-10-12 13:12:17 (UTC+2)
ardumont
edited the content of this paste.
(Show Details)
Oct 12 2022, 2:26 PM
2022-10-12 14:26:30 (UTC+2)
Log In to Comment