Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
喜羊羊3508
Dak
提交
72854d11
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,发现更多精彩内容 >>
提交
72854d11
编写于
1月 21, 2004
作者:
J
James Troup
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Moron. Test your changes.
上级
2c4d37f5
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
10 addition
and
50 deletion
+10
-50
TODO
TODO
+5
-0
test/005/evil.changes
test/005/evil.changes
+0
-43
test/005/test.py
test/005/test.py
+2
-4
utils.py
utils.py
+3
-3
未找到文件。
TODO
浏览文件 @
72854d11
...
...
@@ -27,6 +27,11 @@ queue/approved
Others
------
<aj> i'd be kinda inclined to go with insisting the .changes file take
the form ---- BEGIN PGP MESSAGE --- <non -- BEGIN/END lines> --
BEGIN PGP SIG -- END PGP MESSAGE -- with no lines before or after,
and rejecting .changes that didn't match that
o rene should check for source packages not building any binaries
o heidi should have a diff mode that accepts diff output!
...
...
test/005/evil.changes
已删除
100644 → 0
浏览文件 @
2c4d37f5
-----BEGIN PGP SIGNED MESSAGE-----
You: have been 0wned
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Tue, 9 Sep 2003 01:16:01 +0100
Source: gawk
Binary: gawk
Architecture: source i386
Version: 1:3.1.3-2
Distribution: unstable
Urgency: low
Maintainer: James Troup <james@nocrew.org>
Changed-By: James Troup <james@nocrew.org>
Description:
gawk - GNU awk, a pattern scanning and processing language
Closes: 204699 204701
Changes:
gawk (1:3.1.3-2) unstable; urgency=low
.
* debian/control (Standards-Version): bump to 3.6.1.0.
.
* 02_fix-ascii.dpatch: new patch from upstream to fix [[:ascii:]].
Thanks to <vle@gmx.net> for reporting the bug and forwarding it
upstream. Closes: #204701
.
* 03_fix-high-char-ranges.dpatch: new patch from upstream to fix
[\x80-\xff]. Thanks to <vle@gmx.net> for reporting the bug and
forwarding it upstream. Closes: #204699
Files:
0e6542c48bcc9d9586fc8ebe4e7242a4 561 interpreters optional gawk_3.1.3-2.dsc
50a29dce4a2c6e2ac38069eb7c41d9c4 8302 interpreters optional gawk_3.1.3-2.diff.gz
5a255c7b421ac699804212e10205f22d 871114 interpreters optional gawk_3.1.3-2_i386.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
iEYEARECAAYFAj9dHWsACgkQgD/uEicUG7DUnACglndvU4LCA0/k36Qp873N0Sau
fCwAoMdgIOUBcUfMqXvVnxdW03ev5bNB
=O7Gh
-----END PGP SIGNATURE-----
test/005/test.py
浏览文件 @
72854d11
...
...
@@ -2,7 +2,7 @@
# Check utils.parse_changes()'s for handling of multi-line fields
# Copyright (C) 2004 James Troup <james@nocrew.org>
# $Id: test.py,v 1.
1 2004-01-21 03:20:52
troup Exp $
# $Id: test.py,v 1.
2 2004-01-21 03:48:58
troup Exp $
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
...
...
@@ -39,10 +39,8 @@ def fail(message):
################################################################################
def
main
():
for
file
in
[
"valid"
,
"bogus-pre"
,
"bogus-post"
,
"evil"
]:
for
file
in
[
"valid"
,
"bogus-pre"
,
"bogus-post"
]:
for
strict_whitespace
in
[
0
,
1
]:
if
file
==
"evil"
and
strict_whitespace
==
1
:
continue
;
try
:
changes
=
utils
.
parse_changes
(
"%s.changes"
%
(
file
),
strict_whitespace
)
except
utils
.
changes_parse_error_exc
,
line
:
...
...
utils.py
浏览文件 @
72854d11
...
...
@@ -2,7 +2,7 @@
# Utility functions
# Copyright (C) 2000, 2001, 2002, 2003, 2004 James Troup <james@nocrew.org>
# $Id: utils.py,v 1.6
1 2004-01-21 03:20:52
troup Exp $
# $Id: utils.py,v 1.6
2 2004-01-21 03:48:58
troup Exp $
################################################################################
...
...
@@ -45,7 +45,7 @@ re_parse_maintainer = re.compile(r"^\s*(\S.*\S)\s*\<([^\> \t]+)\>");
changes_parse_error_exc
=
"Can't parse line in .changes file"
;
invalid_dsc_format_exc
=
"Invalid .dsc file"
;
nk_format_exc
=
"Unknown Format: in .changes file"
;
no_files_exc
=
"No Files: field in .dsc file."
;
no_files_exc
=
"No Files: field in .dsc
or .changes
file."
;
cant_open_exc
=
"Can't read file."
;
unknown_hostname_exc
=
"Unknown hostname"
;
cant_overwrite_exc
=
"Permission denied; can't overwrite existent file."
...
...
@@ -176,8 +176,8 @@ def parse_changes(filename, dsc_whitespace_rules=0):
if
line
.
startswith
(
"-----BEGIN PGP SIGNATURE"
):
break
;
if
line
.
startswith
(
"-----BEGIN PGP SIGNED MESSAGE"
):
inside_signature
=
1
;
if
dsc_whitespace_rules
:
inside_signature
=
1
;
while
index
<
num_of_lines
and
line
!=
""
:
index
+=
1
;
line
=
indexed_lines
[
index
];
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录