Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
喜羊羊3508
Dak
提交
803dc4d1
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,发现更多精彩内容 >>
提交
803dc4d1
编写于
4月 12, 2004
作者:
D
Daniel Silverstone
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
billie: Cleaned up a load of comments, added /README.non-US tothe verbatim matches list.
上级
5b97c377
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
14 addition
and
12 deletion
+14
-12
billie
billie
+14
-12
未找到文件。
billie
浏览文件 @
803dc4d1
...
...
@@ -2,7 +2,7 @@
# Prepare and maintain partial trees by architecture
# Copyright (C) 2004 Daniel Silverstone <dsilvers@digital-scurf.org>
# $Id: billie,v 1.
1 2004-03-21 16:55:19
dsilvers Exp $
# $Id: billie,v 1.
2 2004-04-12 12:44:06
dsilvers 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
...
...
@@ -19,10 +19,10 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
###############################################################################
#
###############################################################################
## <kinnison> So Martin, do you have a quote for me yet?
## <tbm> Make something damned stupid up and attribute it to me, that's okay
###############################################################################
#
###############################################################################
import
pg
,
pwd
,
sys
;
import
utils
,
db_access
;
...
...
@@ -40,7 +40,7 @@ TREE_ROOT = "***Configure Billie::TreeRootPath Please***";
TREE_DB_ROOT
=
"***Configure Billie::TreeDatabasePath Please***"
;
trees
=
[]
###############################################################################
##
###############################################################################
# A BillieTarget is a representation of a target. It is a set of archs, a path
# and whether or not the target includes source.
##################
...
...
@@ -94,7 +94,7 @@ class BillieTarget:
return
0
;
return
1
;
##############################################################################
####
##############################################################################
# The applicable function is basically a predicate. Given a path and a
# target object its job is to decide if the path conforms for the
# target and thus is wanted.
...
...
@@ -109,6 +109,7 @@ verbatim = [
"/README.CD-manufacture"
,
"/README.mirrors.html"
,
"/README.mirrors.txt"
,
"/README.non-US"
,
];
verbprefix
=
[
...
...
@@ -129,8 +130,9 @@ def applicable(path, target):
return
0
;
#################################################################################
# A BillieDir is a representation of a tree. It distinguishes files dirs and links
##############################################################################
# A BillieDir is a representation of a tree.
# It distinguishes files dirs and links
# Dirs are dicts of (name, BillieDir)
# Files are dicts of (name, inode)
# Links are dicts of (name, target)
...
...
@@ -142,7 +144,7 @@ class BillieDir:
self
.
files
=
{};
self
.
links
=
{};
##############################################################################
###
##############################################################################
# A BillieDB is a container for a BillieDir...
##############
...
...
@@ -189,7 +191,7 @@ class BillieDB:
f
.
close
();
##############################################################################
###
##############################################################################
# Helper functions for the tree syncing...
##################
...
...
@@ -218,7 +220,7 @@ def do_unlink(targ,path):
def
do_unlink_dir
(
targ
,
path
):
os
.
system
(
"rm -Rf '%s'"
%
_pth
(
targ
.
root
,
path
)
);
##############################################################################
###
##############################################################################
# Reconciling a target with the sourcedb
################
...
...
@@ -301,7 +303,7 @@ def _internal_reconcile( path, srcdir, targdir, targ ):
def
reconcile_target_db
(
src
,
targ
):
_internal_reconcile
(
""
,
src
.
root
,
targ
.
db
.
root
,
targ
);
###############################################################################
##
###############################################################################
def
load_config
():
global
MASTER_PATH
...
...
@@ -383,7 +385,7 @@ def main ():
tree
.
save_db
();
print
"Done"
##############################################################################
###
##############################################################################
if
__name__
==
'__main__'
:
main
()
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录