Skip to content
Snippets Groups Projects
Commit 07257f2f authored by Jack Nagel's avatar Jack Nagel
Browse files

Simplify Pathname#install_metafiles

parent fcacb25c
No related branches found
No related tags found
No related merge requests found
......@@ -375,12 +375,8 @@ class Pathname
EOS
end
def install_metafiles from=nil
# Default to current path, and make sure we have a pathname, not a string
from = "." if from.nil?
from = Pathname.new(from.to_s)
from.children.each do |p|
def install_metafiles from=Pathname.pwd
Pathname(from).children.each do |p|
next if p.directory?
next unless Metafiles.copy?(p)
# Some software symlinks these files (see help2man.rb)
......@@ -389,7 +385,7 @@ class Pathname
# we may have already moved it. libxml2's COPYING and Copyright are affected by this.
next unless filename.exist?
filename.chmod 0644
self.install filename
install(filename)
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment