launcher
flavor.psp.format_2025.launcher
¶
TODO: Add module docstring.
Classes¶
PSPFLauncher
¶
Bases: PSPFReader
Launch PSPF bundles.
Source code in flavor/psp/format_2025/launcher.py
Functions¶
acquire_lock
¶
Acquire a file-based lock for extraction.
Source code in flavor/psp/format_2025/launcher.py
check_disk_space
¶
Check if there's enough disk space for extraction.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
workenv_dir
|
Path
|
Directory where slots will be extracted |
required |
Raises:
| Type | Description |
|---|---|
OSError
|
If insufficient disk space available |
Source code in flavor/psp/format_2025/launcher.py
execute
¶
Execute the bundle.
Sets up the work environment, extracts slots, and executes the main command using the BundleExecutor.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
args
|
list[str] | None
|
Command line arguments to pass to the executable |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
dict |
dict[str, Any]
|
Execution result with exit_code, stdout, stderr, and other metadata |
Source code in flavor/psp/format_2025/launcher.py
extract_all_slots
¶
Extract all slots to the work environment.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
workenv_dir
|
Path
|
Directory to extract slots into |
required |
Returns:
| Name | Type | Description |
|---|---|---|
dict |
dict[int, Path]
|
Mapping of slot index to extracted path |
Source code in flavor/psp/format_2025/launcher.py
extract_slot
¶
Extract a single slot.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
slot_index
|
int
|
Index of the slot to extract |
required |
workenv_dir
|
Path
|
Directory to extract into |
required |
verify_checksum
|
bool
|
Whether to verify checksum after extraction |
False
|
Returns:
| Name | Type | Description |
|---|---|---|
Path |
Path
|
Path to the extracted slot content |
Source code in flavor/psp/format_2025/launcher.py
158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 | |
read_slot_table
¶
Read the slot table from the bundle.
Returns:
| Name | Type | Description |
|---|---|---|
list |
list[dict[str, Any]]
|
List of slot entries, each containing: - offset: Start position of slot data - size: Size of uncompressed data - checksum: Adler32 checksum - encoding: 0=none, 1=gzip, 2=reserved - purpose: 0=payload, 1=runtime, 2=tool - lifecycle: 0=persistent, 1=volatile, 2=temporary, 3=install |
Source code in flavor/psp/format_2025/launcher.py
setup_workenv
¶
verify_integrity
¶
Verify package integrity including signatures and checksums.
Returns:
| Type | Description |
|---|---|
dict[str, bool]
|
Dictionary with verification results: |
dict[str, bool]
|
|
dict[str, bool]
|
|
dict[str, bool]
|
|