[Pkg-gnupg-commit] [gnupg2] 19/112: gpgscm: Make function more general.
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Tue Aug 30 17:48:15 UTC 2016
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch master
in repository gnupg2.
commit 9ee23a715d5dad6bf568a2deb1c55bf15601cf51
Author: Justus Winter <justus at g10code.com>
Date: Fri Jul 22 17:42:17 2016 +0200
gpgscm: Make function more general.
* tests/gpgscm/tests.scm (in-srcdir): Accept more path fragments.
Signed-off-by: Justus Winter <justus at g10code.com>
---
tests/gpgscm/tests.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/gpgscm/tests.scm b/tests/gpgscm/tests.scm
index 58b1430..e14e0e3 100644
--- a/tests/gpgscm/tests.scm
+++ b/tests/gpgscm/tests.scm
@@ -180,8 +180,8 @@
path
(string-append (getcwd) "/" path)))
-(define (in-srcdir what)
- (canonical-path (string-append (getenv "srcdir") "/" what)))
+(define (in-srcdir . names)
+ (canonical-path (apply path-join (cons (getenv "srcdir") names))))
;; Try to find NAME in PATHS. Returns the full path name on success,
;; or raises an error.
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git
More information about the Pkg-gnupg-commit
mailing list