[packagekit] Added missing yum backend methods.

Richard Hughes hughsient at gmail.com
Mon Nov 5 02:43:42 PST 2007


On Mon, 2007-11-05 at 11:26 +0100, Tim Lauridsen wrote:
> I have implemented the missing methods in the yum backend, so it is now 
> 100% method complete.

Well done! The first backend to get to 100%!

> get-requires <id>
> get-updates-detail <id>
> only updates/obsoletes is returned every time, the rest need extra 
> updates metadata there first will be available when Fedora 8 is released.
> 
> repo-set-data <repoid> <param> <value>

I've added support for these into the compiled helper and build new
rpms.

Focus for the next few weeks has to be:

* The APT backend.
* Adding unit tests (use "make gcov" to get a nice report)
* Finding performance hot-spots (use "make gprof" to help)
* Finding memory leaks in client and server programs (use valgrind)
* Adding sane commenting and gtk-doc markup to functions
* A new release

I'll need the APT guys to really push in the next few weeks, and other
volunteers to help out with memory leak finding and profiling. I'm going
to concentrate on unit tests for PkBackend and PkEngine as I think these
are the hardest to test.

For reference:

==============================================================================
Test coverage for module packagekit:
==============================================================================
pk-backend.c                                            :  17% (161 of 911)
pk-time.c                                               :  89% (114 of 128)
pk-conf.c                                               :  83% (68 of 81)
pk-spawn.c                                              :  84% (212 of 252)
pk-engine.c                                             :   5% (67 of 1118)
pk-inhibit.c                                            :  80% (130 of 161)
pk-thread-list.c                                        :  83% (98 of 118)
pk-transaction-db.c                                     :  17% (26 of 151)
pk-transaction-id.c                                     :  45% (32 of 70)
pk-transaction-list.c                                   :  18% (31 of 164)
pk-security-polkit.c                                    :  78% (88 of 112)

Source lines          : 8129
Actual statements     : 3266
Executed statements   : 1027
Test coverage         : 31%

==============================================================================
Test coverage for module libpackagekit:
==============================================================================
pk-connection.c                                         :   0% (0 of 32)
pk-package-id.c                                         :  75% (84 of 112)
pk-package-list.c                                       :  67% (75 of 111)
pk-enum-list.c                                          :  74% (174 of 235)
pk-enum.c                                               :  69% (112 of 162)
pk-common.c                                             :  84% (408 of 481)
pk-client.c                                             :   0% (0 of 1009)
pk-task-list.c                                          :   0% (0 of 119)
pk-job-list.c                                           :   0% (0 of 93)
pk-polkit-client.c                                      :   0% (0 of 61)
pk-network-nm.c                                         :  66% (26 of 39)
NOT TESTED = pk-debug.c

Source lines          : 6576
Actual statements     : 2454
Executed statements   : 879
Test coverage         : 35%

Richard.





More information about the PackageKit mailing list