Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
喜羊羊3508
Dak
提交
d1429a5e
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,发现更多精彩内容 >>
提交
d1429a5e
编写于
3月 14, 2003
作者:
J
James Troup
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Adapt for default filename in utils.send_mail().
上级
a7233866
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
23 addition
and
23 deletion
+23
-23
amber
amber
+3
-3
jennifer
jennifer
+3
-3
katie.py
katie.py
+7
-7
kelly
kelly
+4
-4
lauren
lauren
+3
-3
lisa
lisa
+3
-3
未找到文件。
amber
浏览文件 @
d1429a5e
#!/usr/bin/env python
# Wrapper for Debian Security team
# Copyright (C) 2002 James Troup <james@nocrew.org>
# $Id: amber,v 1.
7 2002-11-22 14:55:51
troup Exp $
# Copyright (C) 2002
, 2003
James Troup <james@nocrew.org>
# $Id: amber,v 1.
8 2003-03-14 19:06:02
troup Exp $
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
...
...
@@ -254,7 +254,7 @@ def make_advisory(advisory_nr, changes_files):
adv
=
utils
.
TemplateSubst
(
Subst
,
Cnf
[
"Dir::Templates"
]
+
"/amber.advisory"
);
if
not
Options
[
"No-Action"
]:
utils
.
send_mail
(
adv
,
""
);
utils
.
send_mail
(
adv
);
else
:
print
"[<Would send template advisory mail>]"
;
...
...
jennifer
浏览文件 @
d1429a5e
...
...
@@ -2,7 +2,7 @@
#
Checks
Debian
packages
from
Incoming
#
Copyright
(
C
)
2000
,
2001
,
2002
,
2003
James
Troup
<
james
@
nocrew
.
org
>
#
$
Id
:
jennifer
,
v
1.3
2
2003
-
02
-
11
18
:
10
:
37
troup
Exp
$
#
$
Id
:
jennifer
,
v
1.3
3
2003
-
03
-
14
19
:
06
:
02
troup
Exp
$
#
This
program
is
free
software
;
you
can
redistribute
it
and
/
or
modify
#
it
under
the
terms
of
the
GNU
General
Public
License
as
published
by
...
...
@@ -45,7 +45,7 @@ re_valid_pkg_name = re.compile(r"^[\dA-Za-z][\dA-Za-z\+\-\.]+$");
################################################################################
#
Globals
jennifer_version
=
"$Revision: 1.3
2
$"
;
jennifer_version
=
"$Revision: 1.3
3
$"
;
Cnf
=
None
;
Options
=
None
;
...
...
@@ -912,7 +912,7 @@ def acknowledge_new (summary):
print "Sending new ack.";
Subst["__SUMMARY__"] = summary;
new_ack_message = utils.TemplateSubst(Subst,Cnf["Dir::Templates"]+"/jennifer.new");
utils.send_mail(new_ack_message
,""
);
utils.send_mail(new_ack_message);
# Finally remove the originals.
os.chdir (pkg.directory);
...
...
katie.py
浏览文件 @
d1429a5e
...
...
@@ -2,7 +2,7 @@
# Utility functions for katie
# Copyright (C) 2001, 2002, 2003 James Troup <james@nocrew.org>
# $Id: katie.py,v 1.3
0 2003-02-21 19:19:07
troup Exp $
# $Id: katie.py,v 1.3
1 2003-03-14 19:06:02
troup Exp $
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
...
...
@@ -308,7 +308,7 @@ distribution.""";
else
:
Subst
[
"__STABLE_WARNING__"
]
=
""
;
mail_message
=
utils
.
TemplateSubst
(
Subst
,
Cnf
[
"Dir::Templates"
]
+
"/jennifer.bug-close"
);
utils
.
send_mail
(
mail_message
,
""
);
utils
.
send_mail
(
mail_message
);
if
action
:
self
.
Logger
.
log
([
"closing bugs"
]
+
bugs
);
else
:
# NMU
...
...
@@ -320,7 +320,7 @@ distribution.""";
if
action
and
control_message
!=
""
:
Subst
[
"__CONTROL_MESSAGE__"
]
=
control_message
;
mail_message
=
utils
.
TemplateSubst
(
Subst
,
Cnf
[
"Dir::Templates"
]
+
"/jennifer.bug-nmu-fixed"
);
utils
.
send_mail
(
mail_message
,
""
);
utils
.
send_mail
(
mail_message
);
if
action
:
self
.
Logger
.
log
([
"setting bugs to fixed"
]
+
bugs
);
summary
+=
"
\n
"
;
...
...
@@ -353,7 +353,7 @@ distribution.""";
if
Cnf
.
get
(
"Dinstall::TrackingServer"
)
and
changes
[
"architecture"
].
has_key
(
"source"
):
Subst
[
"__ANNOUNCE_LIST_ADDRESS__"
]
=
Subst
[
"__ANNOUNCE_LIST_ADDRESS__"
]
+
"
\n
Bcc: %s@%s"
%
(
changes
[
"source"
],
Cnf
[
"Dinstall::TrackingServer"
]);
mail_message
=
utils
.
TemplateSubst
(
Subst
,
Cnf
[
"Dir::Templates"
]
+
"/jennifer.announce"
);
utils
.
send_mail
(
mail_message
,
""
);
utils
.
send_mail
(
mail_message
);
if
Cnf
.
FindB
(
"Dinstall::CloseBugs"
):
summary
=
self
.
close_bugs
(
summary
,
action
);
...
...
@@ -386,7 +386,7 @@ distribution.""";
Subst
[
"__SUITE__"
]
=
""
;
Subst
[
"__SUMMARY__"
]
=
summary
;
mail_message
=
utils
.
TemplateSubst
(
Subst
,
Cnf
[
"Dir::Templates"
]
+
"/jennifer.accepted"
);
utils
.
send_mail
(
mail_message
,
""
)
utils
.
send_mail
(
mail_message
)
self
.
announce
(
short_summary
,
1
)
# Special support to enable clean auto-building of accepted packages
...
...
@@ -471,7 +471,7 @@ distribution.""";
Subst
[
"__SUMMARY__"
]
=
summary
;
mail_message
=
utils
.
TemplateSubst
(
Subst
,
self
.
Cnf
[
"Dir::Templates"
]
+
"/jennifer.override-disparity"
);
utils
.
send_mail
(
mail_message
,
""
);
utils
.
send_mail
(
mail_message
);
###########################################################################
...
...
@@ -587,7 +587,7 @@ distribution.""";
# Send the rejection mail if appropriate
if
not
Cnf
[
"Dinstall::Options::No-Mail"
]:
utils
.
send_mail
(
reject_mail_message
,
""
);
utils
.
send_mail
(
reject_mail_message
);
self
.
Logger
.
log
([
"rejected"
,
pkg
.
changes_file
]);
return
0
;
...
...
kelly
浏览文件 @
d1429a5e
...
...
@@ -2,7 +2,7 @@
#
Installs
Debian
packages
#
Copyright
(
C
)
2000
,
2001
,
2002
,
2003
James
Troup
<
james
@
nocrew
.
org
>
#
$
Id
:
kelly
,
v
1.
7
2003
-
02
-
21
19
:
19
:
33
troup
Exp
$
#
$
Id
:
kelly
,
v
1.
8
2003
-
03
-
14
19
:
06
:
02
troup
Exp
$
#
This
program
is
free
software
;
you
can
redistribute
it
and
/
or
modify
#
it
under
the
terms
of
the
GNU
General
Public
License
as
published
by
...
...
@@ -39,7 +39,7 @@ import db_access, katie, logging, utils;
###############################################################################
#
Globals
kelly_version
=
"$Revision: 1.
7
$"
;
kelly_version
=
"$Revision: 1.
8
$"
;
Cnf
=
None
;
Options
=
None
;
...
...
@@ -245,7 +245,7 @@ def do_reject ():
os
.
write
(
fd
,
reject_mail_message
);
os
.
close
(
fd
);
utils
.
send_mail
(
reject_mail_message
,
""
);
utils
.
send_mail
(
reject_mail_message
);
Logger
.
log
([
"unaccepted"
,
pkg
.
changes_file
]);
###############################################################################
...
...
@@ -511,7 +511,7 @@ def stable_install (summary, short_summary):
Subst["__SUITE__"] = " into stable";
Subst["__SUMMARY__"] = summary;
mail_message = utils.TemplateSubst(Subst,Cnf["Dir::Templates"]+"/kelly.installed");
utils.send_mail(mail_message
, ""
);
utils.send_mail(mail_message);
Katie.announce(short_summary, 1)
# Finally remove the .katie file
...
...
lauren
浏览文件 @
d1429a5e
...
...
@@ -2,7 +2,7 @@
#
Manually
reject
packages
for
proprosed
-
updates
#
Copyright
(
C
)
2001
,
2002
,
2003
James
Troup
<
james
@
nocrew
.
org
>
#
$
Id
:
lauren
,
v
1.
1
2003
-
02
-
21
19
:
18
:
05
troup
Exp
$
#
$
Id
:
lauren
,
v
1.
2
2003
-
03
-
14
19
:
06
:
02
troup
Exp
$
#
This
program
is
free
software
;
you
can
redistribute
it
and
/
or
modify
#
it
under
the
terms
of
the
GNU
General
Public
License
as
published
by
...
...
@@ -27,7 +27,7 @@ import apt_pkg;
################################################################################
#
Globals
lauren_version
=
"$Revision: 1.
1
$"
;
lauren_version
=
"$Revision: 1.
2
$"
;
Cnf
=
None
;
Options
=
None
;
...
...
@@ -207,7 +207,7 @@ def reject (reject_message = ""):
#
Send
the
rejection
mail
if
appropriate
if
not
Options
[
"No-Mail"
]:
utils
.
send_mail
(
reject_mail_message
,
""
);
utils
.
send_mail
(
reject_mail_message
);
#
Finally
remove
the
.
katie
file
katie_file
=
os
.
path
.
join
(
Cnf
[
"Suite::Proposed-Updates::CopyKatie"
],
os
.
path
.
basename
(
changes_file
[:-
8
]+
".katie"
));
...
...
lisa
浏览文件 @
d1429a5e
...
...
@@ -2,7 +2,7 @@
# Handles NEW and BYHAND packages
# Copyright (C) 2001, 2002, 2003 James Troup <james@nocrew.org>
# $Id: lisa,v 1.2
2 2003-03-05 15:57:41
troup Exp $
# $Id: lisa,v 1.2
3 2003-03-14 19:06:02
troup Exp $
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
...
...
@@ -42,7 +42,7 @@ import apt_pkg, apt_inst;
import
db_access
,
fernanda
,
katie
,
logging
,
utils
;
# Globals
lisa_version
=
"$Revision: 1.2
2
$"
;
lisa_version
=
"$Revision: 1.2
3
$"
;
Cnf
=
None
;
Options
=
None
;
...
...
@@ -613,7 +613,7 @@ def do_bxa_notification():
summary
+=
"Description: %s
\n
"
%
(
control
.
Find
(
"Description"
));
Katie
.
Subst
[
"__BINARY_DESCRIPTIONS__"
]
=
summary
;
bxa_mail
=
utils
.
TemplateSubst
(
Katie
.
Subst
,
Cnf
[
"Dir::Templates"
]
+
"/lisa.bxa_notification"
);
utils
.
send_mail
(
bxa_mail
,
""
);
utils
.
send_mail
(
bxa_mail
);
################################################################################
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录