Skip to content

Commit

Permalink
Merge pull request #619 from openSUSE/yupdate_git_fix
Browse files Browse the repository at this point in the history
Fixed rubygem installation when running in yupdate script
  • Loading branch information
lslezak committed Jun 13, 2023
2 parents 46b1873 + 6fead4a commit 6ff264b
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions service/agama.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,17 @@

Gem::Specification.new do |spec|
spec.name = "agama"
# the version is <version_tag>.devel<number_of_commits_since_the_tag>
# or just <version_tag> if there are no additional commits
spec.version = `git describe --tags`.chomp.sub(/^v/, "").sub(/-([0-9]+)-g\h+\Z/, ".devel\\1")

# in a git checkout?
if File.exist?(File.join(__dir__, "../.git"))
# the version is <version_tag>.devel<number_of_commits_since_the_tag>
# or just <version_tag> if there are no additional commits
spec.version = `git describe --tags`.chomp.sub(/^v/, "").sub(/-([0-9]+)-g\h+\Z/, ".devel\\1")
else
# running in yupdate script, use a fake version
spec.version = "99.yupdate"
end

spec.summary = "Agama Installer Service"
spec.description = "System service for Agama, an experimental YaST-based installer."
spec.author = "YaST Team"
Expand Down

0 comments on commit 6ff264b

Please sign in to comment.