diff options
Diffstat (limited to 'makechrootpkg.in')
-rw-r--r-- | makechrootpkg.in | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/makechrootpkg.in b/makechrootpkg.in index affc5bc..456c25a 100644 --- a/makechrootpkg.in +++ b/makechrootpkg.in @@ -251,6 +251,15 @@ download_sources() { die "Could not download sources." } +move_logfiles() { + local l + for l in "$copydir"/logdest/*; do + [[ $l == */logpipe.* ]] && continue + chown "$src_owner" "$l" + mv "$l" "$LOGDEST" + done +} + move_products() { local pkgfile for pkgfile in "$copydir"/pkgdest/*; do @@ -263,12 +272,7 @@ move_products() { fi done - local l - for l in "$copydir"/logdest/*; do - [[ $l == */logpipe.* ]] && continue - chown "$src_owner" "$l" - mv "$l" "$LOGDEST" - done + move_logfiles for s in "$copydir"/srcpkgdest/*; do chown "$src_owner" "$s" @@ -380,6 +384,7 @@ then move_products else (( ret += 1 )) + move_logfiles fi (( temp_chroot )) && delete_chroot "$copydir" "$copy" |