Merge pull request #2957 from M0ses/fix_issue_2956

pass version 0 to `postinst configure`
This commit is contained in:
Marcus Schäfer 2026-02-25 11:04:47 +01:00 committed by GitHub
commit acafda96fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 4 deletions

View File

@ -586,6 +586,7 @@ class PackageManagerApt(PackageManagerBase):
Command.run(
[
'chroot', self.root_dir,
f'{script_post.replace(self.root_dir, "")}', 'configure'
f'{script_post.replace(self.root_dir, "")}',
'configure', '0'
], self.command_env
)

View File

@ -199,7 +199,7 @@ class TestPackageManagerApt:
call(
[
'chroot', 'root-dir',
'tempdir/base-passwd/postinst', 'configure'
'tempdir/base-passwd/postinst', 'configure', '0'
], new_env
),
call(
@ -224,7 +224,7 @@ class TestPackageManagerApt:
call(
[
'chroot', 'root-dir',
'tempdir/base-passwd/postinst', 'configure'
'tempdir/base-passwd/postinst', 'configure', '0'
], new_env
),
call(
@ -249,7 +249,7 @@ class TestPackageManagerApt:
call(
[
'chroot', 'root-dir',
'tempdir/vim/postinst', 'configure'
'tempdir/vim/postinst', 'configure', '0'
], new_env
)
]