def _bump_version(self): """ Force options we need. """ version = os.environ.get(FORCED_VERSION) if version: self._use_version = version forced = True else: forced = False return VersionTagger._bump_version(self, False, False, forced)
def _bump_version(self): """ Bump the version unless VERSION_AND_RELEASE specified in the environment. When specified, both the version and release are forced as specified. VERSION_AND_RELEASE must be VR part of NEVRA Eg: 2.0.1-0.1.alpha """ version = os.environ.get(VERSION_AND_RELEASE) if version: parts = version.rsplit('-', 1) if len(parts) != 2: error_out('"%s" not valid' % version) self.__update_spec(*parts) return version else: return VersionTagger._bump_version(self)
def _bump_version(self): """ Bump the version unless VERSION_AND_RELEASE specified in the environment. When specified, both the version and release are forced as specified. VERSION_AND_RELEASE must be VR part of NEVRA Eg: 2.0.1-0.1.alpha """ version = os.environ.get(VERSION_AND_RELEASE) if version: parts = version.rsplit('-', 1) if len(parts) != 2: error_out('"%s" not valid' % version) self.__update_spec(*parts) return version else: return VersionTagger._bump_version(self)
def _bump_version(self): """ Force options we need. """ return VersionTagger._bump_version(self, False, False, True)