diff options
-rw-r--r-- | Portage.pm | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -528,9 +528,10 @@ sub _get_files_from_dir { defined($isRecursive) or $isRecursive = 0; for my $confFile (glob("$search_path/*")) { - # Skip hidden, backup and temporary files + + # Skip hidden and backup files if ( (-f $confFile ) - && ( ($confFile =~ /(?:\.bak|~|\.old|\.tmp)$/) + && ( ($confFile =~ /~$/) || ($confFile =~ /^\./) ) ) { debugMsg("Skipping file $confFile"); next; |