From b25db0a4bfdd5b415672cc14ae06c287e15656b3 Mon Sep 17 00:00:00 2001 From: Lyndon Brown Date: Sun, 15 Mar 2020 18:04:55 +0000 Subject: source: properly fix _apt permissions warning the chown command needed running within the chroot, since apt-get is being run within the chroot and _apt might have a different UID there than on the host. Gbp-Dch: Short Closes: #953957 --- scripts/build/source_debian | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/build') diff --git a/scripts/build/source_debian b/scripts/build/source_debian index e96b7a81d..c39ecb240 100755 --- a/scripts/build/source_debian +++ b/scripts/build/source_debian @@ -138,7 +138,7 @@ esac # We need to set the ownership to user `_apt` to give write access to the apt user, # otherwise we get a lot of warnings from apt about downloading as root. mkdir -p chroot/source.pkgs -chown _apt:root chroot/source.pkgs +Chroot chroot "chown _apt:root source.pkgs" cat > chroot/missing-source.txt << EOF This file contains the list of binary packages that are installed on the "live" -- cgit v1.2.3