summaryrefslogtreecommitdiff
path: root/dateibeziehungen.pas
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-11-24 15:29:14 +0100
committerErich Eckner <git@eckner.net>2017-11-24 15:29:14 +0100
commit1f087c26e5236eb8fdd0685e9ae75bc02d8d3c24 (patch)
treeccc4ec7ddd355a621d77e5c7fa9fd57ce83555ed /dateibeziehungen.pas
parent3c9b7073f95db84c234524e743dc5900bd30fa9b (diff)
downloadMake-1f087c26e5236eb8fdd0685e9ae75bc02d8d3c24.tar.xz
bugfix Lokalitätstest
Diffstat (limited to 'dateibeziehungen.pas')
-rw-r--r--dateibeziehungen.pas7
1 files changed, 4 insertions, 3 deletions
diff --git a/dateibeziehungen.pas b/dateibeziehungen.pas
index a27b0e4..22ce0b5 100644
--- a/dateibeziehungen.pas
+++ b/dateibeziehungen.pas
@@ -1029,10 +1029,11 @@ begin
befehle.add(_mglAbh[i].befehle[j]);
if not unsicher then begin
lokTest:=tRegExpr.create;
- if extractfilepath(ausgabeDatei)=extractfilepath(pruefsummenDatei) then
- lokTest.expression:='^'+extractfilepath(ausgabeDatei)+'/'
+ if (ausgabeDatei='') or
+ (extractfilepath(ausgabeDatei)=extractfilepath(pruefsummenDatei)) then
+ lokTest.expression:='^'+extractfilepath(pruefsummenDatei)
else
- lokTest.expression:='^('+extractfilepath(ausgabeDatei)+'|'+extractfilepath(pruefsummenDatei)+')/';
+ lokTest.expression:='^('+extractfilepath(ausgabeDatei)+'|'+extractfilepath(pruefsummenDatei)+')';
for i:=0 to befehle.count-1 do
testeObBefehlLokal(befehle[i],extractfiledir(ausgabeDatei),geaenderteDateien,lokTest);
lokTest.free;