Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
喜羊羊3508
Dak
提交
53b225ff
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,发现更多精彩内容 >>
提交
53b225ff
编写于
9月 07, 2003
作者:
J
James Troup
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
sync
上级
ed59af70
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
82 addition
and
0 deletion
+82
-0
docs/README.suite-removal
docs/README.suite-removal
+82
-0
未找到文件。
docs/README.suite-removal
0 → 100644
浏览文件 @
53b225ff
[ This was some notes to myself that I made while removing potato; I
kept it because it turned out to be a far more traumatic experience
than was necesary. Hopefully rhona will be fixed by the time I need
to do this again which would obsolete most of the complex SQL
crap. (JT) ]
Potato Removal Plan
-------------------
o Create potato copy on archive.debian.org
o poolize any not-just-potato files with monica.
o force-remove any just-potato files (i.e. by setting last used to 3 weeks ago and run rhona)
o remove any files (dists/potato) (NB: not pool symlinks!)
o remove oldstable etc. from the db and config files
********************************************************************************
DROP TABLE moo;
SELECT f.id INTO TEMP moo FROM files f, binaries b, bin_associations ba
WHERE ba.suite IN (2, 3) AND ba.bin = b.id AND f.id = b.file
EXCEPT
SELECT f.id FROM files f, binaries b, bin_associations ba
WHERE ba.suite NOT IN (2, 3) AND ba.bin = b.id AND f.id = b.file;
CREATE INDEX moo_index on moo (id);
VACUUM; VACUUM ANALYZE;
EXPLAIN UPDATE files set last_used = '2003/09/03'
WHERE EXISTS (
SELECT id FROM moo WHERE files.id = moo.id);
DELeditmeETE FROM bin_associations WHERE suite IN (2, 3);
[ run rhona ]
****************************************
DROP TABLE moo;
SELECT f.id INTO TEMP moo FROM files f, source s, src_associations sa, dsc_files df
WHERE sa.suite IN (2, 3) AND sa.source = s.id AND df.source = s.id AND df.file = f.id
AND NOT EXISTS (SELECT b.id FROM binaries b WHERE b.source = s.id)
EXCEPT
SELECT f.id FROM files f, source s, src_associations sa, dsc_files df
WHERE sa.suite NOT IN (2, 3) AND sa.source = s.id AND df.source = s.id AND df.file = f.id;
CREATE INDEX moo_index on moo (id);
VACUUM; VACUUM ANALYZE;
EXPLAIN UPDATE files set last_used = '2003/09/03'
WHERE EXISTS (
SELECT id FROM moo WHERE files.id = moo.id);
DELeditmeETE FROM src_associations WHERE suite IN (2, 3);
[ run rhona ]
********************************************************************************
[Code for catherine (poolize); to go after the move of the file]
# Create symlink
src = utils.clean_symlink(destination, legacy_filename, Cnf["Dir::Root"]);
if verbose:
print "Symlinking: %s -> %s" % (legacy_filename, src);
if not no_action:
os.symlink(src, legacy_filename);
[Query for catherine]
SELECT l.path, f.filename, f.id as files_id, c.name as component
FROM files f, binaries b, bin_associations ba, location l, component c
WHERE ba.suite NOT IN (2, 3) AND f.filename ~ '^potato'
AND ba.bin = b.id AND f.id = b.file AND l.id = f.location
AND c.id = l.component
UNION
SELECT DISTINCT ON (f.filename) l.path, f.filename, f.id as files_id, c.name as component
FROM files f, source s, src_associations sa, dsc_files df,
location l, component c
WHERE sa.suite NOT IN (2, 3) AND f.filename ~ '^potato'
AND sa.source = s.id AND df.source = s.id AND f.id = df.file
AND l.id = f.location AND c.id = l.component;
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录