packaging: setup: enhance line uninstall

Previously it was possible only to remove added lines during uninstall.
Now it is possible to re-add removed lines and restore edited lines.

Change-Id: I69ab434de8fb675c67ac5d1907879e465e587dbf
Signed-off-by: Sandro Bonazzola <sbonazzo@redhat.com>
Signed-off-by: Yedidyah Bar David <didi@redhat.com>