Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
喜羊羊3508
Dak
提交
5ba90ed5
D
Dak
项目概览
喜羊羊3508
/
Dak
10 个月 前同步成功
通知
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,体验更适合开发者的 AI 搜索 >>
提交
5ba90ed5
编写于
4月 03, 2019
作者:
A
Ansgar Burchardt
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
silence warning "W504 line break after binary operator"
上级
c87a8289
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
27 addition
and
27 deletion
+27
-27
dak/admin.py
dak/admin.py
+4
-4
dak/dak.py
dak/dak.py
+2
-2
dak/queue_report.py
dak/queue_report.py
+4
-4
dak/show_deferred.py
dak/show_deferred.py
+2
-2
dak/stats.py
dak/stats.py
+2
-2
daklib/changes.py
daklib/changes.py
+8
-8
daklib/queue.py
daklib/queue.py
+2
-2
daklib/utils.py
daklib/utils.py
+2
-2
tools/logs.py
tools/logs.py
+1
-1
未找到文件。
dak/admin.py
浏览文件 @
5ba90ed5
...
...
@@ -501,8 +501,8 @@ def __suite_architecture_list(d, args):
s
=
d
.
session
()
for
j
in
s
.
query
(
Suite
).
order_by
(
Suite
.
suite_name
):
architectures
=
j
.
get_architectures
(
skipsrc
=
True
,
skipall
=
True
)
print
(
j
.
suite_name
+
': '
+
', '
.
join
([
a
.
arch_string
for
a
in
architectures
]))
print
(
j
.
suite_name
+
': '
+
', '
.
join
([
a
.
arch_string
for
a
in
architectures
]))
def
__suite_architecture_listarch
(
d
,
args
):
...
...
@@ -612,8 +612,8 @@ def __suite_component_list(d, args):
s
=
d
.
session
()
for
j
in
s
.
query
(
Suite
).
order_by
(
Suite
.
suite_name
):
components
=
j
.
components
print
(
j
.
suite_name
+
': '
+
', '
.
join
([
c
.
component_name
for
c
in
components
]))
print
(
j
.
suite_name
+
': '
+
', '
.
join
([
c
.
component_name
for
c
in
components
]))
def
__suite_component_listcomponent
(
d
,
args
):
...
...
dak/dak.py
浏览文件 @
5ba90ed5
...
...
@@ -194,8 +194,8 @@ def main():
if
len
(
sys
.
argv
)
==
0
:
daklib
.
utils
.
fubar
(
"err, argc == 0? how is that possible?"
)
elif
(
len
(
sys
.
argv
)
==
1
or
(
len
(
sys
.
argv
)
==
2
and
(
sys
.
argv
[
1
]
==
"--help"
or
sys
.
argv
[
1
]
==
"-h"
))):
or
(
len
(
sys
.
argv
)
==
2
and
(
sys
.
argv
[
1
]
==
"--help"
or
sys
.
argv
[
1
]
==
"-h"
))):
usage
(
functionality
)
# First see if we were invoked with/as the name of a module
...
...
dak/queue_report.py
浏览文件 @
5ba90ed5
...
...
@@ -493,10 +493,10 @@ def process_queue(queue, log, rrd_dir):
if
'@'
in
sponsor_login
:
if
fingerprint
in
logins
:
sponsor_login
=
logins
[
fingerprint
]
if
(
sponsor_name
!=
maintainer
[
"maintainername"
]
and
sponsor_name
!=
changeby
[
"changedbyname"
]
and
sponsor_login
+
'@debian.org'
!=
maintainer
[
"maintaineremail"
]
and
sponsor_name
!=
changeby
[
"changedbyemail"
]):
if
(
sponsor_name
!=
maintainer
[
"maintainername"
]
and
sponsor_name
!=
changeby
[
"changedbyname"
]
and
sponsor_login
+
'@debian.org'
!=
maintainer
[
"maintaineremail"
]
and
sponsor_name
!=
changeby
[
"changedbyemail"
]):
sponsor
=
sponsor_login
for
arch
in
dbc
.
architecture
.
split
():
...
...
dak/show_deferred.py
浏览文件 @
5ba90ed5
...
...
@@ -316,8 +316,8 @@ def main():
for
r
,
d
,
f
in
os
.
walk
(
Cnf
[
"Show-Deferred::LinkPath"
]):
for
af
in
f
:
afp
=
os
.
path
.
join
(
r
,
af
)
if
(
not
os
.
path
.
exists
(
afp
)
or
(
af
.
endswith
(
'.changes'
)
and
af
not
in
available_changes
)):
if
(
not
os
.
path
.
exists
(
afp
)
or
(
af
.
endswith
(
'.changes'
)
and
af
not
in
available_changes
)):
os
.
unlink
(
afp
)
if
__name__
==
'__main__'
:
...
...
dak/stats.py
浏览文件 @
5ba90ed5
...
...
@@ -313,8 +313,8 @@ def parse_prod(logdate):
(
fd
,
tmpfile
)
=
utils
.
temp_filename
(
utils
.
get_conf
()[
'Dir::TempPath'
])
system
(
'xzcat %s > %s'
%
(
mailarchive
,
tmpfile
))
for
message
in
mbox
(
tmpfile
):
if
(
message
[
'subject'
]
and
message
[
'subject'
].
startswith
(
'Comments regarding'
)):
if
(
message
[
'subject'
]
and
message
[
'subject'
].
startswith
(
'Comments regarding'
)):
try
:
member
=
users
[
' '
.
join
(
message
[
'From'
].
split
()[:
-
1
])]
except
KeyError
:
...
...
daklib/changes.py
浏览文件 @
5ba90ed5
...
...
@@ -301,20 +301,20 @@ class Changes(object):
return
chg
def
unknown_files_fields
(
self
,
name
):
return
sorted
(
list
(
set
(
self
.
files
[
name
].
keys
())
-
set
(
CHANGESFIELDS_FILES
)))
return
sorted
(
list
(
set
(
self
.
files
[
name
].
keys
())
-
set
(
CHANGESFIELDS_FILES
)))
def
unknown_changes_fields
(
self
):
return
sorted
(
list
(
set
(
self
.
changes
.
keys
())
-
set
(
CHANGESFIELDS_MANDATORY
+
CHANGESFIELDS_OPTIONAL
)))
return
sorted
(
list
(
set
(
self
.
changes
.
keys
())
-
set
(
CHANGESFIELDS_MANDATORY
+
CHANGESFIELDS_OPTIONAL
)))
def
unknown_dsc_fields
(
self
):
return
sorted
(
list
(
set
(
self
.
dsc
.
keys
())
-
set
(
CHANGESFIELDS_DSC
)))
return
sorted
(
list
(
set
(
self
.
dsc
.
keys
())
-
set
(
CHANGESFIELDS_DSC
)))
def
unknown_dsc_files_fields
(
self
,
name
):
return
sorted
(
list
(
set
(
self
.
dsc_files
[
name
].
keys
())
-
set
(
CHANGESFIELDS_DSCFILES_MANDATORY
+
CHANGESFIELDS_DSCFILES_OPTIONAL
)))
return
sorted
(
list
(
set
(
self
.
dsc_files
[
name
].
keys
())
-
set
(
CHANGESFIELDS_DSCFILES_MANDATORY
+
CHANGESFIELDS_DSCFILES_OPTIONAL
)))
def
str_files
(
self
):
r
=
[]
...
...
daklib/queue.py
浏览文件 @
5ba90ed5
...
...
@@ -295,8 +295,8 @@ class Upload(object):
if
debian_emails
:
uid_email
=
debian_emails
[
0
]
if
(
"source"
in
self
.
pkg
.
changes
[
"architecture"
]
and
uid_email
and
utils
.
is_email_alias
(
uid_email
)):
if
(
self
.
pkg
.
changes
[
"maintaineremail"
]
not
in
sponsor_addresses
and
self
.
pkg
.
changes
[
"changedbyemail"
]
not
in
sponsor_addresses
):
if
(
self
.
pkg
.
changes
[
"maintaineremail"
]
not
in
sponsor_addresses
and
self
.
pkg
.
changes
[
"changedbyemail"
]
not
in
sponsor_addresses
):
self
.
pkg
.
changes
[
"sponsoremail"
]
=
uid_email
return
sponsored
...
...
daklib/utils.py
浏览文件 @
5ba90ed5
...
...
@@ -846,8 +846,8 @@ def gpg_get_key_addresses(fingerprint):
try
:
with
open
(
os
.
devnull
,
"wb"
)
as
devnull
:
output
=
daklib
.
daksubprocess
.
check_output
(
[
"gpg"
,
"--no-default-keyring"
]
+
gpg_keyring_args
().
split
()
+
[
"--with-colons"
,
"--list-keys"
,
fingerprint
],
stderr
=
devnull
)
[
"gpg"
,
"--no-default-keyring"
]
+
gpg_keyring_args
().
split
()
+
[
"--with-colons"
,
"--list-keys"
,
fingerprint
],
stderr
=
devnull
)
except
subprocess
.
CalledProcessError
:
pass
else
:
...
...
tools/logs.py
浏览文件 @
5ba90ed5
...
...
@@ -15,7 +15,7 @@ ITEMS_TO_KEEP = 20
CACHE_FILE
=
'/srv/ftp-master.debian.org/misc/dinstall_time_cache'
GRAPH_DIR
=
'/srv/ftp.debian.org/web/stat'
LINE
=
re
.
compile
(
r
'(?:|.*/)dinstall_(\d{4})\.(\d{2})\.(\d{2})-(\d{2}):(\d{2}):(\d{2})\.log(?:\.bz2)?:'
+
LINE
=
re
.
compile
(
r
'(?:|.*/)dinstall_(\d{4})\.(\d{2})\.(\d{2})-(\d{2}):(\d{2}):(\d{2})\.log(?:\.bz2)?:'
r
'Archive maintenance timestamp \(([^\)]*)\): (\d{2}):(\d{2}):(\d{2})$'
)
UNSAFE
=
re
.
compile
(
r
'[^a-zA-Z/\._:0-9\- ]'
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录