Fix error in piCtory checker

Removed postinst message for upgrade from 0.6.5
This commit is contained in:
2019-12-29 13:33:50 +01:00
parent e72942f961
commit 63c014c5df
3 changed files with 6 additions and 17 deletions

13
debian/postinst vendored
View File

@@ -6,19 +6,6 @@ PATH=/bin:/sbin:/usr/bin:/usr/sbin
case "$1" in
configure)
cat <<-END
======= Important RevPiPyLoad post-installation note =======
If you upgrade from pre 0.6.5 Version,you have to migrate to the
new config file format!!!
/etc/revpipyload/revpipyload.conf
READ:
DE: https://revpimodio.org/revpipyplc-auf-065/
EN: https://revpimodio.org/en/revpipyplc-to-065/
END
;;
esac

View File

@@ -614,7 +614,7 @@ class RevPiPyLoad():
return False
self.pictorymtime = mtime
# TODO: Nur "Devices" list vergleich
# TODO: Nur "Devices" list vergleich da HASH immer neu wegen timestmap
with open(proginit.pargs.configrsc, "rb") as fh:
file_hash = md5(fh.read()).digest()
@@ -755,14 +755,16 @@ class RevPiPyLoad():
file_changed = True
# Alle Verbindungen von ProcImgServer trennen
self.th_plcslave.disconnect_all()
if self.plcslave and self.th_plcslave is not None:
self.th_plcslave.disconnect_all()
proginit.logger.warning("piCtory configuration was changed")
if self.check_replace_ios_changed():
if not file_changed:
# Verbindungen von ProcImgServer trennen mit replace_ios
self.th_plcslave.disconnect_replace_ios()
if self.plcslave and self.th_plcslave is not None:
self.th_plcslave.disconnect_replace_ios()
file_changed = True
proginit.logger.warning("replace ios file was changed")

View File

@@ -27,7 +27,7 @@ setup(
license="LGPLv3",
name="revpipyload",
version="0.8.1",
version="0.8.2",
scripts=["data/revpipyload"],