summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Portage.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/Portage.pm b/Portage.pm
index 0b6cace..b909092 100644
--- a/Portage.pm
+++ b/Portage.pm
@@ -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;