Verified Commit 2e0c9d9f authored by Morten Linderud's avatar Morten Linderud 🏄
Browse files

cleanup: Added -f to all ln calls


Signed-off-by: Morten Linderud's avatarMorten Linderud <morten@linderud.pw>
parent a86f2444
Pipeline #13908 canceled with stage
......@@ -105,9 +105,9 @@ for pkgbase in "${args[@]:2}"; do
pkgpath=$(getpkgfile "${ftppath_from}/${tarch}/${pkgname}-${pkgver}-${pkgarch}"${PKGEXTS})
pkgfile="${pkgpath##*/}"
ln -s "../../../${PKGPOOL}/${pkgfile}" "${ftppath_to}/${tarch}/"
ln -sf "../../../${PKGPOOL}/${pkgfile}" "${ftppath_to}/${tarch}/"
if [[ -f ${FTP_BASE}/${PKGPOOL}/${pkgfile}.sig ]]; then
ln -s "../../../${PKGPOOL}/${pkgfile}.sig" "${ftppath_to}/${tarch}/"
ln -sf "../../../${PKGPOOL}/${pkgfile}.sig" "${ftppath_to}/${tarch}/"
fi
add_pkgs+=("${FTP_BASE}/${PKGPOOL}/${pkgfile}")
remove_pkgs+=("${pkgname}")
......@@ -118,9 +118,9 @@ for pkgbase in "${args[@]:2}"; do
fi
debug_pkgfile="${debug_pkgpath##*/}"
msg2 "Found debug package %s (%s)" "${pkgbase}-debug" "${tarch}"
ln -s "../../../${DEBUGPKGPOOL}/${debug_pkgfile}" "${ftppath_debug_to}/${tarch}/"
ln -sf "../../../${DEBUGPKGPOOL}/${debug_pkgfile}" "${ftppath_debug_to}/${tarch}/"
if [[ -f ${FTP_BASE}/${DEBUGPKGPOOL}/${debug_pkgfile}.sig ]]; then
ln -s "../../../${DEBUGPKGPOOL}/${debug_pkgfile}.sig" "${ftppath_debug_to}/${tarch}/"
ln -sf "../../../${DEBUGPKGPOOL}/${debug_pkgfile}.sig" "${ftppath_debug_to}/${tarch}/"
fi
add_debug_pkgs+=("${FTP_BASE}/${DEBUGPKGPOOL}/${debug_pkgfile}")
remove_debug_pkgs+=("${pkgbase}-debug")
......
......@@ -102,7 +102,7 @@ for repo in "${repos[@]}"; do
if [[ -f ${pkg} ]]; then
mv "${pkg}" "$FTP_BASE/${currentpool}"
fi
ln -s "../../../${currentpool}/${pkgfile}" "$FTP_BASE/${currentrepo}/os/${pkgarch}"
ln -sf "../../../${currentpool}/${pkgfile}" "$FTP_BASE/${currentrepo}/os/${pkgarch}"
# also move signatures
if [[ -f ${pkg}.sig ]]; then
mv "${pkg}.sig" "$FTP_BASE/${currentpool}"
......@@ -112,7 +112,7 @@ for repo in "${repos[@]}"; do
"$(dirname "$(readlink -e "${BASH_SOURCE[0]}")")/db-archive" "${FTP_BASE}/${PKGPOOL}/${pkg##*/}"
fi
if [[ -f $FTP_BASE/${currentpool}/${pkgfile}.sig ]]; then
ln -s "../../../${currentpool}/${pkgfile}.sig" "$FTP_BASE/${currentrepo}/os/${pkgarch}"
ln -sf "../../../${currentpool}/${pkgfile}.sig" "$FTP_BASE/${currentrepo}/os/${pkgarch}"
fi
done
if (( ${#add_pkgs[@]} >= 1 )); then
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment