Actually, this is the same with apt-get (having to do "apt-get update").

I will work on a global patch to include this.

Jonathan


On 25/01/2010 17:02, Mark Burgess wrote:
>
> Since we didn't look at aptitude (no debian users in the office) we only made
> functionality that was supported in apt-get.
>
> If you can set up and test the full thing for aptitude, that is a great 
> service to the
> community.
>
> Jonathan Clarke wrote:
>> On 25/01/2010 14:44, Jonathan Clarke wrote:
>>> Hi,
>>>
>>> I've been testing the standard library, in particular the apt
>>> package_method. I come with a bug and some suggestions.
>>
>> One further question:
>>
>> To "be aware" of new package, aptitude (or apt-get) must download the
>> latest list of packages from all repositories. This is done via the
>> command "aptitude update".
>>
>> Currently, cfengine does not do this, nor does it seem to provide a
>> field to fill in a package_method for this. Is this deliberate, or just
>> missing?
>>
>> I realize this could be done separately in a commands section, that then
>> defines a class on success, and causes a packages promise to be executed
>> on the next iteration through promises... but that feel ugly, and does
>> not succeed at "hiding" the package system's details.
>>
>> Should we add a package_list_update_command, that would be executed once
>> on each execution (at most) before any packages promises are run (if not
>> empty)?
>>
>> For discussion, I'm considering this simple example:
>>
>> 8<--
>> packages:
>>
>>     "apache2"
>>
>>        package_policy =>  "update",
>>        package_method =>  apt,
>>        comment =>  "This promise keeps apache2 as up to date as possible";
>> 8<--
>>
>> Jonathan
>


-- 
--------------------------------------------------------------
Jonathan Clarke - jonat...@phillipoux.net
--------------------------------------------------------------
Ldap Synchronization Connector (LSC) - http://lsc-project.org
--------------------------------------------------------------
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to