Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
喜羊羊3508
Dak
提交
ab9a8e80
D
Dak
项目概览
喜羊羊3508
/
Dak
12 个月 前同步成功
通知
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,发现更多精彩内容 >>
提交
ab9a8e80
编写于
1月 02, 2003
作者:
J
James Troup
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add usage() and use it.
上级
f02f2fe4
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
173 addition
and
27 deletion
+173
-27
alyson
alyson
+20
-3
andrea
andrea
+20
-3
ashley
ashley
+27
-2
cindy
cindy
+24
-5
denise
denise
+17
-4
helena
helena
+23
-4
rene
rene
+23
-4
rose
rose
+19
-2
未找到文件。
alyson
浏览文件 @
ab9a8e80
...
...
@@ -2,7 +2,7 @@
# Sync the ISC configuartion file and the SQL database
# Copyright (C) 2000, 2001, 2002 James Troup <james@nocrew.org>
# $Id: alyson,v 1.1
0 2002-10-16 02:47:3
2 troup Exp $
# $Id: alyson,v 1.1
1 2003-01-02 18:10:0
2 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
...
...
@@ -31,6 +31,15 @@ projectB = None;
################################################################################
def
usage
(
exit_code
=
0
):
print
"""Usage: alyson
Initalizes some tables in the projectB database based on the config file.
-h, --help show this help and exit."""
sys
.
exit
(
exit_code
)
################################################################################
def
get
(
c
,
i
):
if
c
.
has_key
(
i
):
return
"'%s'"
%
(
c
[
i
]);
...
...
@@ -41,8 +50,16 @@ def main ():
global
Cnf
,
projectB
;
Cnf
=
utils
.
get_conf
()
Arguments
=
[(
'h'
,
"help"
,
"Alyson::Options::Help"
)];
for
i
in
[
"help"
]:
if
not
Cnf
.
has_key
(
"Alyson::Options::%s"
%
(
i
)):
Cnf
[
"Alyson::Options::%s"
%
(
i
)]
=
""
;
apt_pkg
.
ParseCommandLine
(
Cnf
,
Arguments
,
sys
.
argv
);
apt_pkg
.
ParseCommandLine
(
Cnf
,[],
sys
.
argv
);
Options
=
Cnf
.
SubTree
(
"Alyson::Options"
)
if
Options
[
"Help"
]:
usage
();
projectB
=
pg
.
connect
(
Cnf
[
"DB::Name"
],
Cnf
[
"DB::Host"
],
int
(
Cnf
[
"DB::Port"
]));
db_access
.
init
(
Cnf
,
projectB
);
...
...
@@ -156,7 +173,7 @@ def main ():
projectB
.
query
(
"INSERT INTO section (section) VALUES ('%s%s%s')"
%
(
prefix
,
section
,
suffix
));
projectB
.
query
(
"COMMIT WORK"
);
################################################################################
#######
################################################################################
if
__name__
==
'__main__'
:
main
()
...
...
andrea
浏览文件 @
ab9a8e80
...
...
@@ -2,7 +2,7 @@
# Check for fixable discrepancies between stable and unstable
# Copyright (C) 2000, 2001, 2002 James Troup <james@nocrew.org>
# $Id: andrea,v 1.
8 2002-10-16 02:47:3
2 troup Exp $
# $Id: andrea,v 1.
9 2003-01-02 18:10:0
2 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
...
...
@@ -32,12 +32,29 @@ projectB = None;
################################################################################
def
usage
(
exit_code
=
0
):
print
"""Usage: andrea
Looks for fixable descrepancies between stable and unstable.
-h, --help show this help and exit."""
sys
.
exit
(
exit_code
)
################################################################################
def
main
():
global
Cnf
,
projectB
;
Cnf
=
utils
.
get_conf
()
Cnf
=
utils
.
get_conf
();
Arguments
=
[(
'h'
,
"help"
,
"Andrea::Options::Help"
)];
for
i
in
[
"help"
]:
if
not
Cnf
.
has_key
(
"Andrea::Options::%s"
%
(
i
)):
Cnf
[
"Andrea::Options::%s"
%
(
i
)]
=
""
;
apt_pkg
.
ParseCommandLine
(
Cnf
,
Arguments
,
sys
.
argv
);
apt_pkg
.
ParseCommandLine
(
Cnf
,[],
sys
.
argv
);
Options
=
Cnf
.
SubTree
(
"Andrea::Options"
)
if
Options
[
"Help"
]:
usage
();
projectB
=
pg
.
connect
(
Cnf
[
"DB::Name"
],
Cnf
[
"DB::Host"
],
int
(
Cnf
[
"DB::Port"
]));
db_access
.
init
(
Cnf
,
projectB
);
...
...
ashley
浏览文件 @
ab9a8e80
...
...
@@ -2,7 +2,7 @@
# Dump variables from a .katie file to stdout
# Copyright (C) 2001, 2002 James Troup <james@nocrew.org>
# $Id: ashley,v 1.
7 2002-10-16 02:47:3
2 troup Exp $
# $Id: ashley,v 1.
8 2003-01-02 18:10:0
2 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
...
...
@@ -21,7 +21,7 @@
################################################################################
# <elmo> ooooooooooooooohhhhhhhhhhhhhhhhhhhhhhhhh dddddddddeeeeeeeaaaaaaaarrrrrrrrrrr
# <elmo> iiiiiiiiiiiii tttttttttthhhhhhhhiiiiiiiiiiiinnnnnnnnnkkkkkkkkkkkkk iiiiiiiiiiiiii mmmmmmmmmm
iiiiiiii
sssssssssssssssseeeeeeeddd uuuupppppppppppp ttttttttthhhhhhhheeeeeeee xxxxxxxssssssseeeeeeeeettttttttttttt aaaaaaaarrrrrrrggggggsssssssss
# <elmo> iiiiiiiiiiiii tttttttttthhhhhhhhiiiiiiiiiiiinnnnnnnnnkkkkkkkkkkkkk iiiiiiiiiiiiii mmmmmmmmmm
eeeeeeee
sssssssssssssssseeeeeeeddd uuuupppppppppppp ttttttttthhhhhhhheeeeeeee xxxxxxxssssssseeeeeeeeettttttttttttt aaaaaaaarrrrrrrggggggsssssssss
#
# ['xset r rate 30 250' bad, mmkay]
...
...
@@ -29,9 +29,33 @@
import
sys
;
import
katie
,
utils
;
import
apt_pkg
;
################################################################################
def
usage
(
exit_code
=
0
):
print
"""Usage: ashley FILE...
Dumps the info in .katie FILE(s).
-h, --help show this help and exit."""
sys
.
exit
(
exit_code
)
################################################################################
def
main
():
Cnf
=
utils
.
get_conf
()
Arguments
=
[(
'h'
,
"help"
,
"Ashley::Options::Help"
)];
for
i
in
[
"help"
]:
if
not
Cnf
.
has_key
(
"Ashley::Options::%s"
%
(
i
)):
Cnf
[
"Ashley::Options::%s"
%
(
i
)]
=
""
;
apt_pkg
.
ParseCommandLine
(
Cnf
,
Arguments
,
sys
.
argv
);
Options
=
Cnf
.
SubTree
(
"Ashley::Options"
)
if
Options
[
"Help"
]:
usage
();
k
=
katie
.
Katie
(
Cnf
);
for
arg
in
sys
.
argv
[
1
:]:
arg
=
utils
.
validate_changes_file_arg
(
arg
);
...
...
@@ -100,6 +124,7 @@ def main():
if
dsc_files
[
file
]:
utils
.
warn
(
"dsc_files[%s] still has following unrecognised keys: %s"
%
(
file
,
dsc_files
[
file
].
keys
()));
################################################################################
if
__name__
==
'__main__'
:
main
()
...
...
cindy
浏览文件 @
ab9a8e80
...
...
@@ -2,7 +2,7 @@
#
Cruft
checker
for
overrides
#
Copyright
(
C
)
2000
,
2001
,
2002
James
Troup
<
james
@
nocrew
.
org
>
#
$
Id
:
cindy
,
v
1.1
0
2002
-
05
-
23
09
:
54
:
23
troup
Exp
$
#
$
Id
:
cindy
,
v
1.1
1
2003
-
01
-
02
18
:
10
:
02
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
...
...
@@ -23,8 +23,8 @@
######################################################################
#
NB
:
cindy
is
not
a
good
idea
with
New
Incoming
as
she
doesn
't take #
# into account accepted. You can minimize the impact of this by #
# running her immediately after k
atie
but that'
s
still
racy
because
#
#
lisa
doesn
't lock with k
atie
. A better long term fix is the evil #
# running her immediately after k
elly
but that'
s
still
racy
because
#
#
lisa
doesn
't lock with k
elly
. A better long term fix is the evil #
# plan for accepted to be in the DB. #
######################################################################
...
...
@@ -42,6 +42,16 @@ override = {}
################################################################################
def usage (exit_code=0):
print """Usage: cindy
Check for cruft in overrides.
-h, --help show this help and exit"""
sys.exit(exit_code)
################################################################################
def process(suite, component, type):
global override;
...
...
@@ -102,7 +112,16 @@ def main ():
global
Cnf
,
projectB
,
override
;
Cnf
=
utils
.
get_conf
()
apt_pkg
.
ParseCommandLine
(
Cnf
,[],
sys
.
argv
);
Arguments
=
[(
'h'
,
"help"
,
"Cindy::Options::Help"
)];
for
i
in
[
"help"
]:
if
not
Cnf
.
has_key
(
"Cindy::Options::%s"
%
(
i
)):
Cnf
[
"Cindy::Options::%s"
%
(
i
)]
=
""
;
apt_pkg
.
ParseCommandLine
(
Cnf
,
Arguments
,
sys
.
argv
);
Options
=
Cnf
.
SubTree
(
"Cindy::Options"
)
if
Options
[
"Help"
]:
usage
();
projectB
=
pg
.
connect
(
Cnf
[
"DB::Name"
],
Cnf
[
"DB::Host"
],
int
(
Cnf
[
"DB::Port"
]));
db_access
.
init
(
Cnf
,
projectB
);
...
...
@@ -116,7 +135,7 @@ def main ():
print
"Processing %s [%s - %s]..."
%
(
suite
,
component
,
type
);
process
(
suite
,
component
,
type
);
################################################################################
#######
################################################################################
if
__name__
==
'__main__'
:
main
()
...
...
denise
浏览文件 @
ab9a8e80
...
...
@@ -2,7 +2,7 @@
#
Output
override
files
for
apt
-
ftparchive
and
indices
/
#
Copyright
(
C
)
2000
,
2001
,
2002
James
Troup
<
james
@
nocrew
.
org
>
#
$
Id
:
denise
,
v
1.1
4
2002
-
10
-
16
02
:
47
:
3
2
troup
Exp
$
#
$
Id
:
denise
,
v
1.1
5
2003
-
01
-
02
18
:
10
:
0
2
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
...
...
@@ -38,6 +38,15 @@ override = {}
################################################################################
def
usage
(
exit_code
=
0
):
print
"""Usage: denise
Outputs the override tables to text files.
-h, --help show this help and exit."""
sys
.
exit
(
exit_code
)
################################################################################
def
list
(
file
,
suite
,
component
,
type
):
global
override
;
...
...
@@ -78,10 +87,14 @@ def main ():
global
Cnf
,
projectB
,
override
;
Cnf
=
utils
.
get_conf
()
Arguments
=
[(
'D'
,
"debug"
,
"Denise::Options::Debug"
,
"IntVal"
),
(
'h'
,
"help"
,
"Denise::Options::Help"
),
(
'V'
,
"version"
,
"Denise::Options::Version"
)];
Arguments
=
[(
'h'
,
"help"
,
"Denise::Options::Help"
)];
for
i
in
[
"help"
]:
if
not
Cnf
.
has_key
(
"Denise::Options::%s"
%
(
i
)):
Cnf
[
"Denise::Options::%s"
%
(
i
)]
=
""
;
apt_pkg
.
ParseCommandLine
(
Cnf
,
Arguments
,
sys
.
argv
);
Options
=
Cnf
.
SubTree
(
"Denise::Options"
)
if
Options
[
"Help"
]:
usage
();
projectB
=
pg
.
connect
(
Cnf
[
"DB::Name"
],
Cnf
[
"DB::Host"
],
int
(
Cnf
[
"DB::Port"
]));
db_access
.
init
(
Cnf
,
projectB
);
...
...
helena
浏览文件 @
ab9a8e80
...
...
@@ -2,7 +2,7 @@
# Produces a report on NEW and BYHAND packages
# Copyright (C) 2001, 2002 James Troup <james@nocrew.org>
# $Id: helena,v 1.
3 2002-12-08 17:25:47
troup Exp $
# $Id: helena,v 1.
4 2003-01-02 18:10:02
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
...
...
@@ -44,7 +44,16 @@ Katie = None;
################################################################################
def
plural
(
x
):
def
usage
(
exit_code
=
0
):
print
"""Usage: helena
Prints a report of packages in queue directories (usually new and byhand).
-h, --help show this help and exit."""
sys
.
exit
(
exit_code
)
################################################################################
def
plural
(
x
):
if
x
>
1
:
return
"s"
;
else
:
...
...
@@ -189,12 +198,22 @@ def main():
global
Cnf
,
Katie
;
Cnf
=
utils
.
get_conf
();
apt_pkg
.
ParseCommandLine
(
Cnf
,[],
sys
.
argv
);
Arguments
=
[(
'h'
,
"help"
,
"Helena::Options::Help"
)];
for
i
in
[
"help"
]:
if
not
Cnf
.
has_key
(
"Helena::Options::%s"
%
(
i
)):
Cnf
[
"Helena::Options::%s"
%
(
i
)]
=
""
;
apt_pkg
.
ParseCommandLine
(
Cnf
,
Arguments
,
sys
.
argv
);
Options
=
Cnf
.
SubTree
(
"Helena::Options"
)
if
Options
[
"Help"
]:
usage
();
Katie
=
katie
.
Katie
(
Cnf
);
directories
=
Cnf
.
ValueList
(
"Helena::Directories"
);
if
not
directories
:
directories
=
[
"byhand"
,
"new"
]
directories
=
[
"byhand"
,
"new"
];
for
directory
in
directories
:
changes_files
=
glob
.
glob
(
"%s/*.changes"
%
(
Cnf
[
"Dir::Queue::%s"
%
(
directory
)]));
...
...
rene
浏览文件 @
ab9a8e80
...
...
@@ -2,7 +2,7 @@
#
Check
for
obsolete
binary
packages
#
Copyright
(
C
)
2000
,
2001
,
2002
James
Troup
<
james
@
nocrew
.
org
>
#
$
Id
:
rene
,
v
1.1
5
2002
-
10
-
16
02
:
47
:
3
2
troup
Exp
$
#
$
Id
:
rene
,
v
1.1
6
2003
-
01
-
02
18
:
10
:
0
2
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
...
...
@@ -37,12 +37,31 @@ projectB = None;
################################################################################
def usage(exit_code=0):
print """Usage: rene
Check for obsolete or duplicated packages.
-h, --help show this help and exit."""
sys.exit(exit_code)
################################################################################
def main ():
global Cnf, projectB;
Cnf = utils.get_conf()
Cnf = utils.get_conf();
Arguments = [('
h
',"help","Rene::Options::Help")];
for i in [ "help" ]:
if not Cnf.has_key("Rene::Options::%s" % (i)):
Cnf["Rene::Options::%s" % (i)] = "";
apt_pkg.ParseCommandLine(Cnf, Arguments, sys.argv);
Options = Cnf.SubTree("Rene::Options")
if Options["Help"]:
usage();
apt_pkg.ParseCommandLine(Cnf,[],sys.argv);
projectB = pg.connect(Cnf["DB::Name"], Cnf["DB::Host"], int(Cnf["DB::Port"]));
db_access.init(Cnf, projectB);
...
...
@@ -161,7 +180,7 @@ SELECT s.source, s.version AS experimental, s2.version AS unstable
print
print
q
################################################################################
####################
################################################################################
if
__name__
==
'__main__'
:
main
()
rose
浏览文件 @
ab9a8e80
...
...
@@ -2,7 +2,7 @@
# Initial setup of an archive
# Copyright (C) 2002 James Troup <james@nocrew.org>
# $Id: rose,v 1.
2 2002-11-22 04:07:10
troup Exp $
# $Id: rose,v 1.
3 2003-01-02 18:10:02
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
...
...
@@ -31,6 +31,14 @@ AptCnf = None;
################################################################################
def
usage
(
exit_code
=
0
):
print
"""Usage: rose
Creates directories for an archive based on katie.conf configuration file.
-h, --help show this help and exit."""
sys
.
exit
(
exit_code
)
################################################################################
def
do_dir
(
target
,
config_name
):
if
os
.
path
.
exists
(
target
):
...
...
@@ -94,7 +102,16 @@ def main ():
global
AptCnf
,
Cnf
,
projectB
;
Cnf
=
utils
.
get_conf
()
apt_pkg
.
ParseCommandLine
(
Cnf
,[],
sys
.
argv
);
Arguments
=
[(
'h'
,
"help"
,
"Rose::Options::Help"
)];
for
i
in
[
"help"
]:
if
not
Cnf
.
has_key
(
"Rose::Options::%s"
%
(
i
)):
Cnf
[
"Rose::Options::%s"
%
(
i
)]
=
""
;
apt_pkg
.
ParseCommandLine
(
Cnf
,
Arguments
,
sys
.
argv
);
Options
=
Cnf
.
SubTree
(
"Rose::Options"
)
if
Options
[
"Help"
]:
usage
();
AptCnf
=
apt_pkg
.
newConfiguration
();
apt_pkg
.
ReadConfigFileISC
(
AptCnf
,
utils
.
which_apt_conf_file
());
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录