Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
喜羊羊3508
Dak
提交
77bd8c2d
D
Dak
项目概览
喜羊羊3508
/
Dak
12 个月 前同步成功
通知
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,发现更多精彩内容 >>
提交
77bd8c2d
编写于
10月 26, 2009
作者:
M
Mark Hymers
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
initialise template variables
Signed-off-by:
N
Mark Hymers
<
mhy@debian.org
>
上级
6f5ec2ec
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
10 addition
and
3 deletion
+10
-3
dak/process_unchecked.py
dak/process_unchecked.py
+2
-1
daklib/queue.py
daklib/queue.py
+8
-2
未找到文件。
dak/process_unchecked.py
浏览文件 @
77bd8c2d
...
@@ -427,6 +427,7 @@ def acknowledge_new(u, summary, short_summary):
...
@@ -427,6 +427,7 @@ def acknowledge_new(u, summary, short_summary):
if
not
Options
[
"No-Mail"
]:
if
not
Options
[
"No-Mail"
]:
print
"Sending new ack."
print
"Sending new ack."
template
=
os
.
path
.
join
(
cnf
[
"Dir::Templates"
],
'process-unchecked.new'
)
template
=
os
.
path
.
join
(
cnf
[
"Dir::Templates"
],
'process-unchecked.new'
)
u
.
update_subst
()
u
.
Subst
[
"__SUMMARY__"
]
=
summary
u
.
Subst
[
"__SUMMARY__"
]
=
summary
new_ack_message
=
utils
.
TemplateSubst
(
u
.
Subst
,
template
)
new_ack_message
=
utils
.
TemplateSubst
(
u
.
Subst
,
template
)
utils
.
send_mail
(
new_ack_message
)
utils
.
send_mail
(
new_ack_message
)
...
@@ -495,7 +496,7 @@ def process_it(changes_file):
...
@@ -495,7 +496,7 @@ def process_it(changes_file):
valid_changes_p
=
u
.
load_changes
(
changespath
)
valid_changes_p
=
u
.
load_changes
(
changespath
)
else
:
else
:
valid_changes_p
=
False
valid_changes_p
=
False
u
.
rejects
.
extend
(
rejects
)
u
.
rejects
.
extend
(
rejects
)
if
valid_changes_p
:
if
valid_changes_p
:
while
u
.
reprocess
:
while
u
.
reprocess
:
...
...
daklib/queue.py
浏览文件 @
77bd8c2d
...
@@ -1474,6 +1474,7 @@ class Upload(object):
...
@@ -1474,6 +1474,7 @@ class Upload(object):
for
bug
in
bugs
:
for
bug
in
bugs
:
summary
+=
"%s "
%
(
bug
)
summary
+=
"%s "
%
(
bug
)
if
action
:
if
action
:
self
.
update_subst
()
self
.
Subst
[
"__BUG_NUMBER__"
]
=
bug
self
.
Subst
[
"__BUG_NUMBER__"
]
=
bug
if
self
.
pkg
.
changes
[
"distribution"
].
has_key
(
"stable"
):
if
self
.
pkg
.
changes
[
"distribution"
].
has_key
(
"stable"
):
self
.
Subst
[
"__STABLE_WARNING__"
]
=
"""
self
.
Subst
[
"__STABLE_WARNING__"
]
=
"""
...
@@ -1484,8 +1485,8 @@ The update will eventually make its way into the next released Debian
...
@@ -1484,8 +1485,8 @@ The update will eventually make its way into the next released Debian
distribution."""
distribution."""
else
:
else
:
self
.
Subst
[
"__STABLE_WARNING__"
]
=
""
self
.
Subst
[
"__STABLE_WARNING__"
]
=
""
mail_message
=
utils
.
TemplateSubst
(
self
.
Subst
,
template
)
mail_message
=
utils
.
TemplateSubst
(
self
.
Subst
,
template
)
utils
.
send_mail
(
mail_message
)
utils
.
send_mail
(
mail_message
)
# Clear up after ourselves
# Clear up after ourselves
del
self
.
Subst
[
"__BUG_NUMBER__"
]
del
self
.
Subst
[
"__BUG_NUMBER__"
]
...
@@ -1537,6 +1538,7 @@ distribution."""
...
@@ -1537,6 +1538,7 @@ distribution."""
summary
+=
"Announcing to %s
\n
"
%
(
announce_list
)
summary
+=
"Announcing to %s
\n
"
%
(
announce_list
)
if
action
:
if
action
:
self
.
update_subst
()
self
.
Subst
[
"__ANNOUNCE_LIST_ADDRESS__"
]
=
announce_list
self
.
Subst
[
"__ANNOUNCE_LIST_ADDRESS__"
]
=
announce_list
if
cnf
.
get
(
"Dinstall::TrackingServer"
)
and
\
if
cnf
.
get
(
"Dinstall::TrackingServer"
)
and
\
self
.
pkg
.
changes
[
"architecture"
].
has_key
(
"source"
):
self
.
pkg
.
changes
[
"architecture"
].
has_key
(
"source"
):
...
@@ -1601,6 +1603,7 @@ distribution."""
...
@@ -1601,6 +1603,7 @@ distribution."""
# Send accept mail, announce to lists, close bugs and check for
# Send accept mail, announce to lists, close bugs and check for
# override disparities
# override disparities
if
not
cnf
[
"Dinstall::Options::No-Mail"
]:
if
not
cnf
[
"Dinstall::Options::No-Mail"
]:
self
.
update_subst
()
self
.
Subst
[
"__SUITE__"
]
=
""
self
.
Subst
[
"__SUITE__"
]
=
""
self
.
Subst
[
"__SUMMARY__"
]
=
summary
self
.
Subst
[
"__SUMMARY__"
]
=
summary
mail_message
=
utils
.
TemplateSubst
(
self
.
Subst
,
accepttemplate
)
mail_message
=
utils
.
TemplateSubst
(
self
.
Subst
,
accepttemplate
)
...
@@ -1686,6 +1689,7 @@ distribution."""
...
@@ -1686,6 +1689,7 @@ distribution."""
overridetemplate
=
os
.
path
.
join
(
cnf
[
"Dir::Templates"
],
'process-unchecked.override-disparity'
)
overridetemplate
=
os
.
path
.
join
(
cnf
[
"Dir::Templates"
],
'process-unchecked.override-disparity'
)
self
.
update_subst
()
self
.
Subst
[
"__SUMMARY__"
]
=
summary
self
.
Subst
[
"__SUMMARY__"
]
=
summary
mail_message
=
utils
.
TemplateSubst
(
self
.
Subst
,
overridetemplate
)
mail_message
=
utils
.
TemplateSubst
(
self
.
Subst
,
overridetemplate
)
utils
.
send_mail
(
mail_message
)
utils
.
send_mail
(
mail_message
)
...
@@ -1832,6 +1836,7 @@ distribution."""
...
@@ -1832,6 +1836,7 @@ distribution."""
rej_template
=
os
.
path
.
join
(
cnf
[
"Dir::Templates"
],
"queue.rejected"
)
rej_template
=
os
.
path
.
join
(
cnf
[
"Dir::Templates"
],
"queue.rejected"
)
self
.
update_subst
()
if
not
manual
:
if
not
manual
:
self
.
Subst
[
"__REJECTOR_ADDRESS__"
]
=
cnf
[
"Dinstall::MyEmailAddress"
]
self
.
Subst
[
"__REJECTOR_ADDRESS__"
]
=
cnf
[
"Dinstall::MyEmailAddress"
]
self
.
Subst
[
"__MANUAL_REJECT_MESSAGE__"
]
=
""
self
.
Subst
[
"__MANUAL_REJECT_MESSAGE__"
]
=
""
...
@@ -2243,6 +2248,7 @@ distribution."""
...
@@ -2243,6 +2248,7 @@ distribution."""
def
do_unaccept
(
self
):
def
do_unaccept
(
self
):
cnf
=
Config
()
cnf
=
Config
()
self
.
update_subst
()
self
.
Subst
[
"__REJECTOR_ADDRESS__"
]
=
cnf
[
"Dinstall::MyEmailAddress"
]
self
.
Subst
[
"__REJECTOR_ADDRESS__"
]
=
cnf
[
"Dinstall::MyEmailAddress"
]
self
.
Subst
[
"__REJECT_MESSAGE__"
]
=
self
.
package_info
()
self
.
Subst
[
"__REJECT_MESSAGE__"
]
=
self
.
package_info
()
self
.
Subst
[
"__CC__"
]
=
"Cc: "
+
cnf
[
"Dinstall::MyEmailAddress"
]
self
.
Subst
[
"__CC__"
]
=
"Cc: "
+
cnf
[
"Dinstall::MyEmailAddress"
]
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录