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

[dak/master] strip ./ from front of paths during contents.bootstrap



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 9801fdf..3879129 100755
--- a/daklib/dbconn.py
+++ b/daklib/dbconn.py
@@ -514,6 +514,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: