Skip to content

Commit df48c1a

Browse files
committed
Dynamically determine the target repository
Rather than hardcoding it we take the major version as a variable.
1 parent 2af24df commit df48c1a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

configs/projects/openvox-agent.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,9 @@
9393
proj.license "See components"
9494
proj.vendor "Vox Pupuli <openvox@voxpupuli.org>"
9595
proj.homepage "https://voxpupuli.org"
96-
proj.target_repo "openvox8"
96+
97+
major = proj.get_version.split('.').first
98+
proj.target_repo "openvox#{major}"
9799

98100
if platform.is_solaris?
99101
proj.identifier "voxpupuli.org"

0 commit comments

Comments
 (0)