summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-10-16 21:00:07 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-10-16 21:00:07 +0200
commit2a0e14944d3a559e3d3f759e2d8c2ca59a29305d (patch)
treeeef1d957e4a4d5a8c2726efbf0158f5d9b77554a
parent13834343b6b11e0fcbb914408d37f7956b7e656b (diff)
downloadpython-fastimport-2a0e14944d3a559e3d3f759e2d8c2ca59a29305d.tar.gz
Cope with FileModifyCommand now having mode rather than is_executable and kind.
-rw-r--r--fastimport/processors/info_processor.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/fastimport/processors/info_processor.py b/fastimport/processors/info_processor.py
index 2575b4b..0f96992 100644
--- a/fastimport/processors/info_processor.py
+++ b/fastimport/processors/info_processor.py
@@ -26,6 +26,7 @@ from fastimport.helpers import (
invert_dict,
invert_dictset,
)
+import stat
class InfoProcessor(processor.ImportProcessor):
@@ -194,9 +195,9 @@ class InfoProcessor(processor.ImportProcessor):
for fc in cmd.file_iter():
self.file_cmd_counts[fc.name] += 1
if isinstance(fc, commands.FileModifyCommand):
- if fc.is_executable:
+ if fc.mode & 0111:
self.executables_found = True
- if fc.kind == commands.SYMLINK_KIND:
+ if stat.S_ISLNK(fc.mode):
self.symlinks_found = True
if fc.dataref is not None:
if fc.dataref[0] == ':':