Unused local variable
This commit is contained in:
@@ -168,7 +168,7 @@ def create_package(
|
|||||||
# Generate ZIP filename
|
# Generate ZIP filename
|
||||||
timestamp = datetime.now().strftime("%Y%m%d-%H%M%S")
|
timestamp = datetime.now().strftime("%Y%m%d-%H%M%S")
|
||||||
platform_suffix = f"{ext_info.platform.value}-{ext_info.extension_type}"
|
platform_suffix = f"{ext_info.platform.value}-{ext_info.extension_type}"
|
||||||
zip_filename = f"{repo_name}-{version}-{platform_suffix}.zip"
|
zip_filename = f"{repo_name}-{version}-{platform_suffix}-{timestamp}.zip"
|
||||||
zip_path = output_path / zip_filename
|
zip_path = output_path / zip_filename
|
||||||
|
|
||||||
# Remove existing ZIP if present
|
# Remove existing ZIP if present
|
||||||
@@ -305,6 +305,12 @@ Supports both Joomla and Dolibarr extensions with automatic platform detection.
|
|||||||
exclude_patterns=exclude_patterns
|
exclude_patterns=exclude_patterns
|
||||||
)
|
)
|
||||||
|
|
||||||
|
result = {
|
||||||
|
"status": "success",
|
||||||
|
"zip_path": str(zip_path)
|
||||||
|
}
|
||||||
|
common.json_output(result)
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|||||||
Reference in New Issue
Block a user