patch-nupkgs: fix race when patching incomplete package
This commit is contained in:
parent
b2c788ad1b
commit
b3b68a6687
|
@ -38,7 +38,9 @@ in writeShellScriptBin "patch-nupkgs" ''
|
|||
}
|
||||
cd "$1"
|
||||
for x in *.${buildRid}/* *.${buildRid}.*/*; do
|
||||
[[ -d "$x" ]] && [[ ! -f "$x"/.nix-patched ]] || continue
|
||||
# .nupkg.metadata is written last, so we know the packages is complete
|
||||
[[ -d "$x" ]] && [[ -f "$x"/.nupkg.metadata ]] \
|
||||
&& [[ ! -f "$x"/.nix-patched ]] || continue
|
||||
echo "Patching package $x"
|
||||
pushd "$x"
|
||||
for p in $(find -type f); do
|
||||
|
|
Loading…
Reference in New Issue