Stefan Hermes wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Michael DeHaan schrieb:
>   
>> James Cammarata wrote:
>>     
>>> On Thu, 12 Mar 2009 18:06:51 +0000, Dave Hatton <[email protected]>
>>> wrote:
>>>  
>>>       
>>>> Hi,
>>>>
>>>> Just a small suggestion.
>>>>
>>>> Could we decide on and stick to a consistent naming scheme for snippets?
>>>>
>>>> I would suggest
>>>>
>>>> <snippet name>_main
>>>> <snippet name>_post
>>>> <snippet name>_pre
>>>>
>>>> because snippets sort together when looking in the directory and you can
>>>> tell from _main, _post or _pre where to run them from in the .ks.
>>>>
>>>> At the moment we have a real mix of names.
>>>>
>>>> What does the panel think?
>>>>
>>>> Dave
>>>>
>>>> _______________________________________________
>>>> cobbler mailing list
>>>> [email protected]
>>>> https://fedorahosted.org/mailman/listinfo/cobbler
>>>>    
>>>>         
>>> +1
>>>
>>>  
>>>       
>> Tell me how not to break folks and get them asking lots of questions and
>> I'm ok with this.
>>
>> Duplicating the files does not seem to be good.
>>     
> How about legacy softlinks?
> They are not beautiful but should work.
>
>     -Stefan
>   
>> --Michael
>> _______________________________________________
>> cobbler mailing list
>> [email protected]
>> https://fedorahosted.org/mailman/listinfo/cobbler
>>
>>     
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iEYEARECAAYFAkm5VnwACgkQ5WhAoklHLAOpQwCgpmwsdVAm+6tkD0MU2V0BqXEE
> tpQAn3DHr1R5DXaBqSnvTMrbLy3L7a3Y
> =8GBR
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> cobbler mailing list
> [email protected]
> https://fedorahosted.org/mailman/listinfo/cobbler
>   

BTW, I think a cleaner way than prefixes, FWIW, is "snippets/pre/*", and 
"snipppets/post/*"

I'm still not happy with the upgrade case though, or the thought of 
having the old ones still there, or even as .rpmsaves.

We /could/ teach the snippet function to look for things in the 
directory if they started with "pre" or "post", and to try "pre" and 
"post" if not found, and about rpmsaves, but that seems a bit too 
intelligent of a hack.

--Michael


_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to