2008年2月7日木曜日

revisorの代わりその2

このエントリーをブックマークに追加 このエントリーを含むはてなブックマーク
どのrpmが必要かを決める必要がある。
そのためには最終的に入っていてほしいrpmがどのrpmに依存しているかを再帰的に探す必要がある。
となると、yum deplist で実行した結果で返ってくるdependencyで出てくるproviderを引数に渡してもう一度yum deplistを呼べばいいことになる。pythonからyumを呼び出すライブラリがあれば簡単にできそう。

yum deplistに相当するメソッドを呼んだときに得られる結果を辞書に突っ込んでいって辞書が大きくならなくなったときが終わり。

2 件のコメント:

nori さんのコメント...

/usr/share/yum-cli
に実体があるようだ。

yumcommnads.py や shell.py、cli.pyあたりを目を通した後で、import yumでがんばるか。

valenciayardley さんのコメント...

In our opinion, the 카지노 사이트 provide comes with honest and affordable terms. However, this on line casino is certainly not one of the low wagering UK casinos in the marketplace, however it's still an attractive welcome bonus for brand spanking new|for brand new} players. As we’ve talked about, the stay on line casino part of this web site doesn’t appear to really display any games in the meanwhile. If you wanting to|want to|wish to} play stay on line casino games, have a look at this record of one of the best stay casinos for this yr. 2 Scatter symbols appearing on reels 1, three or 5 in the main game activate a Re-Spin.