diff options
author | David Williams | 2015-09-13 01:44:08 +0000 |
---|---|---|
committer | David Williams | 2015-09-13 01:44:08 +0000 |
commit | 07c1ac4a0d9d7dd80dd87feba09f5aa436fc4e60 (patch) | |
tree | b43f84589feab0579c28eed88c84e79569df675f /production/sdk/cleaners | |
parent | c0d9d0a97a9544c3c71b21bf6590dd6ae57a807f (diff) | |
download | eclipse.platform.releng.aggregator-07c1ac4a0d9d7dd80dd87feba09f5aa436fc4e60.tar.gz eclipse.platform.releng.aggregator-07c1ac4a0d9d7dd80dd87feba09f5aa436fc4e60.tar.xz eclipse.platform.releng.aggregator-07c1ac4a0d9d7dd80dd87feba09f5aa436fc4e60.zip |
Bug 377594 - need systematic, automatic?, method to cleanup build/drops
Diffstat (limited to 'production/sdk/cleaners')
-rwxr-xr-x | production/sdk/cleaners/cleanupNightlyRepo.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/production/sdk/cleaners/cleanupNightlyRepo.sh b/production/sdk/cleaners/cleanupNightlyRepo.sh index b71ae6ef2..7c3531e3f 100755 --- a/production/sdk/cleaners/cleanupNightlyRepo.sh +++ b/production/sdk/cleaners/cleanupNightlyRepo.sh @@ -72,8 +72,8 @@ function getReposToRemove () else # for "repo names" we want only the last segment of the directory, so use -printf %f. The %C@ is seconds since the beginning of time, for sorting. # Some caution is needed here. Seems on eclipse.org "atime" is the one that reflects "when created", - # whereas ctime and mtime are all identical, in every directory?! - # TODO: I need to understand this better. + # whereas ctime and mtime are all identical, in every directory?! Turns out, mine is that + # say too. Apparently p2 "touches" every directory, for some reason. Perhaps only in the "atomic" case? sortedallOldRepos=( $(find ${cDir} -maxdepth 1 -type d -atime +3 -name "${buildType}" -printf "%C@ %f\n" | sort -n | cut -d\ -f2 ) ) nOldRepos=${#sortedallOldRepos[@]} # all builds "find" command should match above, except for age related (and printf) arguments |