Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
喜羊羊3508
Dak
提交
5428cbbe
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,发现更多精彩内容 >>
提交
5428cbbe
编写于
1月 02, 2016
作者:
J
Joerg Jaspert
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
New function for tempfile generation
Especially proper adding to the TMPFILES variable to get rid of em again.
上级
773f4286
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
18 addition
and
9 deletion
+18
-9
config/debian/common
config/debian/common
+13
-0
config/debian/daily.functions
config/debian/daily.functions
+2
-4
config/debian/dinstall.functions
config/debian/dinstall.functions
+2
-3
config/debian/hourly.functions
config/debian/hourly.functions
+1
-2
未找到文件。
config/debian/common
浏览文件 @
5428cbbe
...
...
@@ -23,6 +23,19 @@ function debug () {
fi
}
# Get a tempfile, add it to the right variable to get rid of it,
# and return it
function
gettempfile
()
{
local
MAKEDIR
=
${
1
:-
false
}
local
TMPARGS
=
""
if
[[
${
MAKEDIR
}
==
true
]]
;
then
TMPARGS
=
"--directory"
fi
local
TMPFILE
=
$(
mktemp
-p
${
TMPDIR
}
${
TMPARGS
}
)
TMPFILES
=
"
${
TEMPFILES
}
${
TMPFILE
}
"
echo
"
${
TMPFILE
}
"
}
# Function that only cleans tempfiles, but does not exit or otherwise
# care about any exit status
function
cleantempfiles
()
{
...
...
config/debian/daily.functions
浏览文件 @
5428cbbe
...
...
@@ -3,8 +3,7 @@
# get the latest list of wnpp bugs and their source packages
function
wnppbugs
()
{
log
"Fetching latest list of wnpp bugs"
TMPLIST
=
$(
mktemp
-p
${
TMPDIR
}
)
TMPFILES
=
"
${
TMPFILES
}
${
TMPLIST
}
"
TMPLIST
=
$(
gettempfile
)
wget
-q
-O
${
TMPLIST
}
--ca-directory
=
/etc/ssl/ca-debian https://qa.debian.org/data/bts/wnpp_rm
chmod
go+r
${
TMPLIST
}
mv
${
TMPLIST
}
${
scriptdir
}
/masterfiles/wnpp_rm
...
...
@@ -43,8 +42,7 @@ function newstats() {
# Generate the contributor data
function
contributor
()
{
log
"Submitting data to contributors"
TMPCNTB
=
$(
mktemp
-p
${
TMPDIR
}
)
TMPFILES
=
"
${
TMPFILES
}
${
TMPCNTB
}
"
TMPCNTB
=
$(
gettempfile
)
REQUESTS_CA_BUNDLE
=
/etc/ssl/ca-debian/ca-certificates.crt dc-tool
--mine
=
"
${
configdir
}
/contributor.source"
--auth-token
@
"
${
base
}
/s3kr1t/contributor.auth"
--source
ftp.debian.org
--json
>
${
TMPCNTB
}
# Post with curl as a workaround for #801506
...
...
config/debian/dinstall.functions
浏览文件 @
5428cbbe
...
...
@@ -182,7 +182,7 @@ function fingerprints() {
log
"Updating fingerprints"
dak import-keyring
-L
/srv/keyring.debian.org/keyrings/debian-keyring.gpg
OUTFILE
=
$(
mktemp
)
OUTFILE
=
$(
gettempfile
)
dak import-keyring
--generate-users
"%s"
/srv/keyring.debian.org/keyrings/debian-maintainers.gpg
>
"
${
OUTFILE
}
"
if
[
-s
"
${
OUTFILE
}
"
]
;
then
...
...
@@ -691,8 +691,7 @@ function signotherfiles() {
for
archive
in
"
${
public_archives
[@]
}
"
;
do
log
"... archive:
${
archive
}
"
archiveroot
=
"
$(
get_archiveroot
"
${
archive
}
"
)
"
local
TMPLO
=
$(
mktemp
-p
${
TMPDIR
}
)
trap
"rm -f
${
TMPLO
}
"
ERR EXIT TERM HUP INT QUIT
local
TMPLO
=
$(
gettempfile
)
cd
${
archiveroot
}
rm
-f
extrafiles
...
...
config/debian/hourly.functions
浏览文件 @
5428cbbe
...
...
@@ -54,8 +54,7 @@ function backportsacl() {
# do the buildd key updates
function
builddautosigning
()
{
BUILDDFUN
=
$(
mktemp
-p
"
${
TMPDIR
}
"
BUILDDFUN.XXXXXX
)
TMPFILES
=
"
${
TMPFILES
}
${
BUILDDFUN
}
"
BUILDDFUN
=
$(
gettempfile
)
exec
>>
"
${
BUILDDFUN
}
"
2>&1
${
scriptsdir
}
/buildd-remove-keys
${
scriptsdir
}
/buildd-add-keys
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录