From adf536f1e565f201752d5f1d0fe489cb373a3af2 Mon Sep 17 00:00:00 2001
From: rudolfkoenig <>
Date: Thu, 14 May 2015 07:59:32 +0000
Subject: [PATCH] 98_update.pm: updateNoFileCHeck attribute added (Forum
#37118)
git-svn-id: https://svn.fhem.de/fhem/trunk@8574 2b470e98-0d58-463d-a4d8-8e2adae1ed80
---
fhem/FHEM/98_update.pm | 32 +++++++++++++++++++++++++++-----
fhem/fhem.pl | 1 +
2 files changed, 28 insertions(+), 5 deletions(-)
diff --git a/fhem/FHEM/98_update.pm b/fhem/FHEM/98_update.pm
index 3b16b12de..bb32f1157 100644
--- a/fhem/FHEM/98_update.pm
+++ b/fhem/FHEM/98_update.pm
@@ -160,6 +160,7 @@ doUpdate($$)
}
my @excl = split(" ", AttrVal("global", "exclude_from_update", ""));
+ my $noSzCheck = AttrVal("global", "updateNoFileCheck", configDBUsed());
my @rl = upd_getChanges($root, $basePath);
###########################
@@ -211,17 +212,23 @@ doUpdate($$)
next;
}
- my $sz = -s $fPath;
- next if($isExcl || ($fileOk && defined($sz) && $sz eq $r[2]));
+ if($noSzCheck) {
+ next if($isExcl || $fileOk);
+
+ } else {
+ my $sz = -s $fPath;
+ next if($isExcl || ($fileOk && defined($sz) && $sz eq $r[2]));
+
+ }
}
+ $needJoin = 1 if($fName =~ m/commandref_frame/ || $fName =~ m/\d+.*.pm/);
+ next if($fName =~ m/commandref.*html/ && $fName !~ m/frame/ && $canJoin);
+
uLog 1, "List of new / modified files since last update:"
if($arg eq "check" && $nChanged == 0);
- $needJoin = 1 if($fName =~ m/commandref_frame/ || $fName =~ m/\d+.*.pm/);
- next if($fName =~ m/commandref.*html/ && $fName !~ m/frame/ && $canJoin);
$nChanged++;
-
uLog 1, "$r[0] $fName";
next if($arg eq "check");
@@ -526,6 +533,13 @@ upd_initRestoreDirs($)
Monitor.
+
+