Commit eebe3a49 authored by Eric Bélanger's avatar Eric Bélanger Committed by Aaron Griffin
Browse files

makechrootpkg: Fixed add_to_db option check

parent 06b02906
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -228,8 +228,7 @@ if mkarchroot -r "/chrootbuild" "$uniondir"; then
    for pkgfile in "${chrootdir}"/union/pkgdest/*${PKGEXT}; do
        [ -e "$pkgfile" ] || continue
        _pkgname=$(basename "$pkgfile")
        if [ -n "$add_to_db" ]; then

        if [ "$add_to_db" -eq "1" ]; then
                [ -d "${chrootdir}/union/repo" ] || mkdir -p "${chrootdir}/union/repo"
                pushd "${chrootdir}/union/repo" >/dev/null
                cp "$pkgfile" .