Commit 9544b6b5 authored by ben's avatar ben

fixed small bug in parse_last_excludes


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@46 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent 31c724ff
......@@ -221,7 +221,8 @@ pattern (such as '**') which matches the base directory.""" %
def parse_last_excludes(self):
"""Exit with error if last selection function isn't an exclude"""
if self.select_functions and not self.selection_functions[-1].exclude:
if (self.selection_functions and
not self.selection_functions[-1].exclude):
Log.FatalError(
"""Last selection expression:
%s
......
......@@ -221,7 +221,8 @@ pattern (such as '**') which matches the base directory.""" %
def parse_last_excludes(self):
"""Exit with error if last selection function isn't an exclude"""
if self.select_functions and not self.selection_functions[-1].exclude:
if (self.selection_functions and
not self.selection_functions[-1].exclude):
Log.FatalError(
"""Last selection expression:
%s
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment