Prevent race condition in Bookwyrm install script
This commit is contained in:
parent
7d22990573
commit
07ec1ea383
1 changed files with 6 additions and 2 deletions
|
@ -114,12 +114,18 @@ mkDerivation {
|
||||||
for directory in $( cd $package/lib/python3.11/site-packages ; find -mindepth 1 -type d -not -name __pycache__ ) ; do
|
for directory in $( cd $package/lib/python3.11/site-packages ; find -mindepth 1 -type d -not -name __pycache__ ) ; do
|
||||||
mkdir -p $out/lib/python3.11/site-packages/$directory &
|
mkdir -p $out/lib/python3.11/site-packages/$directory &
|
||||||
done
|
done
|
||||||
|
done
|
||||||
|
|
||||||
|
wait
|
||||||
|
|
||||||
|
for package in $pythonDependencies ; do
|
||||||
for file in $( cd $package/lib/python3.11/site-packages ; find -type f -not -path \*__pycache__\* ) ; do
|
for file in $( cd $package/lib/python3.11/site-packages ; find -type f -not -path \*__pycache__\* ) ; do
|
||||||
ln -s $package/lib/python3.11/site-packages/$file $out/lib/python3.11/site-packages/$file &
|
ln -s $package/lib/python3.11/site-packages/$file $out/lib/python3.11/site-packages/$file &
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|
||||||
|
wait
|
||||||
|
|
||||||
# Python packages
|
# Python packages
|
||||||
|
|
||||||
cp -r $src/bookwyrm $out/lib/python3.11/site-packages/
|
cp -r $src/bookwyrm $out/lib/python3.11/site-packages/
|
||||||
|
@ -149,8 +155,6 @@ mkDerivation {
|
||||||
|
|
||||||
cp $src/VERSION $out/var/lib/bookwyrm/
|
cp $src/VERSION $out/var/lib/bookwyrm/
|
||||||
|
|
||||||
wait # Wait for async subprocesses to finish
|
|
||||||
|
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'' ;
|
'' ;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue