kiss: Use cp to ensure binary is available until swap

This commit is contained in:
Dylan Araps 2020-01-28 20:41:51 +02:00
parent e8983a341b
commit 2a4f93b4db
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

2
kiss
View File

@ -875,7 +875,7 @@ pkg_swap() {
# Convert the current owner to an alternative and rewrite
# its manifest file to reflect this.
dosu mv -f "'$2'" "'$pkg_owns>${alt#*>}'"
dosu cp -f "'$2'" "'$pkg_owns>${alt#*>}'"
dosu sed -i "'s/$sea/$rep/'" "'../installed/$pkg_owns/manifest'"
fi