Skip to content

Commit

Permalink
feat(pkgs): patch to define version at built time
Browse files Browse the repository at this point in the history
  • Loading branch information
rezib committed Jul 26, 2023
1 parent e56a8d5 commit efc991c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Possiblity to define patches templates with variables to replace (#128).
- web: Report fatbuildr version in footer of fatbuildrweb HTML pages (#108).
- conf: Add `containerized` parameter in `[format:osi]` section.
- pkgs: Add patch to define upstream version at build time.
- docs:
- Mention `containerized` parameter in `[format:osi]` section of system
configuration.
Expand Down
16 changes: 16 additions & 0 deletions pkgs/fatbuildr/patches/generic/0003-replace-version
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Description: replace the software hard-coded version number with the
Last-Update: 2023-07-25
Template: yes
Author: Rémi Palancher <remi@rackslab.io>


diff --git a/fatbuildr/version.py b/fatbuildr/version.py
index b5d3800..db13aee 100644
--- a/fatbuildr/version.py
+++ b/fatbuildr/version.py
@@ -17,4 +17,4 @@
# You should have received a copy of the GNU General Public License
# along with Fatbuildr. If not, see <https://www.gnu.org/licenses/>.

-__version__ = '2.0.0'
+__version__ = '{{ version.main }}'

0 comments on commit efc991c

Please sign in to comment.