From 5895b63ef6286c2fe0cf5ad1f7335ecc3f075921 Mon Sep 17 00:00:00 2001 From: mudler Date: Sun, 6 Mar 2016 17:00:55 +0100 Subject: [PATCH] [builder] moving @Installed_Packages chomp to a more logic part --- builder | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder b/builder index e6ac168..e788d99 100755 --- a/builder +++ b/builder @@ -68,7 +68,6 @@ sub calculate_missing { # Getting the package dependencies and the installed packages say "[$package] Getting the package dependencies and the installed packages"; my @Packages = package_deps( $package, $depth, 1 ); - chomp(@Installed_Packages); say "[$package] Getting the package dependencies and the installed packages"; #taking only the 4th column of output as key of the hashmap @@ -193,6 +192,7 @@ if ($use_equo) { my @packages_deps; my @Installed_Packages = qx/equo q list installed --quiet/; my @Available_Packages = available_packages(); + chomp(@Installed_Packages); foreach my $p (@packages) { say "[$p] Getting the package dependencies which aren't already installed on the system.. "; push( @packages_deps, calculate_missing( $p , $dep_scan_depth,\@Installed_Packages,\@Available_Packages) )