Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
喜羊羊3508
Dak
提交
6ca90459
D
Dak
项目概览
喜羊羊3508
/
Dak
大约 1 年 前同步成功
通知
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,发现更多精彩内容 >>
提交
6ca90459
编写于
10月 26, 2009
作者:
M
Mark Hymers
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
make cruft_report report
Signed-off-by:
N
Mark Hymers
<
mhy@debian.org
>
上级
0fb9aaa6
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
10 addition
and
9 deletion
+10
-9
dak/cruft_report.py
dak/cruft_report.py
+10
-9
未找到文件。
dak/cruft_report.py
浏览文件 @
6ca90459
...
...
@@ -65,7 +65,7 @@ def add_nbs(nbs_d, source, version, package, suite_id, session):
else
:
q
=
session
.
execute
(
"""SELECT b.id FROM binaries b, bin_associations ba
WHERE ba.bin = b.id AND ba.suite = :suite_id
AND b.package = :package LIMIT 1"""
%
{
'suite_id'
:
suite_id
,
AND b.package = :package LIMIT 1"""
,
{
'suite_id'
:
suite_id
,
'package'
:
package
})
if
not
q
.
fetchall
():
no_longer_in_suite
[
package
]
=
""
...
...
@@ -195,7 +195,7 @@ SELECT s.source, s.version AS lower, s2.version AS higher
FROM src_associations sa, source s, source s2, src_associations sa2
WHERE sa.suite = :highersuite_id AND sa2.suite = :lowersuite_id AND sa.source = s.id
AND sa2.source = s2.id AND s.source = s2.source
AND s.version < s2.version"""
%
{
'lowersuite_id'
:
lowersuite
.
suite_id
,
AND s.version < s2.version"""
,
{
'lowersuite_id'
:
lowersuite
.
suite_id
,
'highersuite_id'
:
highersuite
.
suite_id
})
ql
=
q
.
fetchall
()
if
ql
:
...
...
@@ -237,7 +237,7 @@ def do_nbs(real_nbs):
output
+=
" o %s: %s
\n
"
%
(
version
,
", "
.
join
(
packages
))
if
all_packages
:
all_packages
.
sort
()
cmd_output
+=
" dak rm -m
\"
[auto-cruft] NBS (was built by %s)
\"
-s %s -b %s
\n\n
"
%
(
source
,
suite
,
" "
.
join
(
all_packages
))
cmd_output
+=
" dak rm -m
\"
[auto-cruft] NBS (was built by %s)
\"
-s %s -b %s
\n\n
"
%
(
source
,
suite
.
suite_name
,
" "
.
join
(
all_packages
))
output
+=
"
\n
"
...
...
@@ -380,16 +380,17 @@ def main ():
suite
=
get_suite
(
Options
[
"Suite"
].
lower
(),
session
)
suite_id
=
suite
.
suite_id
suite_name
=
suite
.
suite_name
.
lower
()
bin_not_built
=
{}
if
"bnb"
in
checks
:
bins_in_suite
=
get_suite_binaries
(
suite
,
session
)
bins_in_suite
=
get_suite_binaries
(
suite
_name
,
session
)
# Checks based on the Sources files
components
=
cnf
.
ValueList
(
"Suite::%s::Components"
%
(
suite
))
components
=
cnf
.
ValueList
(
"Suite::%s::Components"
%
(
suite
_name
))
for
component
in
components
:
filename
=
"%s/dists/%s/%s/source/Sources.gz"
%
(
cnf
[
"Dir::Root"
],
suite
.
suite
_name
,
component
)
filename
=
"%s/dists/%s/%s/source/Sources.gz"
%
(
cnf
[
"Dir::Root"
],
suite_name
,
component
)
# apt_pkg.ParseTagFile needs a real file handle and can't handle a GzipFile instance...
(
fd
,
temp_filename
)
=
utils
.
temp_filename
()
(
result
,
output
)
=
commands
.
getstatusoutput
(
"gunzip -c %s > %s"
%
(
filename
,
temp_filename
))
...
...
@@ -436,17 +437,17 @@ def main ():
# Checks based on the Packages files
check_components
=
components
[:]
if
suite
.
suite
_name
!=
"experimental"
:
if
suite_name
!=
"experimental"
:
check_components
.
append
(
'main/debian-installer'
);
for
component
in
check_components
:
architectures
=
[
a
.
arch_string
for
a
in
get_suite_architectures
(
suite
.
suite
_name
,
architectures
=
[
a
.
arch_string
for
a
in
get_suite_architectures
(
suite_name
,
skipsrc
=
True
,
skipall
=
True
,
session
=
session
)
]
for
architecture
in
architectures
:
if
component
==
'main/debian-installer'
and
re
.
match
(
"kfreebsd"
,
architecture
):
continue
filename
=
"%s/dists/%s/%s/binary-%s/Packages.gz"
%
(
cnf
[
"Dir::Root"
],
suite
.
suite
_name
,
component
,
architecture
)
filename
=
"%s/dists/%s/%s/binary-%s/Packages.gz"
%
(
cnf
[
"Dir::Root"
],
suite_name
,
component
,
architecture
)
# apt_pkg.ParseTagFile needs a real file handle
(
fd
,
temp_filename
)
=
utils
.
temp_filename
()
(
result
,
output
)
=
commands
.
getstatusoutput
(
"gunzip -c %s > %s"
%
(
filename
,
temp_filename
))
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录