Small API extension to help opam-publish