Mailinglist Archive: opensuse-packaging (155 mails)

< Previous Next >
Re: [opensuse-packaging] Re: Proper version scheme for packages from git, hg, svn, ...

On Saturday 2014-01-11 14:53, Adam Spiers wrote:

Furthermore, this would mean that the tar_scm source service would
require an extra parameter (which only applies in the git case). It
also would require a patch to tar_scm to add support for your tag
offset mechanism. I believe in freedom of choice, so I would gladly
accept a pull request from you which supports that scheme

The following changes since commit e55833cfb2164776db0c27c2b2acab97264279d5:

Merge pull request #25 from vuntz/add-back-tac (2013-12-12 07:24:53 -0800)

are available in the git repository at:

git:// master

for you to fetch changes up to 3c38cd32941dfc51ac1245c9de91fd63e29969fe:

tar_scm: support retrieving the git tag offset (2014-01-11 16:26:46 +0100)

Jan Engelhardt (4):
tar_scm: check $? when it is fresh
tar_scm: shorten commit IDs in a safer way
tar_scm: more quoting in shell scripts is good
tar_scm: support retrieving the git tag offset

tar_scm | 49 ++++++++++++++++++++++++++++++++-----------------
tar_scm.service | 10 ++++++++++
2 files changed, 42 insertions(+), 17 deletions(-)

To use it in a bspkg (like openSUSE:Tools/obs-service-tar_scm itself),
the following changes were made:

--- _service 2014-01-11 16:28:54.778664717 +0100
+++ 2014-01-11 16:22:06.624469218 +0100
@@ -4,7 +4,8 @@
<param name="scm">git</param>
<param name="exclude">.git</param>
<param name="version">git-master</param>
- <param name="versionformat">0.3.2.%ct.%h</param>
+ <param name="versionformat">0.3.2+git@REVISION@</param>
+ <param name="basetag">v0.3.2</param>
<param name="revision">master</param>
<param name="changesgenerate">enable</param>

Specifying the basetag also has the advantage that @REVISION@ does not
go back to 0 without the bspkg maintainer noticing, which is also
a property that %ct seemed to hold in case a new git tag (e.g. v0.3.3)
was created while _service was left at versionformat=0.3.2.something.
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-packaging+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups