Skip to content
Snippets Groups Projects
Commit 80465f22 authored by Diego Giovane Pasqualin's avatar Diego Giovane Pasqualin
Browse files

le-autoupgrade: postrm: Do not remove original file after removing divert

parent 774bc1ac
No related branches found
No related tags found
No related merge requests found
Package: le-autoupgrade
Priority: important
Section: main
Version: 0.0.8
Version: 0.0.9
Architecture: all
Depends: cron | anacron, apt, debianutils, wget
Maintainer: LE Maintainer <le-maintainer@c3sl.ufpr.br>
......
......@@ -32,8 +32,7 @@ divertList="
# Divert files
if [[ "$1" != "upgrade" ]]; then
for file in $divertList; do
if test -e $file.real; then
rm -f $file
if test -e ${file}.real; then
dpkg-divert --package le-autoupgrade --remove --rename \
--divert $file{.real,}
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment