Skip to content
Snippets Groups Projects
Unverified Commit f0243221 authored by Andrej Shadura's avatar Andrej Shadura
Browse files

aptly: Fix incorrect sub signature for aptlyctl


The signature only specified one argument, leading to inability
to pass anything else to the sub. Revert the signature addition,
instead use the traditional "shift" to make sure variadic arguments
work as expected.

Fixes: ea7734c6 ("aptly: Detect errors only where needed")
Signed-off-by: Andrej Shadura's avatarAndrej Shadura <andrew.shadura@collabora.co.uk>
parent 4c7783de
No related branches found
No related tags found
1 merge request!91aptly: Fix incorrect sub signature for aptlyctl
Pipeline #137132 passed
...@@ -110,7 +110,8 @@ sub check_exit_code { ...@@ -110,7 +110,8 @@ sub check_exit_code {
return $child_exit_code == 0; return $child_exit_code == 0;
} }
sub aptlyctl($aptly_server) { sub aptlyctl {
my $aptly_server = shift;
return check_exit_code(api_tool_exec($aptly_server, 'aptlyctl', @_)); return check_exit_code(api_tool_exec($aptly_server, 'aptlyctl', @_));
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment