[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master] stip ./ from pathnames before they go into the db



Signed-off-by: Mike O'Connor <stew@vireo.org>
---
 daklib/dbconn.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/daklib/dbconn.py b/daklib/dbconn.py
index 8b25d25..8907291 100755
--- a/daklib/dbconn.py
+++ b/daklib/dbconn.py
@@ -555,6 +555,8 @@ class DBConn(Singleton):
             for fullpath in fullpaths:
                 (path, file) = os.path.split(fullpath)
 
+                if path.startswith( "./" ):
+                    path = path[2:]
                 # Get the necessary IDs ...
                 file_id = self.get_or_set_contents_file_id(file)
                 path_id = self.get_or_set_contents_path_id(path)
-- 
1.5.6.5


Reply to: