Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
喜羊羊3508
Dak
提交
2dbc6c79
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,发现更多精彩内容 >>
提交
2dbc6c79
编写于
9月 19, 2010
作者:
J
Joerg Jaspert
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
And priority taken out of database
drop sorting in dak stats Signed-off-by:
N
Joerg Jaspert
<
joerg@debian.org
>
上级
ad005bcd
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
7 addition
and
30 deletion
+7
-30
config/backports/dak.conf
config/backports/dak.conf
+0
-4
config/debian/dak.conf
config/debian/dak.conf
+0
-7
dak/make_maintainers.py
dak/make_maintainers.py
+7
-7
dak/stats.py
dak/stats.py
+0
-12
未找到文件。
config/backports/dak.conf
浏览文件 @
2dbc6c79
...
...
@@ -188,8 +188,6 @@ Suite
contrib
;
non
-
free
;
};
Priority
"7"
;
};
...
...
@@ -201,8 +199,6 @@ Suite
contrib
;
non
-
free
;
};
Priority
"7"
;
};
};
...
...
config/debian/dak.conf
浏览文件 @
2dbc6c79
...
...
@@ -195,7 +195,6 @@ Suite
contrib
;
non
-
free
;
};
Priority
"5"
;
ChangeLogBase
"dists/stable/"
;
};
...
...
@@ -212,7 +211,6 @@ Suite
CommentsDir
"/srv/ftp-master.debian.org/queue/p-u-new/COMMENTS/"
;
OverrideSuite
"stable"
;
ValidTime
604800
; //
7
days
Priority
"4"
;
VersionChecks
{
MustBeNewerThan
...
...
@@ -242,7 +240,6 @@ Suite
non
-
free
;
};
ValidTime
604800
; //
7
days
Priority
"5"
;
};
Testing
-
Proposed
-
Updates
...
...
@@ -255,7 +252,6 @@ Suite
};
OverrideSuite
"testing"
;
ValidTime
604800
; //
7
days
Priority
"6"
;
VersionChecks
{
MustBeNewerThan
...
...
@@ -287,7 +283,6 @@ Suite
};
OverrideSuite
"testing"
;
ValidTime
604800
; //
7
days
Priority
"0"
;
VersionChecks
{
MustBeNewerThan
...
...
@@ -312,7 +307,6 @@ Suite
non
-
free
;
};
ValidTime
604800
; //
7
days
Priority
"7"
;
VersionChecks
{
MustBeNewerThan
...
...
@@ -336,7 +330,6 @@ Suite
};
OverrideSuite
"unstable"
;
ValidTime
604800
; //
7
days
Priority
"0"
;
VersionChecks
{
MustBeNewerThan
...
...
dak/make_maintainers.py
浏览文件 @
2dbc6c79
...
...
@@ -131,9 +131,9 @@ def main():
session
=
DBConn
().
session
()
for
suite
in
cnf
.
SubTree
(
"Suite"
).
List
():
suite
=
suite
.
lower
()
suite_priority
=
int
(
cnf
[
"Suite::%s::Priority"
%
(
suite
)])
for
suite
in
session
.
query
(
Suite
).
all
():
suite
_name
=
suite
.
suite_name
suite_priority
=
suite
.
priority
# Source packages
if
gen_uploaders
:
...
...
@@ -143,14 +143,14 @@ def main():
AND sa.suite = su.id AND sa.source = s.id
AND m.id = srcu.maintainer
AND srcu.source = s.id"""
,
{
'suite_name'
:
suite
})
{
'suite_name'
:
suite
_name
})
else
:
q
=
session
.
execute
(
"""SELECT s.source, s.version, m.name
FROM src_associations sa, source s, suite su, maintainer m
WHERE su.suite_name = :suite_name
AND sa.suite = su.id AND sa.source = s.id
AND m.id = s.maintainer"""
,
{
'suite_name'
:
suite
})
{
'suite_name'
:
suite
_name
})
for
source
in
q
.
fetchall
():
package
=
source
[
0
]
...
...
@@ -175,13 +175,13 @@ def main():
WHERE s.suite_name = :suite_name
AND ba.suite = s.id AND ba.bin = b.id
AND b.source = srcu.source"""
,
{
'suite_name'
:
suite
})
{
'suite_name'
:
suite
_name
})
else
:
q
=
session
.
execute
(
"""SELECT b.package, b.source, b.maintainer, b.version
FROM bin_associations ba, binaries b, suite s
WHERE s.suite_name = :suite_name
AND ba.suite = s.id AND ba.bin = b.id"""
,
{
'suite_name'
:
suite
})
{
'suite_name'
:
suite
_name
})
for
binary
in
q
.
fetchall
():
...
...
dak/stats.py
浏览文件 @
2dbc6c79
...
...
@@ -111,17 +111,6 @@ def longest(list):
longest
=
l
return
longest
def
suite_sort
(
a
,
b
):
if
Cnf
.
has_key
(
"Suite::%s::Priority"
%
(
a
)):
a_priority
=
int
(
Cnf
[
"Suite::%s::Priority"
%
(
a
)])
else
:
a_priority
=
0
if
Cnf
.
has_key
(
"Suite::%s::Priority"
%
(
b
)):
b_priority
=
int
(
Cnf
[
"Suite::%s::Priority"
%
(
b
)])
else
:
b_priority
=
0
return
cmp
(
a_priority
,
b_priority
)
def
output_format
(
suite
):
output_suite
=
[]
for
word
in
suite
.
split
(
"-"
):
...
...
@@ -164,7 +153,6 @@ def number_of_packages():
## Print the results
# Setup
suite_list
=
suites
.
values
()
suite_list
.
sort
(
suite_sort
)
suite_id_list
=
[]
suite_arches
=
{}
for
suite
in
suite_list
:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录