summaryrefslogtreecommitdiff
path: root/makechrootpkg.in
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2019-05-26 16:41:21 -0400
committerLevente Polyak <anthraxx@archlinux.org>2019-08-09 19:41:53 +0200
commitb7893a2ca8e09062197129881bce3fd6700a573a (patch)
tree8908176731f3f72a94e46cc13c47367427d9d387 /makechrootpkg.in
parentbec29e632b8c33d35a7629ac2127c4a9c1465377 (diff)
downloaddevtools-b7893a2ca8e09062197129881bce3fd6700a573a.tar.xz
makechrootpkg: when installing with -I, ensure package is installed
noconfirm is wrong here, as we don't want to accept the default answer -- we want to install the new package, even if it conflicts and provides an existing one. After all, we explicitly asked for it. Signed-off-by: Eli Schwartz <eschwartz@archlinux.org> Signed-off-by: Levente Polyak <anthraxx@archlinux.org>
Diffstat (limited to 'makechrootpkg.in')
-rw-r--r--makechrootpkg.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/makechrootpkg.in b/makechrootpkg.in
index 4c301e6..f69c781 100644
--- a/makechrootpkg.in
+++ b/makechrootpkg.in
@@ -161,7 +161,7 @@ install_packages() {
cp -- "${install_pkgs[@]}" "$copydir/root/"
arch-nspawn "$copydir" "${bindmounts_ro[@]}" "${bindmounts_rw[@]}" \
- pacman -U --noconfirm -- "${pkgnames[@]/#//root/}"
+ bash -c 'yes y | pacman -U -- "$@"' -bash "${pkgnames[@]/#//root/}"
ret=$?
rm -- "${pkgnames[@]/#/$copydir/root/}"