diff options
author | Aaron Griffin <aaronmgriffin@gmail.com> | 2008-04-21 22:56:58 -0500 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2008-04-21 22:56:58 -0500 |
commit | 17ecb862f2ce366ee9e3ab7c3cdfc03f93b17dd9 (patch) | |
tree | 9154887f5b1d9b73d742f2939484cce1e168dc95 /makechrootpkg | |
parent | 6805bc54f4facd808f11399284e1b61c61a164f5 (diff) |
makechrootpkg: Always attempt to move pkg/src
Sometimes makepkg fails, but a package is built - for
instance, when makepkg cannot remove deps. In this case we
will attempt to move the pkg/src files regardless.
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'makechrootpkg')
-rwxr-xr-x | makechrootpkg | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/makechrootpkg b/makechrootpkg index 89ef5ba..3050528 100755 --- a/makechrootpkg +++ b/makechrootpkg @@ -193,22 +193,23 @@ chmod +x "$uniondir/chrootbuild" mkarchroot -r "/chrootbuild" "$uniondir" +source ${WORKDIR}/PKGBUILD +if [ -z "$(mount | grep ${chrootdir}/union/pkgdest)" ]; then + echo "Moving completed package file to ${WORKDIR}" + mv ${chrootdir}/union/pkgdest/${pkgname}-${pkgver}-${pkgrel}-*.pkg.tar.gz ${WORKDIR} +fi +if [ -z "$(mount | grep ${chrootdir}/union/srcdest)" ]; then + echo "Moving downloaded source files to ${WORKDIR}" + mv ${chrootdir}/union/srcdest/* ${WORKDIR} +fi + if [ -e ${chrootdir}/rw/build/BUILD_FAILED ]; then echo "Build failed, check \$CHROOT_DIR/rw/build" rm ${chrootdir}/rw/build/BUILD_FAILED - exit 1 -else - source ${WORKDIR}/PKGBUILD - if [ -z "$(mount | grep ${chrootdir}/union/pkgdest)" ]; then - echo "Moving completed package file to ${WORKDIR}" - mv ${chrootdir}/union/pkgdest/${pkgname}-${pkgver}-${pkgrel}-*.pkg.tar.gz ${WORKDIR} - fi - if [ -z "$(mount | grep ${chrootdir}/union/srcdest)" ]; then - echo "Moving downloaded source files to ${WORKDIR}" - mv ${chrootdir}/union/srcdest/* ${WORKDIR} - fi +else rm -rf ${chrootdir}/rw/build/* echo "Build complete" -fi +fi + # vim:ft=sh:ts=4:sw=4:et: |