#!/usr/bin/env python
-# Cruft checker and hole filler for overrides
+""" Cruft checker and hole filler for overrides """
# Copyright (C) 2000, 2001, 2002, 2004, 2006 James Troup <james@nocrew.org>
# Copyright (C) 2005 Jeroen van Wolffelaar <jeroen@wolffelaar.nl>
import pg, sys, os
import apt_pkg
-import daklib.database as database
-import daklib.logging as logging
-import daklib.utils as utils
+from daklib import database
+from daklib import logging
+from daklib import utils
################################################################################
print "Processing %s%s..." % (osuite, originremark)
# Get a list of all suites that use the override file of 'osuite'
- ocodename = Cnf["Suite::%s::codename" % osuite]
+ ocodename = Cnf["Suite::%s::codename" % osuite].lower()
suites = []
for suite in Cnf.SubTree("Suite").List():
- if ocodename == Cnf["Suite::%s::OverrideCodeName" % suite]:
+ if ocodename == Cnf["Suite::%s::OverrideCodeName" % suite].lower():
suites.append(suite)
q = projectB.query("SELECT id FROM suite WHERE suite_name in (%s)" \
utils.fubar("Couldn't find id's of all suites: %s" % suites)
for component in Cnf.SubTree("Component").List():
- if component == "mixed":
- continue; # Ick
# It is crucial for the dsc override creation based on binary
# overrides that 'dsc' goes first
otypes = Cnf.ValueList("OverrideType")