Merge pull request 'CP Helper force flag' (#208) from cp-helper-force-flag into v5.0.0-dev
All checks were successful
EIVE/-/pipeline/head This commit looks good
All checks were successful
EIVE/-/pipeline/head This commit looks good
Reviewed-on: #208
This commit is contained in:
commit
5db9f383a6
@ -10,6 +10,12 @@ list yields a list of all related PRs for each release.
|
|||||||
|
|
||||||
# [unreleased]
|
# [unreleased]
|
||||||
|
|
||||||
|
# [v5.0.0]
|
||||||
|
|
||||||
|
## Changed
|
||||||
|
|
||||||
|
- Force flag for copy helper.
|
||||||
|
|
||||||
# [v4.1.0] 2023-06-14
|
# [v4.1.0] 2023-06-14
|
||||||
|
|
||||||
## Added
|
## Added
|
||||||
|
@ -406,7 +406,10 @@ def pack_core_commands( # noqa C901
|
|||||||
cp_recursive = int(input("Copy recursively (0/1) ?: "))
|
cp_recursive = int(input("Copy recursively (0/1) ?: "))
|
||||||
if cp_recursive not in [0, 1]:
|
if cp_recursive not in [0, 1]:
|
||||||
raise ValueError("Invalid value, only 0 or 1 allowed")
|
raise ValueError("Invalid value, only 0 or 1 allowed")
|
||||||
user_data = bytearray([cp_recursive])
|
cp_force = int(input("Copy with force option(0/1) ?: "))
|
||||||
|
if cp_force not in [0, 1]:
|
||||||
|
raise ValueError("Invalid value, only 0 or 1 allowed")
|
||||||
|
user_data = bytearray([cp_recursive, cp_force])
|
||||||
user_data.extend(packet_source_dest_path("Copy"))
|
user_data.extend(packet_source_dest_path("Copy"))
|
||||||
q.add_log_cmd(Info.CP_HELPER)
|
q.add_log_cmd(Info.CP_HELPER)
|
||||||
q.add_pus_tc(
|
q.add_pus_tc(
|
||||||
|
Loading…
Reference in New Issue
Block a user