mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-07-14 08:27:34 +02:00
package-name should ignore empty names
This commit is contained in:
parent
8814f5951c
commit
bfbb8c42fe
1 changed files with 5 additions and 7 deletions
|
@ -69,13 +69,11 @@
|
||||||
(define (package-name package)
|
(define (package-name package)
|
||||||
(and (pair? package)
|
(and (pair? package)
|
||||||
(eq? 'package (car package))
|
(eq? 'package (car package))
|
||||||
(cond ((assoc-get (cdr package) 'name)
|
(or (cond ((assoc-get (cdr package) 'name)
|
||||||
=> (lambda (x) (and (pair? x) x)))
|
=> (lambda (x) (and (pair? x) x)))
|
||||||
((assq 'library (cdr package))
|
(else #f))
|
||||||
=> (lambda (x) (library-name x)))
|
(any library-name (package-libraries package))
|
||||||
((assq 'progam (cdr package))
|
(any program-name (package-programs package)))))
|
||||||
=> (lambda (x) (program-name x)))
|
|
||||||
(else #f))))
|
|
||||||
|
|
||||||
(define (package-email pkg)
|
(define (package-email pkg)
|
||||||
(and (package? pkg)
|
(and (package? pkg)
|
||||||
|
|
Loading…
Add table
Reference in a new issue