From 4b6da621d85869a62d3e077ff5b650ce7f5a9950 Mon Sep 17 00:00:00 2001 From: Maxime Caumartin Date: Fri, 7 Nov 2014 14:04:00 -0500 Subject: [PATCH] Fixed config_files crashing when no files are in rpm --- lib/arr-pm/file.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/arr-pm/file.rb b/lib/arr-pm/file.rb index 1427c55..7211507 100644 --- a/lib/arr-pm/file.rb +++ b/lib/arr-pm/file.rb @@ -181,7 +181,7 @@ def config_files # The :fileflags (and other :file... tags) are an array, in order of # files in the rpm payload, we want a list of paths of config files. results << files[i] if mask?(flag, FLAG_CONFIG_FILE) - end + end unless tags[:fileflags].nil? # This can be null if there is no file stored in the rpm. return results end # def config_files