diff options
Diffstat (limited to 'src/chroot-tools/librechroot')
-rwxr-xr-x | src/chroot-tools/librechroot | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/chroot-tools/librechroot b/src/chroot-tools/librechroot index 89fb644..7f113f5 100755 --- a/src/chroot-tools/librechroot +++ b/src/chroot-tools/librechroot @@ -24,12 +24,7 @@ load_conf_libretools_chroot . "$(which libremessages)" - -# This file (librechroot) is GPLv3+, but I would like to use some code -# modified from devtools' "makechrootpkg", which is GPLv2. -. "$(dirname "$0")/librechroot.gpl2" -# This gives us the functions: -# - sync +. /usr/share/devtools/makechrootpkg.sh cleanup=(':'); cleanup() { @@ -120,7 +115,7 @@ main() { fi if [[ ! -d $copydir ]] && [[ $mode != sync ]]; then - sync + chroot_sync fi mkdir -p $copydir/etc/libretools.d @@ -160,7 +155,7 @@ main() { install_pkg) archroot "${archroot_args[@]}" "${copydir}" -i $ARG ;; noop) :;; run) archroot "${archroot_args[@]}" "${copydir}" -r "$ARG" ;; - sync) sync;; + sync) chroot_sync;; update) archroot "${archroot_args[@]}" "${copydir}" -u ;; enter) archroot "${archroot_args[@]}" "${copydir}" -r bash ;; esac |