[dak/master] dak/dakdb/update75.py: handle "/" in component names.
---
dak/dakdb/update75.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dak/dakdb/update75.py b/dak/dakdb/update75.py
index e668433..d152d64 100644
--- a/dak/dakdb/update75.py
+++ b/dak/dakdb/update75.py
@@ -54,7 +54,7 @@ def _track_files_per_archive(cnf, c):
FROM files f
JOIN location l ON f.location = l.id""", (archive_id,))
- c.execute("""UPDATE files f SET filename = substring(f.filename FROM '/(.*)')
+ c.execute("""UPDATE files f SET filename = substring(f.filename FROM c.name || '/(.*)')
FROM location l, component c
WHERE f.location = l.id AND l.component = c.id
AND f.filename LIKE c.name || '/%'""")
--
1.7.2.5
Reply to: