From: James Troup Date: Sun, 9 Jun 2002 17:33:46 +0000 (+0000) Subject: remove testing == stable mirror anachronism. don't do transcation stuff in lower... X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bfcb19c7c6ba9884bc784f6f90d4f2b0e0fc5020;p=dak remove testing == stable mirror anachronism. don't do transcation stuff in lower level update_foo(). --- diff --git a/neve b/neve index dd9bd469..eb94e2e3 100755 --- a/neve +++ b/neve @@ -2,7 +2,7 @@ # Populate the DB # Copyright (C) 2000, 2001, 2002 James Troup -# $Id: neve,v 1.12 2002-06-08 00:23:35 troup Exp $ +# $Id: neve,v 1.13 2002-06-09 17:33:46 troup Exp $ # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -313,18 +313,14 @@ def update_suites (): projectB.query("INSERT INTO suite_architectures (suite, architecture) VALUES (currval('suite_id_seq'), %d)" % (architecture_id)); def update_override_type(): - projectB.query("BEGIN WORK"); projectB.query("DELETE FROM override_type"); for type in Cnf.ValueList("OverrideType"): projectB.query("INSERT INTO override_type (type) VALUES ('%s')" % (type)); - projectB.query("COMMIT WORK"); def update_priority(): - projectB.query("BEGIN WORK"); projectB.query("DELETE FROM priority"); for priority in Cnf.SubTree("Priority").List(): projectB.query("INSERT INTO priority (priority, level) VALUES ('%s', %s)" % (priority, Cnf["Priority::%s" % (priority)])); - projectB.query("COMMIT WORK"); ############################################################################### @@ -346,8 +342,6 @@ def process_sources (location, filename, suite, component, archive, dsc_dir): suite = string.lower(suite); suite_id = db_access.get_suite_id(suite); - if suite == 'stable': - testing_id = db_access.get_suite_id("testing"); try: file = utils.open_file (filename); except utils.cant_open_exc: @@ -411,10 +405,6 @@ def process_sources (location, filename, suite, component, archive, dsc_dir): src_associations_id_serial = src_associations_id_serial + 1; src_associations_query_cache.write("%d\t%d\t%d\n" % (src_associations_id_serial, suite_id, tmp_source_id)) - # populate 'testing' with a mirror of 'stable' - if suite == "stable": - src_associations_id_serial = src_associations_id_serial + 1; - src_associations_query_cache.write("%d\t%d\t%d\n" % (src_associations_id_serial, testing_id, tmp_source_id)) file.close(); @@ -427,8 +417,6 @@ def process_packages (location, filename, suite, component, archive): count_bad = 0; suite = string.lower(suite); suite_id = db_access.get_suite_id(suite); - if suite == "stable": - testing_id = db_access.get_suite_id("testing"); try: file = utils.open_file (filename); except utils.cant_open_exc: @@ -486,9 +474,6 @@ def process_packages (location, filename, suite, component, archive): bin_associations_id_serial = bin_associations_id_serial + 1; bin_associations_query_cache.write("%d\t%d\t%d\n" % (bin_associations_id_serial, suite_id, tmp_binaries_id)); - if suite == "stable": - bin_associations_id_serial = bin_associations_id_serial + 1; - bin_associations_query_cache.write("%d\t%d\t%d\n" % (bin_associations_id_serial, testing_id, tmp_binaries_id)); count_total = count_total +1; file.close();