One Click Install Hot–Linking
I’ve noticed a trend of people hot-linking ‘One-Click-Install’ YMP files directly from http://software.opensuse.org on their blogs and news stories. While it’s great that people are including these it is worth considering whether it would be wise to take a copy of the YMP file and host it yourselves, or on openSUSE wiki, or somewhere else which can host static content.
If your web-host doesn’t understand the YMP mimetype a link directly to a YMP file will not work, you can work around this using “data:” URLs by creating a link as follows:
<a href="data:text/x-suse-ymu,http://example.com/mysoftware.ymp">My Install Link</a>
The install links on http://software.opensuse.org/search are:
- Subject to deletion/renaming at any time.
If you blog including a link taken directly from there then other people may simply copy it onto their blog/news site, and if the original disappears, or you need to make a change you end up with lots of broken or outdated links everywhere, even if you update your blog.
If someone points out a problem (need another package included, or a conflicting package removed, etc, then there’s no way to fix it. Additionally the YMPs generated by the buildservice are fairly inflexible at present as they are auto-generated from patterns. You might wish to alter it in a way not supported by the build-service.
Hotlinking is most likely to lead to headaches when the YMPs are complex, and frequently changing. Like the “install KDE4” links for example.
Hopefully that should help inform so as to enable you to make a decision as to whether to hotlink or copy the YMP.