ohjeongwook / DarunGrim

A patch analysis tool
http://darungrim.org
Other
359 stars 70 forks source link

FileStore.py uses incorrect GetFilesBySHA1 usage #11

Closed jduck closed 9 years ago

jduck commented 14 years ago

It only passes the sha1, but the API requires 7 params.

jduck commented 14 years ago
diff --git a/Src/Bin Collector/FileStore.py b/Src/Bin Collector/FileStore.py
index cb7d434..c76afda 100644
--- a/Src/Bin Collector/FileStore.py    
+++ b/Src/Bin Collector/FileStore.py    
@@ -139,7 +139,7 @@ class FileProcessor:
                            target_dirname = os.getcwd()

                        target_relative_filename = os.path.join( target_relative_directory, os.path.basename( current_path ) )
-                       files = self.Database.GetFileBySHA1( sha1 )
+                       files = self.Database.GetFileBySHA1( sha1, None,None,None,None,None )

                        if not files or len(files) == 0 or overwrite_mode:
                            if self.DebugLevel > 2:
ohjeongwook commented 9 years ago

Closing this as the change has been applied. And new DarunGrim has integrated whole changes to new GUI based file collector.