X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Ffilewriter.py;h=a3c16ea828c9f7b10b6881fec336fa9b294542a1;hb=1167c296bc272b18659855c58980a929d7c8ae97;hp=714531afe4b1a4163f120b81743dd29f91cfa097;hpb=2a55bd27726a98119a4bd67428bc03c3a3526606;p=dak.git diff --git a/daklib/filewriter.py b/daklib/filewriter.py index 714531af..a3c16ea8 100755 --- a/daklib/filewriter.py +++ b/daklib/filewriter.py @@ -93,10 +93,10 @@ class BinaryContentsFileWriter(BaseFileWriter): 'bzip2': False } flags.update(keywords) - if 'component' in flags: + if flags['debtype'] == 'deb': template = "dists/%(suite)s/%(component)s/Contents-%(architecture)s" - else: - template = "dists/%(suite)s/Contents-%(architecture)s" + else: # udeb + template = "dists/%(suite)s/%(component)s/Contents-udeb-%(architecture)s" BaseFileWriter.__init__(self, template, **flags) class SourceContentsFileWriter(BaseFileWriter):