openSUSE:Libzypp 仓库识别
Libzypp 仓库识别
repo-md 头部示例
<!-- these tags are available in create repo > 0.9.6 -->
<revision>timestamp_or_arbitrary_user_supplied_string</revision>
<tags>
<repo>obsrepository://build.suse.de/SUSE:openSUSE:11:standard</repo>
<content>opensuse</content>
<content>i386</content>
<content>other string</content>
<distro cpeid="cpe://o:opensuse_project:opensuse:11">openSUSE
11.0</distro>
</tags>
<!-- end -->
仓库
repomd.xml <repo> 内容 REPOID
string
Repository::contentIdentifier()
String identifying the repository.
repomd.xml <content> 内容 REPOKEYWORDS
string array
Repository::keywords()
Could contain info about content (debug, src, updated...). AFAIK debug is provided for SLE12 if repo contains debuginfo packages.
repomd.xml <distro> 内容 DISTRO
{cpeid,label} array
Repository::ProductInfoIterator compatibleWithProductBegin/End()
UNUSED; cpeids matching the products the repo is intended to support.
repomd.xml <updates> // ??? 或者直接是 suseinfo.xml 内容 ???
{cpeid,label} array
Repository::ProductInfoIterator updatesProductBegin/End() Repository::providesUpdatesFor( const CpeId & cpeid_r ) Repository::isUpdateRepo()
UNUSED; cpeids matching the products the repo provides updates for.
产品
primary.xml <update-url> // ??? 或者通过 -release 包产品提供的 content UPDATEURLS .prod <urls><url name="update">
url array
Product::updateUrls()
urls of upadte repos; maybe displayed by yast
primary.xml product-updates-repoid() // -release 包产品提供的 content --"-- .prod <register><upadtes><repository>
string array
Product::updateContentIdentifier()
REPOIDs of required upadte repos, This is what 'zypper lr <alias>' list as 'Update Repositories:' for Fate#316160)
: