summaryrefslogtreecommitdiff
path: root/dateibeziehungen.pas
diff options
context:
space:
mode:
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;