[elbe-devel] [PATCH] elbepack: pbuilder: use apt-get over apt
Thomas Weißschuh
thomas.weissschuh at linutronix.de
Tue Aug 27 14:58:58 CEST 2024
The apt tool complains when executed from a script context.
Use apt-get instead which does not.
Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
elbepack/pbuilder.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/elbepack/pbuilder.py b/elbepack/pbuilder.py
index c73044e80544..a7db4506c912 100644
--- a/elbepack/pbuilder.py
+++ b/elbepack/pbuilder.py
@@ -133,7 +133,7 @@ def pbuilder_write_repo_hook(builddir, xml, cross):
pbuilder_hook_dir = os.path.join(builddir, 'pbuilder', 'hooks.d')
with open(os.path.join(pbuilder_hook_dir, 'H10elbe_apt_update'), 'w') as f:
- f.write('#!/bin/sh\napt update\n')
+ f.write('#!/bin/sh\napt-get update\n')
with open(os.path.join(pbuilder_hook_dir, 'G10elbe_apt_sources'), 'w') as f:
---
base-commit: 875ed868613018af7d7544349996e93deccfcb0f
change-id: 20240827-apt-update-afb81d9630d0
Best regards,
--
Thomas Weißschuh <thomas.weissschuh at linutronix.de>
More information about the elbe-devel
mailing list