FS#13414 - [repo-add] restrict readding the same package to the repo db
Attached to Project:
Pacman
Opened by Allan McRae (Allan) - Sunday, 22 February 2009, 10:28 GMT
Last edited by Xavier (shining) - Monday, 19 October 2009, 11:03 GMT
Opened by Allan McRae (Allan) - Sunday, 22 February 2009, 10:28 GMT
Last edited by Xavier (shining) - Monday, 19 October 2009, 11:03 GMT
|
Details
It might be a good idea to restrict the re-addition of a
package to a repo db without a flag of some variety. Or at
least give a warning.
This would prevent issues like this: http://bbs.archlinux.org/viewtopic.php?id=65098 |
This task depends upon
Closed by Xavier (shining)
Monday, 19 October 2009, 11:03 GMT
Reason for closing: Implemented
Additional comments about closing: added a warning with commit f09f82ee59531
Monday, 19 October 2009, 11:03 GMT
Reason for closing: Implemented
Additional comments about closing: added a warning with commit f09f82ee59531
However, there might be cases where we want to re-add exactly the same version of a package (same md5sum), to exploit a fixed or improved repo-add.
This is not too common though, so printing a warning when the same version is added sounds alright.
I think repo-add should not allow the readdition of the same package without a flag to indicate that this is a known action, or at least a warning.