Skip to content

Commit

Permalink
remove whitespace from dependency name
Browse files Browse the repository at this point in the history
  • Loading branch information
annaborn committed Aug 23, 2023
1 parent 5bd30ba commit 4066e53
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion lib/apaka/packaging/autoproj2adaptor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ def dependencies(pkg, with_rock_release_prefix = true)
version = $1
end

name = name.gsub(/[<>=]=?.*$/,"")
name = name.gsub(/[ <>=]=?.*$/,"")

extra_gems << [name, version]
non_native_dependencies << [name, version]
Expand Down
1 change: 0 additions & 1 deletion lib/apaka/packaging/gem_dependencies.rb
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ def self.resolve_all_deps(gems = [], gemfile: "/tmp/apaka/Gemfile.all")
name = gem
end

name = name.strip
if available_specs.has_key?(name)
# skip already available definition
next
Expand Down

0 comments on commit 4066e53

Please sign in to comment.