Merge pull request #30403 from matthewbauer/sqitch-fix
sqitch: fix on broken symlinks
This commit is contained in:
commit
210731c7dd
@ -11,7 +11,11 @@ stdenv.mkDerivation {
|
|||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
for d in bin/sqitch etc lib share ; do
|
for d in bin/sqitch etc lib share ; do
|
||||||
ln -s ${sqitchModule}/$d $out/$d
|
# make sure dest alreay exists before symlink
|
||||||
|
# this prevents installing a broken link into the path
|
||||||
|
if [ -e ${sqitchModule}/$d ]; then
|
||||||
|
ln -s ${sqitchModule}/$d $out/$d
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
dontStrip = true;
|
dontStrip = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user