def __fmri_from_path(pkgpath, ver):
"""Helper method that takes the full path to the package
directory and the name of the manifest file, and returns an FMRI
constructed from the information in those components."""
v = pkg.version.Version(unquote(ver), None)
f = fmri.PkgFmri(unquote(os.path.basename(pkgpath)))
f.version = v
return f
评论列表
文章目录