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