1
0

add brew cleanup

This commit is contained in:
GenZmeY 2022-01-24 05:26:49 +03:00
parent abce563023
commit 57df5705d4

16
builder
View File

@ -300,6 +300,19 @@ function brewed ()
done done
} }
function brew_cleanup ()
{
for Package in $PackageBuildOrder
do
if ! echo "$PackageUpload" | grep -Pq "(^|\s+)$Package(\s+|$)"; then
find "$KFPublishBrewedPC" -type f -name "$Package.u" -delete
find "$MutSource/$Package" -type f -name '*.upk' -printf "%f\n" | xargs -I{} find "$KFPublishBrewedPC" -type f -name {} -delete
fi
done
rm -f "$KFPublishBrewedPC"/*.tmp
find "$KFPublishBrewedPC" -type d -empty -delete
}
function brew () function brew ()
{ {
local PID="" local PID=""
@ -324,8 +337,7 @@ function brew ()
done done
publish_common publish_common
brew_cleanup
rm -f "$KFPublishBrewedPC"/*.tmp # cleanup
} }
function brew_manual () function brew_manual ()