Removing duplicate definition.

This commit is contained in:
Alex Shinn 2014-06-11 23:36:49 +09:00
parent c5179f2271
commit c0775c23ed
2 changed files with 4 additions and 9 deletions

View file

@ -906,7 +906,10 @@
(package-libraries pkg))))
(install-package-meta-info
impl cfg
`(,@pkg (installed-files ,@installed-files)))))))))))
`(,@(remove (lambda (x)
(and (pair? x) (eq? 'installed-files (car x))))
pkg)
(installed-files ,@installed-files)))))))))))
(define (install-for-implementation repo impl cfg pkgs)
(for-each (lambda (pkg) (install-package repo impl cfg pkg)) pkgs))

View file

@ -201,14 +201,6 @@
(else (map (lambda (x) (or (string->number x) (string->symbol x)))
(string-split str #\.)))))
(define (library-name->path name)
(and (pair? name)
(let lp ((ls (cdr name)) (res (list (car name))))
(if (null? ls)
(apply string-append
(map display-to-string (reverse (cons ".sld" res))))
(lp (cdr ls) (cons (car ls) (cons "/" res)))))))
(define (check-cond-expand config test)
(define (library-installed? config name)
;; assume it could be installed for now