PEAR Bug #4208http://pear.php.net/bugs/4208
[Open] Add ability to migrate a package to another channelen-uspear-webmaster@lists.php.netpear-webmaster@lists.php.nethourly12000-01-01T12:00+00:00

Add ability to migrate a package to another channelDescription:
------------
Currently, once a package is in a channel, it is stuck. This means if you ever move it to another channel, you have to use --ignore-errors to install it because it will conflict with the package from the other channel.
Security is an issue, so the only way to do this is to have the specification in the old channel's final release, as in:
<name>Chiara_PEAR_Server</name>
<channel>pear.chiaraquartet.net</channel>
<deprecatedby>
<name>PEAR_Server</name>
<channel>pear.php.net</channel>
</deprecatedby>
This would be the top of Chiara_PEAR_Server's final release at pear.chiaraquartet.net. The releases at pear.php.net would then be able to upgrade from the older Chiara_PEAR_Server with no penalty.
This is most useful for a package that retains the same name. The example above is moot, because a Chiara_PEAR_Server package would not conflict with a PEAR_Server because all the files are in Chiara/cellog
celloghttp://pear.php.net/bugs/4208
PEAR Feature/Change Request
Reported by cellog
2005-04-22T18:42:05+00:00
PHP: Irrelevant OS: n/a Package Version:
Description:
------------
Currently, once a package is in a channel, it is stuck. This means if you ever move it to another channel, you have to use --ignore-errors to install it because it will conflict with the package from the other channel.
Security is an issue, so the only way to do this is to have the specification in the old channel's final release, as in:
<name>Chiara_PEAR_Server</name>
<channel>pear.chiaraquartet.net</channel>
<deprecatedby>
<name>PEAR_Server</name>
<channel>pear.php.net</channel>
</deprecatedby>
This would be the top of Chiara_PEAR_Server's final release at pear.chiaraquartet.net. The releases at pear.php.net would then be able to upgrade from the older Chiara_PEAR_Server with no penalty.
This is most useful for a package that retains the same name. The example above is moot, because a Chiara_PEAR_Server package would not conflict with a PEAR_Server because all the files are in Chiara/]]>PEAR Feature/Change Request
Reported by cellog
2005-04-22T18:42:05+00:00
PHP: Irrelevant OS: n/a Package Version:
Description:
------------
Currently, once a package is in a channel, it is stuck. This means if you ever move it to another channel, you have to use --ignore-errors to install it because it will conflict with the package from the other channel.
Security is an issue, so the only way to do this is to have the specification in the old channel's final release, as in:
<name>Chiara_PEAR_Server</name>
<channel>pear.chiaraquartet.net</channel>
<deprecatedby>
<name>PEAR_Server</name>
<channel>pear.php.net</channel>
</deprecatedby>
This would be the top of Chiara_PEAR_Server's final release at pear.chiaraquartet.net. The releases at pear.php.net would then be able to upgrade from the older Chiara_PEAR_Server with no penalty.
This is most useful for a package that retains the same name. The example above is moot, because a Chiara_PEAR_Server package would not conflict with a PEAR_Server because all the files are in Chiara/]]>2005-04-22T18:42:05+00:00
doconnor [2011-12-10 12:05] http://pear.php.net/bugs/4208#1323518713
+1 to the approach :)]]>+1 to the approach :)]]>2011-12-10T12:05:13+00:00
dufuz [2009-03-27 00:05] http://pear.php.net/bugs/4208#1238112300
Had a back and forth with people about this and most people wanted a prompt (something not possible in the PEAR installer, per se) so what I came up with (no patch yet) is if we would do this on phpunit then I would install the package, get up a msg saying "this package has moved, run pear upgrade -m phpunit" and it would auto discover the new channel and install that package instead of the old one, effectively migrate the package over.
So this would entitle upgrade to get a new switch option -m or --migrate. This is the closest we can get to a prompt without being an actual prompt.
Any thoughts on the approach.]]>Had a back and forth with people about this and most people wanted a prompt (something not possible in the PEAR installer, per se) so what I came up with (no patch yet) is if we would do this on phpunit then I would install the package, get up a msg saying "this package has moved, run pear upgrade -m phpunit" and it would auto discover the new channel and install that package instead of the old one, effectively migrate the package over.
So this would entitle upgrade to get a new switch option -m or --migrate. This is the closest we can get to a prompt without being an actual prompt.
Any thoughts on the approach.]]>2009-03-27T00:05:00+00:00
cellog [2005-05-11 21:58] http://pear.php.net/bugs/4208#1115848733
will implement after 1.4.0]]>will implement after 1.4.0]]>2005-05-11T21:58:53+00:00