Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
喜羊羊3508
Dak
提交
4e1aad64
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,发现更多精彩内容 >>
提交
4e1aad64
编写于
12月 28, 2007
作者:
J
James Troup
浏览文件
操作
浏览文件
下载
差异文件
[JJ, r=JT] merge Joerg's outstanding changes.
上级
84c6685f
2b2898a7
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
24 addition
and
3 deletion
+24
-3
ChangeLog
ChangeLog
+19
-0
dak/examine_package.py
dak/examine_package.py
+4
-2
daklib/utils.py
daklib/utils.py
+1
-1
未找到文件。
ChangeLog
浏览文件 @
4e1aad64
...
...
@@ -18,6 +18,25 @@
*
config
/
debian
/
apt
.
conf
:
Add
hurd
-
i386
to
unstable
debian
-
installer
stanza
.
2007
-
12
-
28
Joerg
Jaspert
<
joerg
@
debian
.
org
>
*
KEYEXPIRED
is
actually
a
known
keyword
.
We
do
check
it
earlier
on
and
reject
in
case
the
sig
is
bad
(
or
unknown
)
2007
-
12
-
24
Joerg
Jaspert
<
joerg
@
debian
.
org
>
*
Also
run
lintian
on
the
.
dsc
file
to
check
the
source
itself
.
*
Fix
the
direct
usage
of
ar
|
tar
etc
to
get
the
copyright
file
and
use
dpkg
-
deb
,
which
is
made
for
this
and
makes
us
able
to
process
data
.
tar
.
bz2
(
or
whatever
format
it
will
be
in
the
future
).
2007
-
12
-
21
Joerg
Jaspert
<
joerg
@
debian
.
org
>
*
Remove
the
(
now
useless
)
check
for
a
pre
-
depends
on
dpkg
for
binaries
that
contain
bzip2
compressed
data
tarballs
.
2007
-
08
-
28
Anthony
Towns
<
ajt
@
debian
.
org
>
*
process_unchecked
.
py
:
Add
support
for
automatic
BYHAND
...
...
dak/examine_package.py
浏览文件 @
4e1aad64
...
...
@@ -291,7 +291,7 @@ def do_command (command, filename):
def
print_copyright
(
deb_filename
):
package
=
re_package
.
sub
(
r
'\1'
,
deb_filename
)
o
=
os
.
popen
(
"
ar p %s data.tar.gz | tar tzvf - | egrep 'usr(/share)?/doc/[^/]*/copyright' | awk '{ print $6
}' | head -n 1"
%
(
deb_filename
))
o
=
os
.
popen
(
"
dpkg-deb -c %s | egrep 'usr(/share)?/doc/[^/]*/copyright' | awk '{print $6
}' | head -n 1"
%
(
deb_filename
))
copyright
=
o
.
read
()[:
-
1
]
if
copyright
==
""
:
...
...
@@ -303,7 +303,7 @@ def print_copyright (deb_filename):
print
"WARNING: wrong doc directory (expected %s, got %s)."
%
(
package
,
doc_directory
)
return
o
=
os
.
popen
(
"
ar p %s data.tar.gz | tar xz
Of - %s"
%
(
deb_filename
,
copyright
))
o
=
os
.
popen
(
"
dpkg-deb --fsys-tarfile %s | tar xv
Of - %s"
%
(
deb_filename
,
copyright
))
copyright
=
o
.
read
()
copyrightmd5
=
md5
.
md5
(
copyright
).
hexdigest
()
...
...
@@ -319,6 +319,8 @@ def check_dsc (dsc_filename):
print
"---- .dsc file for %s ----"
%
(
dsc_filename
)
(
dsc
)
=
read_dsc
(
dsc_filename
)
print
dsc
print
"---- lintian check for %s ----"
%
(
dsc_filename
)
do_command
(
"lintian --show-overrides --color always"
,
dsc_filename
)
def
check_deb
(
deb_filename
):
filename
=
os
.
path
.
basename
(
deb_filename
)
...
...
daklib/utils.py
100644 → 100755
浏览文件 @
4e1aad64
...
...
@@ -1060,7 +1060,7 @@ used."""
# Finally ensure there's not something we don't recognise
known_keywords
=
Dict
(
VALIDSIG
=
""
,
SIG_ID
=
""
,
GOODSIG
=
""
,
BADSIG
=
""
,
ERRSIG
=
""
,
SIGEXPIRED
=
""
,
KEYREVOKED
=
""
,
NO_PUBKEY
=
""
,
BADARMOR
=
""
,
NODATA
=
""
,
NOTATION_DATA
=
""
,
NOTATION_NAME
=
""
)
NODATA
=
""
,
NOTATION_DATA
=
""
,
NOTATION_NAME
=
""
,
KEYEXPIRED
=
""
)
for
keyword
in
keywords
.
keys
():
if
not
known_keywords
.
has_key
(
keyword
):
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录