build-system/dub: Fix typo.

* guix/build/dub-build-system.scm (grep, grep*): Correct ‘occurence’.
This commit is contained in:
Tobias Geerinckx-Rice 2018-01-25 03:53:42 +01:00
parent 33ecc7a4d1
commit 980bcecdab
No known key found for this signature in database
GPG Key ID: 0DB0FF884F556D79

View File

@ -1,6 +1,7 @@
;;; GNU Guix --- Functional package management for GNU ;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2016 David Craven <david@craven.ch> ;;; Copyright © 2016 David Craven <david@craven.ch>
;;; Copyright © 2017 Danny Milosavljevic <dannym@scratchpost.org> ;;; Copyright © 2017 Danny Milosavljevic <dannym@scratchpost.org>
;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -69,14 +70,14 @@
(zero? (system* "dub" "add-path" vendor-dir)))) (zero? (system* "dub" "add-path" vendor-dir))))
(define (grep string file-name) (define (grep string file-name)
"Find the first occurence of STRING in the file named FILE-NAME. "Find the first occurrence of STRING in the file named FILE-NAME.
Return the position of this occurence, or #f if none was found." Return the position of this occurrence, or #f if none was found."
(string-contains (call-with-input-file file-name get-string-all) (string-contains (call-with-input-file file-name get-string-all)
string)) string))
(define (grep* string file-name) (define (grep* string file-name)
"Find the first occurence of STRING in the file named FILE-NAME. "Find the first occurrence of STRING in the file named FILE-NAME.
Return the position of this occurence, or #f if none was found. Return the position of this occurrence, or #f if none was found.
If the file named FILE-NAME doesn't exist, return #f." If the file named FILE-NAME doesn't exist, return #f."
(catch 'system-error (catch 'system-error
(lambda () (lambda ()