Commit 22a3c422 authored by udeved's avatar udeved

util-iso-chroot: clean up copy_from_cache()

parent e1b82cec
......@@ -248,12 +248,12 @@ clean_up_image(){
local list="${tmp_dir}"/mhwd-cache.list mnt="$1" pkgs=$2
local mirror="${build_mirror}/${target_branch}"
local list="${tmp_dir}"/mhwd-cache.list mirror="${build_mirror}/${target_branch}"
local mnt="$1"; shift
chroot-run -B "$mirror" "$mnt" \
pacman -v -Syw ${pkgs[@]} --noconfirm || return 1
pacman -v -Syw --noconfirm "$@" || return 1
chroot-run -B "$mirror" "$mnt" \
pacman -v -Sp ${pkgs[@]} --noconfirm > "$list"
pacman -v -Sp --noconfirm "$@" > "$list"
sed -ni '/.pkg.tar.xz/p' "$list"
sed -i "s/.*\///" "$list"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment