diff --git a/lib/fpm/package/pacman.rb b/lib/fpm/package/pacman.rb index e696278a42..0e5496ebc7 100644 --- a/lib/fpm/package/pacman.rb +++ b/lib/fpm/package/pacman.rb @@ -137,7 +137,7 @@ def input(pacman_pkg_path) # Speaking of just taking the first entry of the field: # A crude thing to do, but I suppose it's better than nothing. # -- Daniel Haskin, 3/24/2015 - self.category = control["group"][0] || self.category + self.category = control["group"] && control["group"][0] || self.category # Licenses could include more than one. # Speaking of just taking the first entry of the field: @@ -164,6 +164,10 @@ def input(pacman_pkg_path) end self.dependencies = control["depend"] || self.dependencies + + if attributes[:no_auto_depends?] + self.dependencies = [] + end self.attributes[:pacman_optional_depends] = control["optdepend"] || [] # There are other available attributes, but I didn't include them because: