Bug(バグ) #835
closedopPlugin:install task does not work when the target plugin is already installed with --channel option (--channelオプション付きでインストール済みのプラグインに対してopPlugin:installが機能しない)
100%
Description
現象¶
opPlugin:install タスクを --channel オプション付きでインストールしたプラグインに対して opPlugin:install を実行すると、手動でプラグインをインストールした場合のエラーメッセージが表示されプラグインのアップデートが実行されない。
$ php symfony plugin:list | grep opTetetePlugin opTetetePlugin 0.5.0-beta # plugins.example.com (plugins.example.com) $ php symfony opPlugin:install -c plugins.example.com -r 0.6.0 opTetetePlugin "opTetetePlugin" is already installed manually, so it will not be reinstalled. If you want to manage it automatically, delete it manually and retry this command.
原因¶
opPluginInstallTask::isSelfInstalledPlugins() で --channel オプションの値を使わずにデフォルトのチャンネルサーバを使っていたため。
修正内容¶
opPluginInstallTask::isSelfInstalledPlugins() で --channel オプションの値が指定されている場合にはそれを使うようにした。
Updated by Rimpei Ogawa almost 15 years ago
- Status changed from Accepted(着手) to Pending Review(レビュー待ち)
- % Done changed from 0 to 50
更新履歴commit:"1c6151b82f27b97787ea745420bc6293daccd450"で適用されました。
Updated by Mutsumi Imamura almost 15 years ago
- % Done changed from 50 to 70
動作確認しました。
手順は以下の通りです。
まず
$ ./symfony opPlugin:install opTetetePlugin -r 1 --channel=plugins.xxx.xxx.jp
を実行する
次にプラグインがインストールされたか確認
$ ./symfony plugin:list | grep Tetete
opTetetePlugin 1-beta # plugins.xxx.xxx.jp (plugins.xxx.xxx.jp)
次にアップデート実施
$ ./symfony opPlugin:install opTetetePlugin -r 2 --channel=plugins.xxx.xxx.jp
アップデートされたか確認
$ ./symfony plugin:list | grep Tetete
opTetetePlugin 2-beta # plugins.xxx.xxx.jp (plugins.xxx.xxx.jp)
アップデートされたことを確認。テストOKとする。
レビューおねがいします。
Updated by Kousuke Ebihara almost 15 years ago
- Status changed from Pending Review(レビュー待ち) to Fixed(完了)
- % Done changed from 70 to 100