From ec4223a6a689b341bf4a60c3e7eb0e6211b0e5f3 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 4 Jan 2015 15:25:38 -0500 Subject: Found a mistake in librefetch-install, use @pkgconfdir@ to avoid those types of errors --- src/lib/conf.sh.in | 3 ++- src/librefetch/librefetch-install.in | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/lib/conf.sh.in b/src/lib/conf.sh.in index 8042f8f..8305397 100644 --- a/src/lib/conf.sh.in +++ b/src/lib/conf.sh.in @@ -39,6 +39,7 @@ fi list_files() { local slug=$1 local sysconfdir=${_librelib_conf_sh_sysconfdir:-@sysconfdir@} + local pkgconfdir=${_librelib_conf_sh_pkgconfdir:-@pkgconfdir@} case $slug in abs) echo "${sysconfdir}/$slug.conf" @@ -71,7 +72,7 @@ list_files() { echo "$XDG_CONFIG_HOME/libretools/$slug.conf" ;; *) - echo "${sysconfdir}/libretools.d/$slug.conf" + echo "${pkgconfdir}/$slug.conf" echo "$XDG_CONFIG_HOME/libretools/$slug.conf" ;; esac diff --git a/src/librefetch/librefetch-install.in b/src/librefetch/librefetch-install.in index 1a18757..34815a7 100644 --- a/src/librefetch/librefetch-install.in +++ b/src/librefetch/librefetch-install.in @@ -24,7 +24,7 @@ set -ueE . "$(librelib messages)" # This line should be installed -new_code='. @sysconfdir@/libretools/librefetch-makepkg.conf # This line was added by librefetch-install' +new_code='. @pkgconfdir@/librefetch-makepkg.conf # This line was added by librefetch-install' # These lines were installed by previous versions of this script old_code=( -- cgit v1.2.2