Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
喜羊羊3508
Dak
提交
be23f99a
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,发现更多精彩内容 >>
提交
be23f99a
编写于
12月 15, 2008
作者:
J
Joerg Jaspert
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add removals.pl
Signed-off-by:
N
Joerg Jaspert
<
joerg@debian.org
>
上级
1c59f6a5
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
86 addition
and
0 deletion
+86
-0
ChangeLog
ChangeLog
+4
-0
config/debian/cron.hourly
config/debian/cron.hourly
+1
-0
tools/removals.pl
tools/removals.pl
+81
-0
未找到文件。
ChangeLog
浏览文件 @
be23f99a
2008
-
12
-
15
Joerg
Jaspert
<
joerg
@
debian
.
org
>
*
config
/
debian
/
cron
.
hourly
:
Call
the
removals
.
pl
2008
-
12
-
09
Joerg
Jaspert
<
joerg
@
debian
.
org
>
*
config
/
debian
/
cron
.
hourly
:
Added
queue_rss
.
py
to
hourly
cron
.
...
...
config/debian/cron.hourly
浏览文件 @
be23f99a
...
...
@@ -15,5 +15,6 @@ dak queue-report -n > $webdir/new.html
dak show-deferred
>
${
webdir
}
/deferred.html
cd
$queuedir
/new
;
dak show-new
*
.changes
>
/dev/null
$base
/dak/tools/queue_rss.py
-q
$queuedir
/new
-o
$webdir
/rss/
-d
$base
/misc
$base
/dak/tools/removals.pl
>
$webdir
/rss/removals.rss
$scriptsdir
/generate-di
tools/removals.pl
0 → 100755
浏览文件 @
be23f99a
#! /usr/bin/perl
# removals - generate an RSS feed of removals from Debian
# (C) Copyright 2005 Tollef Fog Heen <tfheen@err.no>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# version 2 as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
# 02111-1307 USA
use
strict
;
use
warnings
;
use
MIME::
Base64
qw(encode_base64)
;
use
XML::
RSS
;
use
POSIX
qw(strftime)
;
use
CGI
qw/:standard/
;
open
REMOVALS
,
"
</srv/ftp.debian.org/web/removals.txt
";
my
@removals
;
{
local
$/
=
"
=========================================================================
\n
=========================================================================
";
@removals
=
reverse
<
REMOVALS
>
;
}
my
$rss
=
new
XML::
RSS
(
version
=>
'
1.0
');
$rss
->
channel
(
title
=>
"
Removals from Debian
",
link
=>
"
http://ftp-master.debian.org/removals.txt
",
description
=>
"
List of all the removals from Debian's archives
",
dc
=>
{
date
=>
POSIX::
strftime
("
%FT%R+00:00
",
gmtime
()),
subject
=>
"
Removals from Debian
",
creator
=>
'
tfheen@debian.org
',
publisher
=>
'
joerg@debian.org
',
rights
=>
'
Copyright 2005, Tollef Fog Heen
',
language
=>
'
en-us
',
},
syn
=>
{
updatePeriod
=>
"
hourly
",
updateFrequency
=>
"
1
",
updateBase
=>
"
1901-01-01T00:00+00:00
",
}
);
for
(
0
..
15
)
{
my
$i
=
$_
;
my
(
$null
,
$date
,
$ftpmaster
,
$body
,
$reason
);
$removals
[
$i
]
=~
s/=========================================================================//g
;
$removals
[
$i
]
=~
m/\[Date: ([^]]+)\] \[ftpmaster: ([^]]+)\]/
;
$date
=
$
1
;
$ftpmaster
=
$
2
;
(
$null
,
$body
)
=
split
/\n/
,
$removals
[
$i
],
2
;
chomp
$body
;
$body
=~
m/---- Reason ---.*\n(.*)/
;
$reason
=
$
1
;
my
$link
=
encode_base64
(
$date
.
$ftpmaster
);
chomp
(
$link
);
$rss
->
add_item
(
title
=>
"
$reason
",
link
=>
"
http://ftp-master.debian.org/removals.txt?
"
.
$link
,
description
=>
qq[<pre>$body</pre>]
,
dc
=>
{
creator
=>
"
$ftpmaster
",
}
);
}
print
$rss
->
as_string
;
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录