summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Eden <yamakuzure@gmx.net>2013-09-10 06:15:17 +0200
committerSven Eden <yamakuzure@gmx.net>2013-09-10 06:15:17 +0200
commitb9be614d316b878b308b9a06dfa46427af153c91 (patch)
tree33ca951df766e8f7bf26cf46a332aeea955c215d
parentAdded prefixing of predefined configuration values and added read-only-mode a... (diff)
downloadufed-b9be614d316b878b308b9a06dfa46427af153c91.tar.gz
ufed-b9be614d316b878b308b9a06dfa46427af153c91.tar.bz2
ufed-b9be614d316b878b308b9a06dfa46427af153c91.zip
Portage.pm: When scanning a make.conf directory, only skip files beginning with . or ending with ~.
-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;