fix(packaging)!: mark parent directories part of rpm package and handle bytecode cache

This MR fixes the ownership of all files in the rpm package.

  • Ensures that all parent directories in /opt/orangeqs/juice belong to the package such that they will be removed on uninstall.
  • Handles the generation and removal of cached bytecode in __pycache__ folders to ensure they won't be left behind on upgrade/uninstall.

This commit requires a manual upgrade step for the system package from releases prior to this commit!

  1. Remove the old version using sudo dnf remove orangeqs-juice-core
  2. Remove the /opt/orangeqs/juice directory using sudo rm -rf /opt/orangeqs/juice
  3. Install the new version as normal, e.g. sudo dnf install $(juice-download-latest)

Closes #171 (closed)

Merge request reports

Loading
Loading