Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: don't crash if uci-defaults directory already exists #1150

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

efahl
Copy link
Contributor

@efahl efahl commented Jan 10, 2025

When two builds are submitted for the same target/version and both include uci-defaults, then the second build fails with

FileExistsError: [Errno 17] File exists: '.../files/etc/uci-defaults'

Links: https://forum.openwrt.org/t/owut-openwrt-upgrade-tool/200035/394

When two builds are submitted for the same target/version and both include
uci-defaults, then the second build fails with

   FileExistsError: [Errno 17] File exists: '.../files/etc/uci-defaults'

Links: https://forum.openwrt.org/t/owut-openwrt-upgrade-tool/200035/394
Signed-off-by: Eric Fahlgren <[email protected]>
Copy link

codecov bot commented Jan 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.16%. Comparing base (5e65dec) to head (8de010d).
Report is 188 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1150      +/-   ##
==========================================
+ Coverage   80.75%   90.16%   +9.41%     
==========================================
  Files          15       14       -1     
  Lines         977     1190     +213     
==========================================
+ Hits          789     1073     +284     
+ Misses        188      117      -71     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant