提交 0d607ab2 编写于 作者: T Torsten Werner

fix OverrideSuite handling

do it in determine_new() (queue.py) instead of do_new() (process_new.py)
Signed-off-by: NTorsten Werner <twerner@debian.org>
上级 7510b46d
......@@ -611,21 +611,6 @@ def do_new(upload, session):
# Make a copy of distribution we can happily trample on
changes["suite"] = copy.copy(changes["distribution"])
# Fix up the list of target suites
for suite in changes["suite"].keys():
override = cnf.Find("Suite::%s::OverrideSuite" % (suite))
if override:
(olderr, newerr) = (get_suite(suite, session) == None,
get_suite(override, session) == None)
if olderr or newerr:
(oinv, newinv) = ("", "")
if olderr: oinv = "invalid "
if newerr: ninv = "invalid "
print "warning: overriding %ssuite %s to %ssuite %s" % (
oinv, suite, ninv, override)
del changes["suite"][suite]
changes["suite"][override] = 1
# The main NEW processing loop
done = 0
while not done:
......
......@@ -148,6 +148,22 @@ def determine_new(changes, files, warn=1):
if f.has_key("othercomponents"):
new[pkg]["othercomponents"] = f["othercomponents"]
# Fix up the list of target suites
cnf = Config()
for suite in changes["suite"].keys():
override = cnf.Find("Suite::%s::OverrideSuite" % (suite))
if override:
(olderr, newerr) = (get_suite(suite, session) == None,
get_suite(override, session) == None)
if olderr or newerr:
(oinv, newinv) = ("", "")
if olderr: oinv = "invalid "
if newerr: ninv = "invalid "
print "warning: overriding %ssuite %s to %ssuite %s" % (
oinv, suite, ninv, override)
del changes["suite"][suite]
changes["suite"][override] = 1
for suite in changes["suite"].keys():
for pkg in new.keys():
ql = get_override(pkg, suite, new[pkg]["component"], new[pkg]["type"], session)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册