Commit 0d62357
committed
Fix: Allow database update when file doesn't exist
The --update-database command should create the database file if it doesn't exist, but the current implementation raises an error before attempting the download.
This fix changes the validation logic to only check if existing files are writeable, allowing the download logic to create the file and parent directories as needed.
Fixes #26891 parent a18d184 commit 0d62357
1 file changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
130 | 132 | | |
131 | 133 | | |
132 | 134 | | |
| |||
0 commit comments