lib/pkgforge/components/metadata.rb in pkgforge-0.22.0 vs lib/pkgforge/components/metadata.rb in pkgforge-0.23.0

- old
+ new

@@ -21,9 +21,10 @@ @licenses ||= ['LICENSE'] end Contract None => nil def add_license! + return if licenses.empty? dest_dir = File.join(tmpdir(:release), 'usr', 'share', 'licenses', name) FileUtils.mkdir_p dest_dir licenses.each do |license| src_file = File.join(tmpdir(:build), license) dest_file = File.join(dest_dir, license)