Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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" .