summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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##*/}"