summaryrefslogtreecommitdiff
path: root/src/chroot-tools/libremakepkg
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-01-13 18:41:31 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-01-13 18:41:31 -0500
commit5c2dd97a91421e6e5f7e920579fcb88bb71e7fa7 (patch)
treec56ccf02cc4da998a9267539a43adcd20d4691d9 /src/chroot-tools/libremakepkg
parentb7fc106e2af7cf08fe4f8090ce2d807ba5f8f2c2 (diff)
use /usr/share/devtools/makechrootpkg.sh instead of *.gpl2
Diffstat (limited to 'src/chroot-tools/libremakepkg')
-rwxr-xr-xsrc/chroot-tools/libremakepkg21
1 files changed, 1 insertions, 20 deletions
diff --git a/src/chroot-tools/libremakepkg b/src/chroot-tools/libremakepkg
index 2901b0d..a9e1fb7 100755
--- a/src/chroot-tools/libremakepkg
+++ b/src/chroot-tools/libremakepkg
@@ -24,32 +24,13 @@
load_conf_libretools_chroot
. "$(which libremessages)"
+. /usr/share/devtools/makechrootpkg.sh
shopt -s nullglob
-# This file (libremakepkg) is GPLv3+, but I would like to use some code
-# modified from devtools' "makechrootpkg", which is GPLv2.
-. "$(dirname "$0")/libremakepkg.gpl2"
-# This gives us the functions:
-# - chroot_init
-# - chroot_exec
-# - chroot_copy_in
-# - chroot_copy_out
-# - add_to_local_repo
-
# Boring functions #############################################################
##
-# copy logs if they exist
-##
-copy_logs() {
- for l in "$copydir"/build/*.log; do
- chown "$LIBREUSER" "$l"
- mv "$l" .
- done
-}
-
-##
# End inmediately but print a useful message
##
trap_exit() {