File tree 3 files changed +14
-22
lines changed
3 files changed +14
-22
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -406,7 +406,7 @@ mv -T "${tmp_builddir}" "${builddir}"
406
406
ln -Tsf " ${buildid} " builds/latest
407
407
408
408
if [ " ${SKIP_PRUNE} " == 1 ]; then
409
- " ${dn} " /bump-timestamp --workdir " ${workdir } " --insert-only " ${buildid } "
409
+ bump_timestamp " ${buildid } " " ${workdir } "
410
410
else
411
411
" ${dn} " /cmd-prune --workdir " ${workdir} "
412
412
fi
Original file line number Diff line number Diff line change @@ -685,3 +685,16 @@ get_latest_qemu() {
685
685
ls ${builddir} /* -qemu.qcow2*
686
686
fi
687
687
}
688
+
689
+ bump_timestamp () {
690
+ local buildid=$1 ; shift
691
+ local dir=$1 ; shift
692
+ (python3 -c "
693
+ import sys
694
+ sys.path.insert(0, '${DIR} ')
695
+ from cosalib.builds import Builds
696
+ builds = Builds('${workdir:- $(pwd)} ')
697
+ builds.insert_build('${buildid} ')
698
+ builds.bump_timestamp()
699
+ print('Build timestamp was updated')" )
700
+ }
You can’t perform that action at this time.
0 commit comments