[packagekit] Run pkclient action from thread

Matthias Klumpp matthias at nlinux.org
Fri Apr 16 07:07:24 PDT 2010


Hello!
Is it possible to run a pkclient action like pk_client_search_files_async()
from a separate thread?
If I try it, nothing happens, no error etc.
Just packagekitd prints the following output in verbose mode:

 - reset timer                                                             
                                                       
TI:15:58:22     FI:pk-transaction-db.c 
FN:pk_transaction_db_defer_write_job_count_cb,528                          
               
 - doing deferred write syncronous                                         
                                                       
TI:15:58:24     FI:pk-transaction-list.c       
FN:pk_transaction_list_is_consistent,734                                   
       
 - checking consistency as length 2                                        
                                                       
TI:15:58:24     FI:pk-transaction-list.c       
FN:pk_transaction_list_print,702                                           
       
 - State:                                                                  
                                                       
0       unknown /170_ebaeacbc_data      running[0] committed[0] finished[0]
background[0]                                          
1       unknown /171_ceadcbce_data      running[0] committed[0] finished[0]
background[0]                                          
                                                                           
                                                       
TI:15:58:24     FI:pk-transaction-list.c       
FN:pk_transaction_list_is_consistent,763                                   
       
 - 2 have an unknown role (GetTid then nothing?)                           
                                                       
TI:15:58:24     FI:pk-transaction-list.c       
FN:pk_transaction_list_is_consistent,767                                   
       
 - 2 have not been committed and may be pending auth                       
                                                       
TI:15:58:24     FI:pk-engine.c  FN:pk_engine_get_seconds_idle,750          
                                                       
 - engine idle zero as 2 transactions in progress                          
                                                       
TI:15:58:24     FI:pk-main.c    FN:pk_main_timeout_check_cb,139            
                                                       
 - idle is 0                                                               
                                                       
TI:15:58:29     FI:pk-engine.c  FN:pk_engine_get_seconds_idle,750

Can I use threads for those methods in general?
Kind regards
  Matthias Klumpp



More information about the PackageKit mailing list