Skip to content

Commit

Permalink
Merge pull request #64 from kpcyrd/uninstall-fixes
Browse files Browse the repository at this point in the history
Uninstall fixes
  • Loading branch information
Foxboron authored Apr 11, 2020
2 parents e29e0f1 + fb3248c commit 57540f3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions repro.in
Original file line number Diff line number Diff line change
Expand Up @@ -267,9 +267,11 @@ __END__
read -r -a buildinfo_packages <<< "$(buildinfo -f installed "${pkg}")"
uninstall=$(comm -13 \
<(printf '%s\n' "${buildinfo_packages[@]}" | rev | cut -d- -f4- | rev | sort) \
<(exec_nspawn build --bind="$(readlink -e ${cachedir}):/cache" pacman -Qq))
<(exec_nspawn build --bind="$(readlink -e ${cachedir}):/cache" pacman -Qq | sort))

exec_nspawn build pacman -Rdd --noconfirm -- $uninstall
if [ -n "$uninstall" ]; then
exec_nspawn build pacman -Rdd --noconfirm -- $uninstall
fi

build_package "build" "$builddir"
remove_snapshot "build"
Expand Down

0 comments on commit 57540f3

Please sign in to comment.