(define (normal-dirname dirname)
(and dirname
- (not (string-null? dirname))
+ (not (and (string? dirname)
+ (string-null? dirname)))
(->namestring (pathname-as-directory dirname))))
\f
(define (update-plugin-lib operation name project scmlibdir)
(declare (ignore project))
- (if (file-exists? (merge-pathnames "optiondb.scm" scmlibdir))
+ (if (file-exists? (string scmlibdir"optiondb.scm"))
;; NOT in dpkg-buildpackage's chroot
(update-optiondb (update-plugins-file operation name scmlibdir)
scmlibdir)))
(update-html-index project plugins scmdocdir)))
(define (read-plugins-file dir)
- (let ((filename (merge-pathnames "plugins.scm" dir)))
+ (let ((filename (string dir"plugins.scm")))
(if (file-exists? filename)
(call-with-input-file filename read)
'())))
(define (update-plugins-file operation name dir)
- (let ((filename (merge-pathnames "plugins.scm" dir)))
+ (let ((filename (string dir"plugins.scm")))
(if (file-exists? filename)
(rewrite-file filename
(lambda (in out)