[Freeipa-devel] [PATCH] convert the base platform modules into packages

Petr Viktorin pviktori at redhat.com
Thu Dec 6 13:49:41 UTC 2012


On 12/05/2012 04:06 PM, Timo Aaltonen wrote:
> On 05.12.2012 15:01, Timo Aaltonen wrote:
>> On 17.10.2012 16:43, Petr Viktorin wrote:
>>> On 09/21/2012 04:57 PM, Timo Aaltonen wrote:
>>>> Ok, so this is the first step before we can start to rewrite bits from
>>>> ipaserver/install to make them support other distros. There are no real
>>>> functional changes yet.
>>>>
>>>> had some dependency issues installing the resulting rpm's, so didn't
>>>> test the install scripts but they should work :)
>>>>
>>>>
>>>
>>> Hello,
>>>
>>> I recommend giving the -M flag to git format-patch, so it's easier to
>>> see changes in the patch.
>>>
>>>
>>> Your split of the fedora16 code into two modules is unfortunate: each
>>> tries to import the other one, and one is the other's parent. This would
>>> need special care to get working correctly.
>>>
>>> The best option here would probably be to put restore_context &
>>> check_selinux_status into a separate submodule, so you don't need to
>>> import fedora16 from services.
>>>
>>> Furthermore, in fedora16/__init__.py, you have:
>>>      from ipapython.platform.fedora16.service import *
>>> This imports everything from that module, including e.g. "redhat" or
>>> "os".
>>> Please avoid star imports. List all the imported names explicitly, or
>>> import the module and then use qualified names.
>>>
>>>
>>> Other than that, after a trivial rebase the patch seems to work fine on
>>> Fedora. Thanks!
>>
>> And finally, here is version 2.
>>
>> fixed all the above, I think.. make-lint passes, make rpms too.
>
> Here's v3, thanks to your rebase to an even more current master :)
>

Thank you! This works fine on f17 and f18. ACK.

We're stabilizing for a 3.1 release right now, so we might hold pushing 
this to master until work on 3.2 starts.




---

P.S.
Git is surprisingly bad at splitting files. Well, it's much better than 
any other SCM I know: SVN, bzr, hg can't AFAIK track file splits at all.
Today I learned how to use `git show` with file (not commit) hashes, and 
`git blame --reverse`.

-- 
Petr³




More information about the Freeipa-devel mailing list