Skip to content

Commit 0fdc106

Browse files
NicholasBHubbardjordansissel
authored andcommitted
Strip version component of ignored dependency before comparison
1 parent 40064c9 commit 0fdc106

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/fpm/package/deb.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -826,6 +826,7 @@ def converted_from(origin)
826826
end
827827
self.dependencies = self.dependencies.reject do |dep|
828828
# Reject non-module Perl dependencies like 'vars' and 'warnings'
829+
dep, _ = dep.split(' ') # strip potential version component
829830
rejects.include?(dep)
830831
end.collect(&perldepfix).collect(&method(:fix_dependency))
831832

0 commit comments

Comments
 (0)