Skip to content
Snippets Groups Projects
Commit cb3a5085 authored by Holger Levsen's avatar Holger Levsen
Browse files

reproducible Arch Linux: cleanup files before the next build

parent 5e44c991
No related branches found
No related tags found
No related merge requests found
......@@ -100,6 +100,15 @@ choose_package() {
# very simple locking…
mkdir -p $BASE/archlinux/$REPOSITORY/$SRCPACKAGE
[ ! -f $BASE/archlinux/$REPO/$SRCPACKAGE/pkg.needs_build ] || rm $BASE/archlinux/$REPO/$SRCPACKAGE/pkg.needs_build
# clear files from previous builds
# FIXME: while this is an improvement over the previous situation, where these files were kept forever
# this is still bad, as now, during this build, some files are not accessable on the web anymore.
for file in build1.log build2.log build1.version build2.version ; do
[ ! -f $BASE/archlinux/$REPO/$SRCPACKAGE/pkg.$file ] || rm $BASE/archlinux/$REPO/$SRCPACKAGE/pkg.$file
done
for file in $BASE/archlinux/$REPO/$SRCPACKAGE/*BUILDINFO.txt $BASE/archlinux/$REPO/$SRCPACKAGE/*html ; do
rm $file || true
done
}
first_build() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment