From 865b8c553722a971c68742c2e849e41eb0e2360c Mon Sep 17 00:00:00 2001 From: Zhu Zihao Date: Thu, 24 Jun 2021 23:43:50 +0800 Subject: [PATCH] Replace code that search path with placeholder for configuration. --- telega-server.el | 6 +----- telega-util.el | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/telega-server.el b/telega-server.el index 999125d..0fa0817 100644 --- a/telega-server.el +++ b/telega-server.el @@ -142,11 +142,7 @@ Otherwise query user about building flags." (defun telega-server--find-bin () "Find telega-server executable. Raise error if not found." - (let ((exec-path (cons telega-directory exec-path))) - (or (executable-find "telega-server") - (progn (telega-server-build) - (executable-find "telega-server")) - (error "`telega-server' not found in exec-path")))) + "@TELEGA_SERVER_BIN@") (defun telega-server-version () "Return telega-server version." diff --git a/telega-util.el b/telega-util.el index 73a46b1..f53e20a 100644 --- a/telega-util.el +++ b/telega-util.el @@ -464,7 +464,7 @@ N can't be 0." (defun telega-etc-file (filename) "Return absolute path to FILENAME from etc/ directory in telega." - (expand-file-name (concat "etc/" filename) telega--lib-directory)) + (concat "@TELEGA_SHARE@" "/" filename)) (defun telega-link-props (link-type link-to &optional face) "Generate props for link button openable with `telega-link--button-action'." -- 2.32.0 ca4f15885'>diff
path: root/tests/gnu-maintenance.scm
AgeCommit message (Expand)Author
2021-05-28gnu-maintenance: 'release-file?' accepts 'v' prefix as in "PKG-v1.2.tgz"....* guix/gnu-maintenance.scm (%tarball-rx, %package-name-rx): Accept 'v' and 'V' prefixes. Accept ".tgz" extension. * tests/gnu-maintenance.scm ("release-file?"): Add test. Ludovic Courtès
2021-04-05gnu-maintenance: Recognize more source tarball naming schemes....* guix/gnu-maintenance.scm (%package-name-rx): Add ".src" and ".orig" suffixes. * tests/gnu-maintenance.scm ("release-file?"): Add mpg321 and bvi examples. ("tarball->version"): New test. Ludovic Courtès
2021-03-29gnu-maintenance: Recognize "-source" tarball suffix....Fixes <https://bugs.gnu.org/47398>. Reported by Léo Le Bouter <lle-bout@zaclys.net>. * guix/gnu-maintenance.scm (%tarball-rx): Add "-[Ss]ource" suffix. * tests/gnu-maintenance.scm ("release-file?"): Add exiv2 example. Ludovic Courtès
2021-03-20gnu-maintenance: Accept underscores as package/version separators....Fixes <https://bugs.gnu.org/47256>. Reported by Léo Le Bouter <lle-bout@zaclys.net>. * guix/gnu-maintenance.scm (%tarball-rx, %package-name-rx): Accept underscore as the package/version separator in tarball names. * tests/gnu-maintenance.scm ("release-file?"): Add "mediainfo" test. Ludovic Courtès