lib/pkgforge/components/package.rb in pkgforge-0.4.2 vs lib/pkgforge/components/package.rb in pkgforge-0.4.3
- old
+ new
@@ -27,10 +27,12 @@
end
Contract None => nil
def copy_tarball!
FileUtils.mkdir_p 'pkg'
- FileUtils.cp tmpfile(:tarball), "pkg/#{name}-#{git_hash}.tar.gz"
+ pkg_file = "pkg/#{name}-#{git_hash}.tar.gz"
+ FileUtils.cp tmpfile(:tarball), pkg_file
+ FileUtils.chmod 0o0644, pkg_file
nil
end
end
end