summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-05-14 21:44:28 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-05-14 21:44:28 -0400
commit89d15e7697da2169493142f78a90b57a784d8f22 (patch)
tree1bf83d085fefd740b3b89dec46bf16b15a5fc145
parentac0f1723e25cf0488af8a30f8212cfd1c05c6f90 (diff)
downloaddevtools32-89d15e7697da2169493142f78a90b57a784d8f22.tar.xz
makechrootpkg.in: only run `makepkg "$copydir/repo"` once
-rw-r--r--makechrootpkg.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/makechrootpkg.in b/makechrootpkg.in
index 05634d8..b0241f2 100644
--- a/makechrootpkg.in
+++ b/makechrootpkg.in
@@ -286,9 +286,9 @@ EOF
chmod +x "$copydir/chrootbuild"
if archroot -r "$copydir" "/chrootbuild"; then
+ mkdir -p "$copydir/repo"
for pkgfile in "$copydir"/pkgdest/*.pkg.tar.?z; do
if $add_to_db; then
- mkdir -p "$copydir/repo"
cp "$pkgfile" "$copydir/repo"
pushd "$copydir/repo" >/dev/null
repo-add repo.db.tar.gz "${pkgfile##*/}"