265 | | # already at 1.14 or above, nothing to be done. |
266 | | pass |
| 272 | # already at 1.14 or above. |
| 273 | # Now check if old scripts are still in /usr/bin |
| 274 | for script in ["cupspykota", "pykota", "waitprinter.sh", "papwaitprinter.sh", "mailandpopup.sh", "pagecount.pl"] : |
| 275 | if checkOldScript(script) : |
| 276 | sys.stderr.write("WARNING : the %s script is still present in /usr/bin, but the new version will be installed in /usr/share/pykota, please remove the %s script from /usr/bin and double check that your configuration is correct.\n" % (script, script)) |
| 277 | if script == "cupspykota" : |
| 278 | sys.stderr.write("\nBe sure to also remove the old symbolic link from /usr/lib/cups/backend/cupspykota to /usr/bin/cupspykota. You'll have to recreate it once the installation has finished successfully.\n") |
| 279 | sys.stderr.write("\nINSTALLATION ABORTED !\nPlease correct the problem and restart installation.\n") |
| 280 | sys.exit(-1) |