Re: 软件包中文描述 Description-md5 如何生 成?

Boyuan Yang <[email protected]>
Newsgroups gmane.linux.debian.user.chinese.gb,gmane.linux.debian.internationalization.chinese
Message-ID <CA+ya19JKyC+4sDgTy8tLXiZ5E9A+rfc3xj1Fq-N2jX0Nb1aQtw@mail.gmail.com>
Hi,

铜豌豆 Linux <[email protected]> 于2020年3月24日周二 上午11:26写道:
>
> 大家好!
>
>     现在 Debian 的很多软件包都有了中文描述,这些中文描述是放在 Debian 镜像的 i18n 目录下的。
>
> 如:http://mirrors.huaweicloud.com/debian/dists/Debian10.3/main/i18n/
>
> 中文翻译文件是:Translation-zh.bz2 和 Translation-zh_CN.bz2。
>
> 文件内容格式如下:
>
> Package: sysvinit-core
> Description-md5: 33be387f0c3f6dc398cbbfb9bd97351d
> Description-zh: 类系统V启动程序
>  本软件包包含了用于启动 Debian 系统以及进行基本进程管理的程序。
>  .
>  本软件包中最重要的文件是 /sbin/init。它是启动时第一个运行的程序,并且以进程号1继续运行直到关机。所有其它的进程都是它启动的。
>
> 我现在想请教的是,这个文件里面的 Description-md5: 值是如何生成的? Debian 下有工具或者软件包命令,自动生成这个值吗?
>
>
> 在网上搜索了 DDTP 等相关资料,也只是说是这个值是描述的 MD5 值,没有找到如何制作这类文件的信息。

如果只是想找信息是怎么生成的话,可以看 DDTP 的源代码: https://salsa.debian.org/l10n-team/ddtp

虽然暂时还没有深入读代码,但我相信这只是将翻译字符串做了 md5 而已,没有什么特别的地方。
可以考虑使用 Description-md5 或者 md5 作为关键字在整个代码仓库内寻找相关信息。

-- 
Boyuan Yang
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.