projects
/
dak.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57bbf84
)
stip ./ from pathnames before they go into the db
author
Mike O'Connor
<stew@vireo.org>
Fri, 13 Mar 2009 20:13:27 +0000
(16:13 -0400)
committer
Mike O'Connor
<stew@vireo.org>
Fri, 13 Mar 2009 20:13:27 +0000
(16:13 -0400)
Signed-off-by: Mike O'Connor <stew@vireo.org>
daklib/dbconn.py
patch
|
blob
|
history
diff --git
a/daklib/dbconn.py
b/daklib/dbconn.py
index 8b25d258d93958332882dd0a302e1dbe0295b276..89072918a2f2c25f4a7a5c81bf39fa7c26ca36ad 100755
(executable)
--- 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)