提交 bfcb19c7 编写于 作者: J James Troup

remove testing == stable mirror anachronism. don't do transcation stuff in...

remove testing == stable mirror anachronism.  don't do transcation stuff in lower level update_foo().
上级 8b506d47
......@@ -2,7 +2,7 @@
# Populate the DB
# Copyright (C) 2000, 2001, 2002 James Troup <james@nocrew.org>
# $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();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册