提交 8e12b325 编写于 作者: M Mark Hymers

disable contents storage for now

Signed-off-by: NMark Hymers <mhy@debian.org>
上级 51299d98
......@@ -300,7 +300,8 @@ def copy_temporary_contents(package, version, archname, deb, reject, session=Non
message = utils.TemplateSubst(subst, cnf["Dir::Templates"]+"/missing-contents")
utils.send_mail(message)
exists = Binary(deb, reject).scan_package()
# Temporarily disable contents storage until we re-do the table layout
#exists = Binary(deb, reject).scan_package()
if exists:
sql = """INSERT INTO content_associations(binary_pkg,filepath,filename)
......
......@@ -690,11 +690,12 @@ class Upload(object):
# Check the version and for file overwrites
self.check_binary_against_db(f, session)
b = Binary(f)
b.scan_package()
if len(b.rejects) > 0:
for j in b.rejects:
self.rejects.append(j)
# Temporarily disable contents generation until we change the table storage layout
#b = Binary(f)
#b.scan_package()
#if len(b.rejects) > 0:
# for j in b.rejects:
# self.rejects.append(j)
def source_file_checks(self, f, session):
entry = self.pkg.files[f]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册