mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 21:24:31 +04:00
This seems to happen when re-triggering a build. The destination path is already there, so this exception gets raised. Another approach is to do 'make package/<python-package>/clean' and re-trigger the build. But that becomes annoying. Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
14 lines
596 B
Diff
14 lines
596 B
Diff
diff --git a/src/installer/destinations.py b/src/installer/destinations.py
|
|
index a3c1967..9f733c8 100644
|
|
--- a/src/installer/destinations.py
|
|
+++ b/src/installer/destinations.py
|
|
@@ -164,7 +164,7 @@ class SchemeDictionaryDestination(WheelDestination):
|
|
target_path = self._path_with_destdir(scheme, path)
|
|
if os.path.exists(target_path):
|
|
message = f"File already exists: {target_path}"
|
|
- raise FileExistsError(message)
|
|
+ os.remove(target_path)
|
|
|
|
parent_folder = os.path.dirname(target_path)
|
|
if not os.path.exists(parent_folder):
|