[Focal] provide some mechanism to support package renaming
We would like to rename certain core applications' package name so that they no longer refer to Ubuntu (e.g. com.ubuntu.camera
-> com.ubports.camera
). However, since they're both "preinstalled" and downloadable via OpenStore, it's possible that a user would have both the old package in /opt/click.ubuntu.com/
and the new package in /usr/share/click/preinstalled/
, which is confusing.
We would like to have some mechanism to be able to remove the old package when the new package is shipped in the rootfs. In doing this, we will probably want a systemd unit which runs when the system image is upgraded (maybe using lxc-android-config's boot-hook, see [1]), and run through the packages installed to see if there's any deprecated package.
Also, I would love to see this metadata not hard-coded in this package or any package shipped in deb, but in the click packages themselves. Perhaps a new field in manifest.json
would be useful. Probably click-reviewers would have to be updated to mediate the use of this new field.
[1] ubports/development/core/hybris-support/lxc-android-config#33 (closed)