From ddf0f7dd6691ac530013468c68b6e81118c67a31 Mon Sep 17 00:00:00 2001
From: Torsten Werner <twerner@debian.org>
Date: Thu, 10 Mar 2011 22:52:57 +0100
Subject: [PATCH] Write full section to Contents files.

Signed-off-by: Torsten Werner <twerner@debian.org>
---
 daklib/contents.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/daklib/contents.py b/daklib/contents.py
index 65e7e3f1..056da53f 100755
--- a/daklib/contents.py
+++ b/daklib/contents.py
@@ -92,7 +92,7 @@ unique_override as
         where o.suite = :overridesuite and o.type = :type_id and o.section = s.id and
         o.component = :component)
 
-select bc.file, substring(o.section from position('/' in o.section) + 1) || '/' || b.package as package
+select bc.file, o.section || '/' || b.package as package
     from newest_binaries b, bin_contents bc, unique_override o
     where b.id = bc.binary_id and o.package = b.package
     order by bc.file, b.package'''
@@ -120,7 +120,7 @@ unique_override as
         where o.suite = :overridesuite and o.type = :type_id and o.section = s.id
         order by o.package, s.section, o.modified desc)
 
-select bc.file, substring(o.section from position('/' in o.section) + 1) || '/' || b.package as package
+select bc.file, o.section || '/' || b.package as package
     from newest_binaries b, bin_contents bc, unique_override o
     where b.id = bc.binary_id and o.package = b.package
     order by bc.file, b.package'''
-- 
2.39.5