- add .packages support for product medias

(I am not proud of this code, but since we may need to backport it, it has to be minimal invasive.
 A general rework is needed anyway)