From eebe3a49b7ce0a0114ad2386548193e7198d4218 Mon Sep 17 00:00:00 2001 From: Eric Bélanger Date: Fri, 18 Sep 2009 15:02:41 -0700 Subject: makechrootpkg: Fixed add_to_db option check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Eric Bélanger Signed-off-by: Aaron Griffin --- makechrootpkg | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/makechrootpkg b/makechrootpkg index 276a72f..d56358c 100755 --- a/makechrootpkg +++ b/makechrootpkg @@ -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" . -- cgit v1.2.3-70-g09d2