上载cpan数据库中的文件 [英] Upload file that is in the cpan database

查看:57
本文介绍了上载cpan数据库中的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在CPAN上有一个小模块- http://search.cpan.org/~bessarabv/

I have a small module on CPAN - http://search.cpan.org/~bessarabv/.

我犯了一个错误,首先上传文件SQL-Easy-0.04.tar.gz,然后才上传SQL-Easy-0.03.tar.gz CPAN认为0.03是该模块的最新版本。
为解决此问题,我请求删除0.04。

I made a mistake and at first uploaded file SQL-Easy-0.04.tar.gz and only then SQL-Easy-0.03.tar.gz After that CPAN thought that the 0.03 is the latest version of the module. To fix this problem I've requested the deletion of the 0.04.

0.04已删除,而0.03成为最新版本。现在,我将文件SQL-Easy-0.04.tar.gz上载到cpan,但是尝试上载时出现错误:

0.04 was deleted and the 0.03 became the latest version. Now I'm uploading file SQL-Easy-0.04.tar.gz to cpan, but I get the error when I try to upload It:

Submitting query

Could not enter the URL into the database. Reason:

Duplicate entry 'B/BE/BESSARABV/SQL-Easy-0.04.tar.gz' for key 1

This indicates that you probably tried to upload a file that is
already in the database. You will most probably have to rename
your file and try again, because PAUSE doesn't let you upload
a file twice.

我不确定这是否是正确的行为:我已删除文件,因此

I'm not sure that this is a correct behavior: I've deleted the file, so the record in the database should also be deleted.

是否可以通过任何方式将文件上传到cpan而不重命名?

Is there any way of uploading file to cpan without renaming it?

推荐答案

发布版本0.05-拥有多个版本,甚至在需要时跳过版本号也没有什么危害(将更改文件保留为发行版的一部分并添加注释)关于更改的内容,即使 0.05因0.04错误而释放。

Release version 0.05 - there is no harm in having multiple versions, or even skipping a version number if you need to (do keep a Changes file as part of your distributions and put in comments about what has changed, even if "0.05 released because of mistake in 0.04").

正如评论中指出的,人们可能已经安装了0.04(即使它已经安装了0.04)。仅在一个小时前上传了)。释放不同的0.04将会阻止他们升级,并且还会导致CPAN Testers等其他问题,这就是为什么系统停止您上传同名东西的原因。

As pointed out in the comments, people might have 0.04 installed already (even if it was only uploaded an hour or so ago). Releasing a different 0.04 would prevent them getting the upgrade and also cause other problems with CPAN Testers etc which is why the system stops you uploading something of the same name.

删除选项存在,因此您可以删除较旧的版本,而不必重新上传它们。

The delete option is there so you can remove older versions, not so you can re-upload them.

这篇关于上载cpan数据库中的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆