Skip to content

Commit 118e866

Browse files
committed
Problem: unable to build extensions with required dependencies
Can't find the extensions we depend on. Solution: ensure we use the recently changed naming scheme We should introduce an centralized naming facility.
1 parent 90545b2 commit 118e866

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/pgpm/rpm/spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def to_s
7373
#{@package.build_dependencies.uniq.map { |dep| "BuildRequires: #{dep}" }.join("\n")}
7474
#{@package.dependencies.uniq.map { |dep| "Requires: #{dep}" }.join("\n")}
7575
#{@package.requires.uniq.map do |dep|
76-
req = dep.contrib? ? @postgres_distribution.package_for(dep) : "pgpm-#{dep.name}-#{@postgres_distribution.version}_#{dep.version}"
76+
req = dep.contrib? ? @postgres_distribution.package_for(dep) : "pgpm-#{dep.name}+#{dep.version}-#{@postgres_distribution.version}"
7777
raise "Can't build with a broken dependency #{dep.name}@#{dep.version}" if dep.broken?
7878
7979
"Requires: #{req}#{"\nBuildRequires: #{req}" if dep.contrib?}"

0 commit comments

Comments
 (0)