summaryrefslogtreecommitdiff
path: root/src/chroot-tools
diff options
context:
space:
mode:
Diffstat (limited to 'src/chroot-tools')
-rwxr-xr-xsrc/chroot-tools/librechroot4
-rwxr-xr-xsrc/chroot-tools/libremakepkg11
2 files changed, 8 insertions, 7 deletions
diff --git a/src/chroot-tools/librechroot b/src/chroot-tools/librechroot
index 5027938..5afce05 100755
--- a/src/chroot-tools/librechroot
+++ b/src/chroot-tools/librechroot
@@ -20,11 +20,11 @@
# You should have received a copy of the GNU General Public License
# along with Parabola. If not, see <http://www.gnu.org/licenses/>.
-. /usr/share/libretools/conf.sh
+. $(librelib conf.sh)
load_conf_libretools_chroot
. libremessages
-. /usr/share/devtools/makechrootpkg.sh
+. $(librelib makechrootpkg)
# Because the makechrootpkg.sh library functions don't work with -euE
normshell() (
diff --git a/src/chroot-tools/libremakepkg b/src/chroot-tools/libremakepkg
index cdd2f39..f1b3916 100755
--- a/src/chroot-tools/libremakepkg
+++ b/src/chroot-tools/libremakepkg
@@ -20,10 +20,11 @@
# You should have received a copy of the GNU General Public License
# along with Parabola. If not, see <http://www.gnu.org/licenses/>.
-. /usr/share/libretools/conf.sh
+. $(librelib conf.sh)
load_conf_libretools_chroot
. libremessages
+makechrootpkg=$(librelib makechrootpkg)
shopt -s nullglob
umask 0022
@@ -74,7 +75,7 @@ EOF
# Usage: add_to_local_repo $copydir $pkgfiles...
add_to_local_repo() (
set +euE
- . /usr/share/devtools/makechrootpkg.sh
+ . $makechrootpkg
chroot_add_to_local_repo "$@"
)
@@ -84,7 +85,7 @@ add_to_local_repo() (
# - $SRCDEST is set
chroot_copy_in() (
set +euE
- . /usr/share/devtools/makechrootpkg.sh
+ . $makechrootpkg
chroot_copy_in "$@"
)
@@ -94,7 +95,7 @@ chroot_copy_in() (
# - $PKGDEST is set
chroot_copy_out() (
set +euE
- . /usr/share/devtools/makechrootpkg.sh
+ . $makechrootpkg
chroot_copy_out_pkgs "$@"
chroot_copy_out_logs "$@"
chroot_copy_out_srcs "$@"
@@ -103,7 +104,7 @@ chroot_copy_out() (
# Usage: chroot_let_nobody_use_pacman $copydir
chroot_let_nobody_use_pacman() (
set +euE
- . /usr/share/devtools/makechrootpkg.sh
+ . $makechrootpkg
chroot_let_nobody_use_pacman "$@"
)