snow on CSAN

This commit is contained in:
erana 2012-01-28 03:02:22 +09:00
parent dc5cdfdbe8
commit 1dc953ec8f
5 changed files with 19 additions and 11 deletions

View File

@ -214,8 +214,9 @@ a valid CSAN URL now.
"22. Please remember to call 'o conf commit' to make the config permanent!
cpan shell -- CSAN exploration and modules installation (v1.9402)
Enter 'h' for help.")
cpan shell -- CSAN exploration and modules installation (v0.1)
Enter 'h' for help.
Commands : get filename.tar.gz")
(define questions (make-table))
(table-set! questions 1 CSAN-shell-droptext-1)

View File

@ -1,6 +1,8 @@
(define-interface CSAN-interface
(export
CSAN-question~))
CSAN-question~
CSAN-shell-spawn
CSAN-dir))
(define-structure CSAN
CSAN-interface

View File

@ -1,4 +1,4 @@
;;; load.scm - a scheme CSAN
;;; load.scm - a scheme CSAN - Snow utility
;;;
;;; Copyright (c) 2012 Johan Ceuppens
;;;
@ -27,4 +27,9 @@
;;; THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
(load "snow-repository.scm")
(display (snow-repository "./test.scm" '()))
(let* ((url (snow-repository "./test.scm" '()))
(snow-mirror-url url))
(display (question? 22))
(CSAN-shell-spawn CSAN-dir snow-mirror-url))

View File

@ -4,6 +4,6 @@
(define-structure snow
snow-interface
(open scheme)
(files snow))
(open scheme CSAN)
(files snow-repository))

View File

@ -72,7 +72,7 @@
(set! index4 (parse-for contents "url" index))
(set! urlstr (parse-for-url contents index4))
(set! db (append db (cons "url" urlstr)))
(set! db (append db (list (list "url" urlstr))))
db))