Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
喜羊羊3508
Dak
提交
eb12fb9b
D
Dak
项目概览
喜羊羊3508
/
Dak
11 个月 前同步成功
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Dak
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
eb12fb9b
编写于
8月 07, 2008
作者:
J
Joerg Jaspert
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Error out when we are unable to find a source id for a file we want to install. Shouldnt happen.
上级
b5e472e7
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
12 addition
and
3 deletion
+12
-3
ChangeLog
ChangeLog
+8
-0
dak/process_accepted.py
dak/process_accepted.py
+2
-2
daklib/dak_exceptions.py
daklib/dak_exceptions.py
+2
-1
未找到文件。
ChangeLog
浏览文件 @
eb12fb9b
2008
-
08
-
07
Joerg
Jaspert
<
joerg
@
debian
.
org
>
*
dak
/
process_accepted
.
py
(
install
):
Error
out
with
the
new
exception
if
we
dont
know
the
source
package
for
a
file
we
want
to
install
.
Shouldn
't ever hit us, but better safe than sorry.
* daklib/dak_exceptions.py (dakerrors): new exception - no source field.
2008-08-05 Joerg Jaspert <joerg@debian.org>
* config/debian/cron.unchecked: disable the ssh-move insanity (and
...
...
dak/process_accepted.py
浏览文件 @
eb12fb9b
...
...
@@ -35,6 +35,7 @@ from daklib import database
from
daklib
import
logging
from
daklib
import
queue
from
daklib
import
utils
from
daklib.dak_exceptions
import
*
###############################################################################
...
...
@@ -354,8 +355,7 @@ def install ():
projectB
.
query
(
"INSERT INTO binaries (package, version, maintainer, source, architecture, file, type, sig_fpr) VALUES ('%s', '%s', %d, %d, %d, %d, '%s', %d)"
%
(
package
,
version
,
maintainer_id
,
source_id
,
architecture_id
,
files
[
file
][
"files id"
],
type
,
fingerprint_id
))
else
:
projectB
.
query
(
"INSERT INTO binaries (package, version, maintainer, architecture, file, type, sig_fpr) VALUES ('%s', '%s', %d, %d, %d, '%s', %d)"
%
(
package
,
version
,
maintainer_id
,
architecture_id
,
files
[
file
][
"files id"
],
type
,
fingerprint_id
))
raise
NoSourceFieldError
,
"Unable to find a source id for %s (%s), %s, file %s, type %s, signed by %s"
%
(
package
,
version
,
architecture
,
file
,
type
,
sig_fpr
)
for
suite
in
changes
[
"distribution"
].
keys
():
suite_id
=
database
.
get_suite_id
(
suite
)
projectB
.
query
(
"INSERT INTO bin_associations (suite, bin) VALUES (%d, currval('binaries_id_seq'))"
%
(
suite_id
))
...
...
daklib/dak_exceptions.py
浏览文件 @
eb12fb9b
...
...
@@ -48,7 +48,8 @@ dakerrors = {
"FileExistsError"
:
"""Exception raised when destination file exists."""
,
"SendmailFailedError"
:
"""Exception raised when Sendmail invocation failed."""
,
"NoFreeFilenameError"
:
"""Exception raised when no alternate filename was found."""
,
"TransitionsError"
:
"""Exception raised when transitions file can't be parsed."""
"TransitionsError"
:
"""Exception raised when transitions file can't be parsed."""
,
"NoSourceFieldError"
:
"""Exception raised - we cant find the source - wtf?"""
}
def
construct_dak_exception
(
name
,
description
):
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录