[wpkg-users] profile dependency not honoured wrt applications

Malte Starostik malte at malte.homeip.net
Thu Aug 20 15:20:47 CEST 2009


Hi Lukasz,

Am Donnerstag, 20. August 2009 15:05:22 schrieb Lukasz Zalewski:
> Hi all,
> I'm using latest stable release of wpkg (WPKG 1.1.1) and latest stable
> client release (WPKG Client 1.2.1)
> I have the following profile entries:
> default.xml
> <profiles>
>      <profile id="default">
>          <package package-id="freemountpoint" />
>      </profile>
> </profiles>
>
> and in student.xml
> <profiles>
>      <profile id="student">
>          <depends profile-id="default" />
>          <package package-id="firefox" />
>          <package package-id="thunderbird" />
>      </profile>
>
>      <profile id="ITLTop">
>          <depends profile-id="student" />
>      </profile>
>
>      <profile id="allaccess">
>          <depends profile-id="student" />
>      </profile>
> </profiles>
>
> According to the documentation any dependencies in a particular profile
> will result in accumulated set of application. The machine I'm using is
> associates itself with student profile, here is some entries from the log:
> 2009-08-20 13:29:40, DEBUG   : Settings file contains 2
> packages:|firefox|thunderbird
> 2009-08-20 13:29:40, DEBUG   : Packages file contains 3
> packages:|firefox|freemountpoint|thunderbird
> 2009-08-20 13:29:40, DEBUG   : Profile file contains 4
> profiles:|default|student|ITLTop|allaccess
> 2009-08-20 13:29:40, DEBUG   : Using profile(s):|student|
> 2009-08-20 13:29:40, DEBUG   : Getting profiles which apply to this node.
> 2009-08-20 13:29:40, DEBUG   : Applying profile: student
> 2009-08-20 13:29:40, DEBUG   : Adding profile dependencies of profile
> 'student': 'default'
>
> It seems like it finds all of the profiles, all of the packages and
> correctly adds the dependency. However then
> 2009-08-20 13:29:40, DEBUG   : Adding package with ID 'firefox' to
> profile packages.
> 2009-08-20 13:29:40, DEBUG   : Found package node 'Mozilla Firefox'
> (firefox) in package database
> 2009-08-20 13:29:40, DEBUG   : Adding package with ID 'thunderbird' to
> profile packages.
> 2009-08-20 13:29:40, DEBUG   : Found package node 'Mozilla Thunderbird'
> (thunderbird) in package database
> 2009-08-20 13:29:40, DEBUG   : Synchronizing: Number of packages
> referenced by profile: 2
> It seems to only find the applications referenced by the current profile
> and not by the dependency.
> BTW freemountpoint package is an execute always package:
> <package
>     id="freemountpoint"
>     name="EECS Utility Script"
>     revision="200908200"
>     execute="always">
>     <install cmd='perl "%SOFTWARE%\scripts\freemountpoint.pl"' />
> </package>
>
> Do those get processed in a different way? Am i missing something?

Any chance there is another conflicting profile with id "default"?
In the WPKG distribution, profiles.xml contains such a profile that pulls in 
packages "firefox" and "thunderbird", maybe that one is still there and thus 
your own one in packages/default.xml is ignored?

HTH,
Malte



More information about the wpkg-users mailing list