repository.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:solaris-ips 作者: oracle 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号