diff options
author | Francois Charette <francois@samarqand.localdomain> | 2009-09-15 14:55:30 +0200 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2009-09-18 11:55:34 -0700 |
commit | 40251235a8fa02c6ad08c43c3fed45ad38f91444 (patch) | |
tree | 4245369eed8d401212870dafc98ad6dbc748b2f5 | |
parent | c9d1b3457c19043a8cc3a9133254289defd40178 (diff) | |
download | devtools-40251235a8fa02c6ad08c43c3fed45ad38f91444.tar.xz |
Fix indentation
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
-rwxr-xr-x | makechrootpkg | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/makechrootpkg b/makechrootpkg index 91f21de..9e227d0 100755 --- a/makechrootpkg +++ b/makechrootpkg @@ -229,23 +229,23 @@ if mkarchroot -r "/chrootbuild" "$uniondir"; then for _pkgname in ${pkgname[@]}; do pkgfile="${chrootdir}"/union/pkgdest/${_pkgname}-*${PKGEXT} - if [ -n "$add_to_db" -a -e "$pkgfile" ]; then - [ -d "${chrootdir}/union/repo" ] || mkdir -p "${chrootdir}/union/repo" - pushd "${chrootdir}/union/repo" >/dev/null - cp "$pkgfile" . - repo-add repo.db.tar.${DB_COMPRESSION} ${_pkgname}-${pkgver}-${pkgrel}-*${PKGEXT} - popd >/dev/null - fi - - if [ -e $pkgfile ]; then + if [ -n "$add_to_db" -a -e "$pkgfile" ]; then + [ -d "${chrootdir}/union/repo" ] || mkdir -p "${chrootdir}/union/repo" + pushd "${chrootdir}/union/repo" >/dev/null + cp "$pkgfile" . + repo-add repo.db.tar.${DB_COMPRESSION} ${_pkgname}-${pkgver}-${pkgrel}-*${PKGEXT} + popd >/dev/null + fi + + if [ -e $pkgfile ]; then if [ -n "$PKGDEST" ]; then - echo "Moving completed ${_pkgname} package file to ${PKGDEST}" - mv $pkgfile "${PKGDEST}" + echo "Moving completed ${_pkgname} package file to ${PKGDEST}" + mv $pkgfile "${PKGDEST}" else - echo "Moving completed ${_pkgname} package file to ${WORKDIR}" - mv $pkgfile "${WORKDIR}" + echo "Moving completed ${_pkgname} package file to ${WORKDIR}" + mv $pkgfile "${WORKDIR}" fi - fi + fi done for f in ${chrootdir}/union/srcdest/*; do |