Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
喜羊羊3508
Dak
提交
d41f7d3f
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,发现更多精彩内容 >>
提交
d41f7d3f
编写于
12月 21, 2007
作者:
J
James Troup
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[JJ, r=JT] remove check for pre-depend on dpkg >= 1.10.24
上级
1dccc682
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
2 addition
and
19 deletion
+2
-19
dak/process_unchecked.py
dak/process_unchecked.py
+2
-19
未找到文件。
dak/process_unchecked.py
浏览文件 @
d41f7d3f
...
@@ -329,9 +329,7 @@ def check_deb_ar(filename, control):
...
@@ -329,9 +329,7 @@ def check_deb_ar(filename, control):
o control.tar.gz
o control.tar.gz
o data.tar.gz or data.tar.bz2
o data.tar.gz or data.tar.bz2
in that order, and nothing else. If the third member is a
in that order, and nothing else."""
data.tar.bz2, an additional check is performed for the required
Pre-Depends on dpkg (>= 1.10.24)."""
cmd
=
"ar t %s"
%
(
filename
)
cmd
=
"ar t %s"
%
(
filename
)
(
result
,
output
)
=
commands
.
getstatusoutput
(
cmd
)
(
result
,
output
)
=
commands
.
getstatusoutput
(
cmd
)
if
result
!=
0
:
if
result
!=
0
:
...
@@ -344,22 +342,7 @@ Pre-Depends on dpkg (>= 1.10.24)."""
...
@@ -344,22 +342,7 @@ Pre-Depends on dpkg (>= 1.10.24)."""
reject
(
"%s: first chunk is '%s', expected 'debian-binary'."
%
(
filename
,
chunks
[
0
]))
reject
(
"%s: first chunk is '%s', expected 'debian-binary'."
%
(
filename
,
chunks
[
0
]))
if
chunks
[
1
]
!=
"control.tar.gz"
:
if
chunks
[
1
]
!=
"control.tar.gz"
:
reject
(
"%s: second chunk is '%s', expected 'control.tar.gz'."
%
(
filename
,
chunks
[
1
]))
reject
(
"%s: second chunk is '%s', expected 'control.tar.gz'."
%
(
filename
,
chunks
[
1
]))
if
chunks
[
2
]
==
"data.tar.bz2"
:
if
chunks
[
2
]
not
in
[
"data.tar.bz2"
,
"data.tar.gz"
]:
# Packages using bzip2 compression must have a Pre-Depends on dpkg >= 1.10.24.
found_needed_predep
=
0
for
parsed_dep
in
apt_pkg
.
ParseDepends
(
control
.
Find
(
"Pre-Depends"
,
""
)):
for
atom
in
parsed_dep
:
(
dep
,
version
,
constraint
)
=
atom
if
dep
!=
"dpkg"
or
(
constraint
!=
">="
and
constraint
!=
">>"
)
or
\
len
(
parsed_dep
)
>
1
:
# or'ed deps don't count
continue
if
(
constraint
==
">="
and
apt_pkg
.
VersionCompare
(
version
,
"1.10.24"
)
<
0
)
or
\
(
constraint
==
">>"
and
apt_pkg
.
VersionCompare
(
version
,
"1.10.23"
)
<
0
):
continue
found_needed_predep
=
1
if
not
found_needed_predep
:
reject
(
"%s: uses bzip2 compression, but doesn't Pre-Depend on dpkg (>= 1.10.24)"
%
(
filename
))
elif
chunks
[
2
]
!=
"data.tar.gz"
:
reject
(
"%s: third chunk is '%s', expected 'data.tar.gz' or 'data.tar.bz2'."
%
(
filename
,
chunks
[
2
]))
reject
(
"%s: third chunk is '%s', expected 'data.tar.gz' or 'data.tar.bz2'."
%
(
filename
,
chunks
[
2
]))
################################################################################
################################################################################
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录