aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2015-10-11 21:57:39 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2015-10-11 21:57:39 +0100
commit2e6fa7c8710c9532d2f5948433a7ff5cb459e763 (patch)
treeaa5d9441d0a6b0a7bd0c7cfd76d4f32e231f2699
parent930f6300695fe01bb42758411e2a616fc89ea0c4 (diff)
downloadvcs-rebuild-2e6fa7c8710c9532d2f5948433a7ff5cb459e763.tar.xz
Redo logging
-rwxr-xr-xbuild-updated-packages.bash11
1 files changed, 9 insertions, 2 deletions
diff --git a/build-updated-packages.bash b/build-updated-packages.bash
index 7e741f4..7cd8b3c 100755
--- a/build-updated-packages.bash
+++ b/build-updated-packages.bash
@@ -64,8 +64,15 @@ main() {
for package in "${needs_rebuild[@]}"; do
(cd "$package"
- sudo PKGDEST="$REPO_POOL" testing-x86_64-build -r ~/packaging/chroots -- -d /dev/fuse -- -c /var/cache/pacman/pkg &>> "$HOME"/packaging/logs/"$package".log
- mv "$HOME"/packaging/logs/"$package".log "$HOME"/packaging/logs/"$package".log."$(date +%Y-%m-%dT%H:%M:%ST%z)")
+ sudo PKGDEST="$REPO_POOL" testing-x86_64-build -r ~/packaging/chroots -- -d /dev/fuse -- -c /var/cache/pacman/pkg >>/dev/null
+
+ logdir="$HOME"/packaging/logs/"$package".log."$(date +%Y-%m-%dT%H:%M:%ST%z)"
+ mkdir "$logdir"
+ for file in *.log; do
+ if [[ "$file" = *.log ]]; then
+ mv "$file" "$logdir"
+ fi
+ done)
done
fi