artefactual-labs / am-packbuild

Archivematica package building scripts
GNU General Public License v2.0
4 stars 6 forks source link

Remove pyc files from postinst #319

Closed sevein closed 2 years ago

sevein commented 2 years ago

This commit ensures that cached bytecode is removed during software upgrades.

Testing from 1.12.0, migrations were applied successfully during the installation.

Setting up archivematica-dashboard (1:1.13.1-beta1~18.04) ...
/usr/share/archivematica/dashboard /
Operations to perform:
  Apply all migrations: administration, auth, contenttypes, fpr, main, sessions, tastypie
Running migrations:
  Applying fpr.0034_delete_unused_models... OK
  Applying fpr.0035_python3_compatibility... OK
  Applying main.0079_version_number... OK
  Applying main.0080_delete_software_agent... OK
  Applying main.0081_package_status... OK

Connects to https://github.com/archivematica/Issues/issues/1503.

sevein commented 2 years ago

13edca1 in stable/1.13.x