Fix latest symlinking
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
This commit is contained in:
parent
6c2559e2d4
commit
b42197cbec
1 changed files with 10 additions and 10 deletions
|
@ -39,16 +39,16 @@ SET_armv7a_sf_systemd_SPECS="armv7a/stage1-systemd.spec armv7a/stage2-systemd.sp
|
||||||
|
|
||||||
|
|
||||||
update_symlinks() {
|
update_symlinks() {
|
||||||
# Symlink the latest stages3 to build from
|
# Symlink the latest stages3 to build from
|
||||||
for d in ${BUILD_SRCDIR_BASE}/builds/default ; do
|
local d f
|
||||||
pushd $d >/dev/null
|
for d in "${BUILD_SRCDIR_BASE}/builds/default" ; do
|
||||||
for f in $(ls stage3-${SUBARCH}-*bz2 | grep -v latest | give_latest_from_dates ) ; do
|
pushd "${d}" >/dev/null
|
||||||
of=${f/20[0-9][0-9].[0-9]/latest} # for 20XX.Y stuff
|
for f in $(ls stage3*xz | grep -v latest | give_latest_from_dates) ; do
|
||||||
of=${of/20[0-9][0-9][0-1][0-9][0-9][0-9]/latest} # for $
|
local of=$(echo "${f}" | convert_filename)
|
||||||
ln -sf $f $of
|
ln -sf "${f}" "${of}"
|
||||||
done
|
done
|
||||||
popd >/dev/null
|
popd >/dev/null
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
upload() {
|
upload() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue