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

le-autoupgrade: Remove divert even if the .real file doesn't exist

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