Add skip-install-mime option to bundlebuilder
Historically, distro packagers have been using bunblebuilder, via "setup.py install", to populate packages directories and files. The install procedure uses ActivityBundle.install_mime_type to install custom mime types, by creating symlinks and updating the system mime types database via the update-mime-database tool. When ActivityBundle.install_mime_type is executed during packages creation, the symlinks end-up broken in the final package and the use of update-mime-database populates the final packages with a new copy of the database files which could clash with the system copy. This patch adds a new option, called --skip-install-mime to "setup.py install" to skip the execution of ActivityBundle.install_mime_type and avoid the issues mentioned above. Activity packagers should use this new option. The creation of symlinks and the execution of update-mime-database should be done in post install packaging steps. Signed-off-by: Martin Abente Lahaye <tch@sugarlabs.org>master
parent
fc4d629b50
commit
e8553c13a1
Loading…
Reference in New Issue