mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-08 16:06:16 -05:00
utils: Rename 'wrapper?' to 'wrapped-program?'.
* guix/build/utils.scm (wrap-program): The wrapper? procedure is incorrectly named as it actually checks to see if prog is the original program that was moved, not the wrapper. * guix/build/python-build-system: (wrap): Use renamed wrapped-program?. * gnu/packages/ebook.scm (calibre)[arguments]: Likewise. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
d115747362
commit
b2b799e2d8
3 changed files with 5 additions and 5 deletions
|
@ -324,7 +324,7 @@ (define-public calibre
|
|||
;; rather than create ..calibre-real-real-s. For more
|
||||
;; information see: https://issues.guix.gnu.org/43249.
|
||||
(find-files "." (lambda (file stat)
|
||||
(not (wrapper? file)))))))
|
||||
(not (wrapped-program? file)))))))
|
||||
#t)))))
|
||||
(home-page "https://calibre-ebook.com/")
|
||||
(synopsis "E-book library management software")
|
||||
|
|
|
@ -225,7 +225,7 @@ (define* (wrap #:key inputs outputs #:allow-other-keys)
|
|||
(define (list-of-files dir)
|
||||
(find-files dir (lambda (file stat)
|
||||
(and (eq? 'regular (stat:type stat))
|
||||
(not (wrapper? file))))))
|
||||
(not (wrapped-program? file))))))
|
||||
|
||||
(define bindirs
|
||||
(append-map (match-lambda
|
||||
|
|
|
@ -96,7 +96,7 @@ (define-module (guix build utils)
|
|||
patch-/usr/bin/file
|
||||
fold-port-matches
|
||||
remove-store-references
|
||||
wrapper?
|
||||
wrapped-program?
|
||||
wrap-program
|
||||
wrap-script
|
||||
|
||||
|
@ -1227,8 +1227,8 @@ (define-condition-type &wrap-error &error
|
|||
(program wrap-error-program)
|
||||
(type wrap-error-type))
|
||||
|
||||
(define (wrapper? prog)
|
||||
"Return #t if PROG is a wrapper as produced by 'wrap-program'."
|
||||
(define (wrapped-program? prog)
|
||||
"Return #t if PROG is a program that was moved and wrapped by 'wrap-program'."
|
||||
(and (file-exists? prog)
|
||||
(let ((base (basename prog)))
|
||||
(and (string-prefix? "." base)
|
||||
|
|
Loading…
Reference in a new issue