This is a multipart MIME message. --==_Exmh_562743630 Content-Type: text/plain; charset=us-ascii Hello, I've written a small patch for yum. It allows an exclude list on the servers sections. I use this capability to restrict SSH/SSL packages being updated from the official RedHat updates, but from our in-house customized versions. It's constructed against version 1.0, but applies nearly perfect to current CVS version. Post to list is probably not the best way, but it is not large, please apologize. --==_Exmh_562743630 Content-Type: application/x-patch ; name="yum_server_exclude.patch" Content-Description: yum_server_exclude.patch Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="yum_server_exclude.patch" ZGlmZiAtdU5yIHl1bS0xLjAub3JpL2NsaWVudFN0dWZmLnB5IHl1bS0xLjAvY2xpZW50U3R1 ZmYucHkKLS0tIHl1bS0xLjAub3JpL2NsaWVudFN0dWZmLnB5CVR1ZSBNYXIgMTEgMDc6Mzg6 MTkgMjAwMworKysgeXVtLTEuMC9jbGllbnRTdHVmZi5weQlXZWQgQXByIDMwIDE2OjM5OjI2 IDIwMDMKQEAgLTEwNCw3ICsxMDQsNyBAQAogICAgICAgICAoZW52cmFTdHIsIHJwbXBhdGgp ID0gc3RyaW5nLnNwbGl0KGxpbmUsICc9JykKICAgICAgICAgKGVwb2NoLCBuYW1lLCB2ZXIs IHJlbCwgYXJjaCkgPSBzdHJpcEVOVlJBKGVudnJhU3RyKQogICAgICAgICBycG1wYXRoID0g c3RyaW5nLnJlcGxhY2UocnBtcGF0aCwgJ1xuJywgJycpCi0gICAgICAgIGlmIG5vdCBuYW1l SW5FeGNsdWRlcyhuYW1lKToKKyAgICAgICAgaWYgbm90IG5hbWVJbkV4Y2x1ZGVzKG5hbWUs c2VydmVyaWQpOgogICAgICAgICAgICAgaWYgY29uZi5wa2dwb2xpY3kgPT0gJ2xhc3QnOgog ICAgICAgICAgICAgICAgIG5ldnJhbC5hZGQoKG5hbWUsIGVwb2NoLCB2ZXIsIHJlbCwgYXJj aCwgcnBtcGF0aCwgc2VydmVyaWQpLCAnYScpCiAgICAgICAgICAgICBlbHNlOgpAQCAtMTE5 LDcgKzExOS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zozODoxOSAy MDAzCisrKyB5dW0tMS4wL2NvbmZpZy5weQlXZWQgQXByIDMwIDE2OjI3OjI5IDIwMDMKQEAg LTMyLDYgKzMyLDcgQEAKICAgICAgICAgc2VsZi5zZXJ2ZXJoZHJkaXIgPSB7fQogICAgICAg ICBzZWxmLnNlcnZlcmNhY2hlID0ge30KICAgICAgICAgc2VsZi5zZXJ2ZXJncGdjaGVjaz17 fQorICAgICAgICBzZWxmLnNlcnZlcmV4Y2x1ZGVzID0ge30KICAgICAgICAgc2VsZi5leGNs dWRlcz1bXQogICAgICAgICAKICAgICAgICAgI2RlZmF1bHRzCkBAIC05Miw2ICs5MywxMCBA QAogICAgICAgICAgICAgICAgICAgICAgICAgc2VsZi5zZXJ2ZXJjYWNoZVtzZWN0aW9uXSA9 IGNhY2hlCiAgICAgICAgICAgICAgICAgICAgICAgICBzZWxmLnNlcnZlcnBrZ2RpcltzZWN0 aW9uXSA9IHBrZ2RpcgogICAgICAgICAgICAgICAgICAgICAgICAgc2VsZi5zZXJ2ZXJoZHJk aXJbc2VjdGlvbl0gPSBoZHJkaXIKKyAgICAgICAgICAgICAgICAgICAgICAgIGlmIHNlbGYu X2dldG9wdGlvbihzZWN0aW9uLCdleGNsdWRlJykgIT0gTm9uZSA6CisgICAgICAgICAgICAg ICAgICAgICAgICAgICAgc2VsZi5zZXJ2ZXJleGNsdWRlc1tzZWN0aW9uXSA9IHN0cmluZy5z cGxpdChzZWxmLl9nZXRvcHRpb24oc2VjdGlvbiwnZXhjbHVkZScpLCAnICcpCisgICAgICAg ICAgICAgICAgICAgICAgICBlbHNlOgorICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNl bGYuc2VydmVyZXhjbHVkZXNbc2VjdGlvbl0gPSBbXQogICAgICAgICAgICAgICAgICAgICBl bHNlOgogICAgICAgICAgICAgICAgICAgICAgICAgcHJpbnQgJ0Vycm9yOiBDYW5ub3QgZmlu ZCBiYXNldXJsIG9yIG5hbWUgZm9yIHNlcnZlciBcJyVzXCcuIFNraXBwaW5nJyAlKHNlY3Rp b24pICAgIAogICAgICAgICBlbHNlOgo= --==_Exmh_562743630--