from mic import msger
RPM_RE = re.compile("(.*)\.(.*) (.*)-(.*)")
-RPM_FMT = "%(name)s.%(arch)s %(ver_rel)s"
+RPM_FMT = "%(name)s.%(arch)s %(version)s-%(release)s"
SRPM_RE = re.compile("(.*)-(\d+.*)-(\d+\.\d+).src.rpm")
def build_name(kscfg, release=None, prefix = None, suffix = None):
pkg_long_name = misc.RPM_FMT % {
'name': pkg.name,
'arch': pkg.arch,
- 'ver_rel': pkg.printVer(),
+ 'version': pkg.version,
+ 'release': pkg.release
}
self.__pkgs_content[pkg_long_name] = pkg.files
license = pkg.license
pkg_long_name = misc.RPM_FMT % {
'name': hdr['name'],
'arch': hdr['arch'],
- 'ver_rel': '%s-%s' % (hdr['version'],
- hdr['release']),
+ 'version': hdr['version'],
+ 'release': hdr['release']
}
license = hdr['license']
pkg_long_name = misc.RPM_FMT % {
'name': pkg.name(),
'arch': pkg.arch(),
- 'ver_rel': pkg.edition(),
+ 'version': pkg.edition().version(),
+ 'release': pkg.edition().release()
}
package = zypp.asKindPackage(pkg)