Skip to content

Package with version *and* timestamp? #32

Description

@ringods

My initial packages just had the timestamp detected via git as their version. For some of our work, we have parallel branches in which we want to identify the "major" release, but append the timestamp for consecutive builds.

Is this possible with swaddle? I tried setting the version in swaddle.conf but then the timestamp is gone. It seems to be one or the other.

E.g in a git-flow setup

  • On feature branch with version 1.4.1:
    • mypkg-1.4.1-2015.0511.1237+1.deb
    • mypkg-1.4.1-2015.0512.1427+1.deb
  • On development branch with version still at 1.4.0:
    • mypkg-1.4.0-2015.0418.1121+1.deb
    • mypkg-1.4.0-2015.0421.1541+1.deb
  • On master branch with version 1.3.0:
    • mypkg-1.3.0-2015.0405.0810+1.deb
    • mypkg-1.3.0-2015.0417.2254+1.deb

https://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Version

The examples above show the version I set in swaddle.conf as the upstream_version and the date+iteration as the debian_revision. Would match nicely. 😄

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions