summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Bélanger <snowmaniscool@gmail.com>2009-09-18 15:02:41 -0700
committerAaron Griffin <aaronmgriffin@gmail.com>2009-09-18 15:02:41 -0700
commiteebe3a49b7ce0a0114ad2386548193e7198d4218 (patch)
treed2f1110e2ffd5dd22768bb4078b2d5d1b32e0926
parent06b02906b89d1af6a2e4c9cb6412c187c9619612 (diff)
downloaddevtools32-eebe3a49b7ce0a0114ad2386548193e7198d4218.tar.xz
makechrootpkg: Fixed add_to_db option check
Signed-off-by: Eric Bélanger <snowmaniscool@gmail.com> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
-rwxr-xr-xmakechrootpkg3
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" .