提交 ed02a999 编写于 作者: F Frank Lichtenheld

make sure that we add all poolfiles to the buildd queue

We missed the .orig.tar in cases where it was already in
the pool.
Signed-off-by: NFrank Lichtenheld <djpig@debian.org>
上级 d18307c7
......@@ -2062,6 +2062,11 @@ def add_dsc_to_db(u, filename, session=None):
poolfile = add_poolfile(filename, dentry, dsc_location_id, session)
pfs.append(poolfile)
files_id = poolfile.file_id
else:
poolfile = get_poolfile_by_id(files_id, session)
if poolfile is None:
utils.fubar("INTERNAL ERROR. Found no poolfile with id %d" % files_id)
pfs.append(poolfile)
df.poolfile_id = files_id
session.add(df)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册