Skip to content

Commit

Permalink
Don't purge packages during reinstall.
Browse files Browse the repository at this point in the history
It is unnecessary and may even be impossible in some circumstances.
  • Loading branch information
brbsix committed Sep 3, 2015
1 parent c92f7e1 commit 5ce9933
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions debtool
Original file line number Diff line number Diff line change
Expand Up @@ -901,13 +901,6 @@ reinst(){
echo "Consider running 'sudo apt-get install --fix-broken' to resolve missing dependencies" >&2
fi

# if sudo apt-get purge "$package" &>/dev/null; then
if sudo dpkg --purge "$package" &>/dev/null; then
echo "dpkg: purged '$package'"
else
echo "dpkg: failed to purge '$package' (perhaps it was not installed)" >&2
fi

if sudo dpkg --install "$archive" &>/dev/null; then
echo "dpkg: installed '$package' ($archive)"
else
Expand Down

0 comments on commit 5ce9933

Please sign in to comment.