2006-05-18 James Troup <james@nocrew.org>
+ * dak/init_db.py (main): check returned value from
+ database.get_archive_id().
+
* dak/dak.py: renamed from shell.py. Update to support new source
layout. Created init() and usage() functions. Various
pylint-inspired cleanups. Use daklib utils.warn() and
for location in Cnf.SubTree("Location").List():
Location = Cnf.SubTree("Location::%s" % (location))
archive_id = daklib.database.get_archive_id(Location["Archive"])
+ if archive_id == -1:
+ daklib.utils.fubar("Archive '%s' for location '%s' not found."
+ % (Location["Archive"], location))
type = Location.get("type")
if type == "legacy-mixed":
projectB.query("INSERT INTO location (path, archive, type) VALUES ('%s', %d, '%s')" % (location, archive_id, Location["type"]))