Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=e38d1412253a6c085667996c2075b707656fa82e
commit e38d1412253a6c085667996c2075b707656fa82e Author: Michel Hermier <[email protected]> Date: Sun Dec 2 09:30:12 2012 +0100 scripts/makepkg * Implement makepkg_chroot_unlock. diff --git a/scripts/makepkg b/scripts/makepkg index 35edd05..c6f986a 100755 --- a/scripts/makepkg +++ b/scripts/makepkg @@ -2407,6 +2407,13 @@ makepkg_chroot_unlock() { return 1 fi + if rm "$CHROOTDIR/$CHROOT_NAME/.chroot"; then + msg "Successfully unlocked chroot '$CHROOT_NAME'." + return 0 + else + msg "Error trying to unlock chroot '$CHROOT_NAME'." + return 1 + fi } makepkg_depends_usage() { @@ -2607,7 +2614,8 @@ makepkg_file_lock() { "-$(echo "${split}" | cut -c 3-)" \ "$@" continue ;; - *) break ;; # End of options + *) error "Optional parameter \"$1\" has unsupported format" + exit 1 ;; esac if ! shift "$consumed"; then consumed=$(($consumed - 1)) _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
