diff options
author | Eric Bélanger <snowmaniscool@gmail.com> | 2009-09-18 15:02:41 -0700 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2009-09-18 15:02:41 -0700 |
commit | eebe3a49b7ce0a0114ad2386548193e7198d4218 (patch) | |
tree | d2f1110e2ffd5dd22768bb4078b2d5d1b32e0926 /makechrootpkg | |
parent | 06b02906b89d1af6a2e4c9cb6412c187c9619612 (diff) |
makechrootpkg: Fixed add_to_db option check
Signed-off-by: Eric Bélanger <snowmaniscool@gmail.com>
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'makechrootpkg')
-rwxr-xr-x | makechrootpkg | 3 |
1 files changed, 1 insertions, 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" . |