mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-05 09:11:39 -05:00
Only try updating setup.cfg if the file exists
sometimes setup.cfg doesn't exist. added a check to make sure it exists before attempting to update it
This commit is contained in:
parent
058fe3e15a
commit
42a7740a37
1 changed files with 4 additions and 1 deletions
|
@ -1690,7 +1690,10 @@ lib.composeManyExtensions [
|
|||
old: {
|
||||
# Fixes https://github.com/pytest-dev/pytest/issues/7891
|
||||
postPatch = old.postPatch or "" + ''
|
||||
sed -i '/\[metadata\]/aversion = ${old.version}' setup.cfg
|
||||
# sometimes setup.cfg doesn't exist
|
||||
if [ -f setup.cfg ]; then
|
||||
sed -i '/\[metadata\]/aversion = ${old.version}' setup.cfg
|
||||
fi
|
||||
'';
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue