Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
喜羊羊3508
Dak
提交
058d7d21
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,发现更多精彩内容 >>
提交
058d7d21
编写于
7月 31, 2012
作者:
A
Ansgar Burchardt
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
dak/generate_packages_sources2.py: update for multi-archive
上级
b070077e
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
7 addition
and
6 deletion
+7
-6
dak/generate_packages_sources2.py
dak/generate_packages_sources2.py
+7
-6
未找到文件。
dak/generate_packages_sources2.py
浏览文件 @
058d7d21
...
...
@@ -66,7 +66,7 @@ SELECT
WHERE s.id=sm.src_id
)
||
E'\nDirectory\: pool/' || SUBSTRING(f.filename FROM E'\\A(.*)/[^/]*\\Z')
E'\nDirectory\: pool/' ||
:component_name || '/' ||
SUBSTRING(f.filename FROM E'\\A(.*)/[^/]*\\Z')
||
E'\nPriority\: ' || pri.priority
||
...
...
@@ -107,7 +107,7 @@ def generate_sources(suite_id, component_id):
output
=
writer
.
open
()
# run query and write Sources
r
=
session
.
execute
(
_sources_query
,
{
"suite"
:
suite_id
,
"component"
:
component_id
,
"dsc_type"
:
dsc_type
,
"overridesuite"
:
overridesuite_id
})
r
=
session
.
execute
(
_sources_query
,
{
"suite"
:
suite_id
,
"component"
:
component_id
,
"
component_name"
:
component
.
component_name
,
"
dsc_type"
:
dsc_type
,
"overridesuite"
:
overridesuite_id
})
for
(
stanza
,)
in
r
:
print
>>
output
,
stanza
print
>>
output
,
""
...
...
@@ -141,12 +141,12 @@ WITH
binaries b
JOIN bin_associations ba ON b.id = ba.bin
JOIN files f ON f.id = b.file
JOIN
location l ON l.id = f.location
JOIN
files_archive_map fam ON f.id = fam.file_id AND fam.archive_id = :archive_id
JOIN source s ON b.source = s.id
WHERE
(b.architecture = :arch_all OR b.architecture = :arch) AND b.type = :type_name
AND ba.suite = :suite
AND
l.component
= :component
AND
fam.component_id
= :component
)
SELECT
...
...
@@ -175,7 +175,7 @@ SELECT
), '')
|| E'\nSection\: ' || sec.section
|| E'\nPriority\: ' || pri.priority
|| E'\nFilename\: pool/' || tmp.filename
|| E'\nFilename\: pool/' ||
:component_name || '/' ||
tmp.filename
|| E'\nSize\: ' || tmp.size
|| E'\nMD5sum\: ' || tmp.md5sum
|| E'\nSHA1\: ' || tmp.sha1sum
...
...
@@ -231,7 +231,8 @@ def generate_packages(suite_id, component_id, architecture_id, type_name):
architecture
=
architecture
.
arch_string
,
debtype
=
type_name
)
output
=
writer
.
open
()
r
=
session
.
execute
(
_packages_query
,
{
"suite"
:
suite_id
,
"component"
:
component_id
,
r
=
session
.
execute
(
_packages_query
,
{
"archive_id"
:
suite
.
archive
.
archive_id
,
"suite"
:
suite_id
,
"component"
:
component_id
,
'component_name'
:
component
.
component_name
,
"arch"
:
architecture_id
,
"type_id"
:
type_id
,
"type_name"
:
type_name
,
"arch_all"
:
arch_all_id
,
"overridesuite"
:
overridesuite_id
,
"metadata_skip"
:
metadata_skip
,
"include_long_description"
:
'true'
if
include_long_description
else
'false'
})
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录