aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2015-05-24 11:54:05 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2015-05-24 11:54:05 +0100
commit3e97966c77fb8798ded73793119644faeec7c96b (patch)
tree953e595eb5f3cedb2dc1dd71fae2b375b667b853
parentb142f79f1ce7f6aed897146fc744a09d6ea3a3c0 (diff)
downloadvcs-rebuild-3e97966c77fb8798ded73793119644faeec7c96b.tar.xz
Save old logs under timestamp
-rwxr-xr-xbuild-updated-packages.bash3
1 files changed, 2 insertions, 1 deletions
diff --git a/build-updated-packages.bash b/build-updated-packages.bash
index 57ebfc0..3ca8739 100755
--- a/build-updated-packages.bash
+++ b/build-updated-packages.bash
@@ -64,7 +64,8 @@ main() {
for package in "${needs_rebuild[@]}"; do
(cd "$package"
- sudo PKGDEST="$REPO_POOL" testing-x86_64-build -r ~/packaging/chroots -- -c /var/cache/pacman/pkg &>> "$HOME"/packaging/logs/"$package".log)
+ sudo PKGDEST="$REPO_POOL" testing-x86_64-build -r ~/packaging/chroots -- -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)")
done
fi