pkgbuilder: Enable apt_clean at the start of each build

This commit is used to improve the apt functions of
pkgbuilder on chroot. The option '$apt_clean = 1' enable
running "apt-get clean" at the start of each build which
can clean the legacy data in "/var/cache/apt/archives/".

Test Plan:
Pass: build-pkgs -c -p <package>
Pass: build-pkgs -a

Story: 2008846
Task: 47256

Signed-off-by: Haiqing Bai <haiqing.bai@windriver.com>
Change-Id: Ib478cb727b090aac0de489b3846fe2bf67a00ab3
This commit is contained in:
Haiqing Bai 2023-02-02 14:40:47 +08:00
parent 437e2e360e
commit a787cf1c7c
1 changed files with 1 additions and 0 deletions

View File

@ -5,6 +5,7 @@ $run_autopkgtest = 0;
$run_lintian = 0;
$apt_distupgrade = 0;
$apt_upgrade = 0;
$apt_clean = 1;
$lintian_opts = ['--fail-on','error,warning', '--profile', 'debian', '-X',
'debian/changelog,' .
'documentation/manual,' .