forked from community-ssu/hildon-application-manager
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathChangeLog
10727 lines (8364 loc) · 425 KB
/
ChangeLog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
2010-08-05 Alberto Garcia <[email protected]>
* src/apt-worker.cc (operation): Don't touch the icon folder after
a package has been installed. This is not necessary anymore since
gtk 2.14.7-1maemo34
2010-07-16 Cosimo Alfarano <[email protected]>
* src/main.cc: add "/home/user/MyDocs/.tmp" to dirs prefixes from which
HAM is allowed to unlink downloaded .debs
as specified in
https://projects.maemo.org/bugzilla/show_bug.cgi?id=177125#c30
Relase 2.2.71
2010-07-01 Cosimo Alfarano <[email protected]>
* src/main.cc: Check /home/user/MyDocs/.apt-archive-cache deleting
trusted .debs, according to NB#177568, blocked by NB#177125
* src/util.cc: Add interaction tasks to enqueues task in need of interactive UI
* src/main.cc: change of return type from void to null for install_from_file_flow()
* irc/main.cc: Use interction tasks to enqueue the install operation
instead of dropping it, in install_from_file_flow() (NB#177568)
Release 2.2.70
2010-06-14 Alban Crequy <[email protected]>
* src/operations.cc: Fix "not enough memory" error message
Release 2.2.69
2010-06-10 Alberto Garcia <[email protected]>
* src/util.cc: Fix visual artifact in progress bar
Release 2.2.68
2010-06-07 Alberto Garcia <[email protected]>
* src/confutils.cc: Don't add repo definition with more than 1024
char
* src/repo.cc: Ignore badly formatted catalogues
* src/main.cc: Update the cache using an idle call
Release 2.2.67
2010-04-22 Alban Crequy <[email protected]>
* src/operations.cc: Fix "not enough memory" error message
Release 2.2.66
2010-03-29 Alban Crequy <[email protected]>
* src/apt-worker.cc: Check 150mb free space in /home/
Release 2.2.65
2010-03-26 Marco Barisione <[email protected]>
Release 2.2.64
2010-03-26 Marco Barisione <[email protected]>
* src/main.cc: Delete packages installed from /var/tmp/
2010-03-24 Marco Barisione <[email protected]>
* src/dbus.cc:
* src/main.cc:
* src/main.h:
* src/menu.cc:
* src/operations.cc:
* src/operations.h: Make it possible to avoid the legal warning when
installing a local package.
2010-03-26 Alban Crequy <[email protected]>
* src/apt-worker.cc: Check free space in /home/
2010-03-11 Alberto Garcia <[email protected]>
* src/util.cc (get_device_mode): Set the telephony service state when
requesting OFFLINE mode.
2010-03-04 Víctor Manuel Jáquez Leal <[email protected]>
* apt-worker.cc (fs_setup): New function.
(fs_teardown): New function.
(do_rescue): use the new functions
2010-02-25 Víctor Manuel Jáquez Leal <[email protected]>
* src/settings.cc: set to true the show_ssu_problems global
variable by default
2010-02-23 Víctor Manuel Jáquez Leal <[email protected]>
* src/operations.cc (ip_download_cur): Reset the cancel/break
flags before every download
* src/util.cc (iap_callback): Nullify the iap identifier after
free it.
* src/details.cc (spd_with_details): don't remove the tab if the
setting is enabled.
2010-02-22 Víctor Manuel Jáquez Leal <[email protected]>
* src/settings.h: export the global variable
* src/settings.cc (load_settings): read the new key
(save_settings): save the new key
(make_settings_tab): put the option in the widget
2010-02-18 Víctor Manuel Jáquez Leal <[email protected]>
* src/operations.cc (ip_download_cur_retry): reset entertainment
state before downloading again.
* src/util.cc (reset_entertainment): New function
* src/util.h: New function exporting
* src/operations.cc (ip_autoremove_reply): New function.
(ip_reboot): call the autoremove apt-worker command.
* src/apt-worker.cc (cmd_autoremove): Remove useless log messages
* src/operations.cc (up_remove_reply): Stop the entertainment only
if apt-worker fails.
(up_remove_reply): Call the autoremove process.
(up_autoremove_reply): New function.
2010-02-09 Mario Sanchez Prada <[email protected]>
* src/main.cc (rp_end): Make sure packages list is always
initialized after restoring the list of packages.
2010-02-17 Víctor Manuel Jáquez Leal <[email protected]>
* apt-worker-client.h: function signature
src/apt-worker-client.cc (apt_worker_autoremove): New function.
* src/apt-worker-proto.h: add the command id.
* src/apt-worker (handle_request): handle the command request.
(cmd_autoremove): New function.
* src/operations.cc (ip_download_cur_reply): Retrying downloading
three times if it fails.
2010-01-21 Víctor Manuel Jáquez Leal <[email protected]>
* src/operations.cc (result_code_to_message): Show the new label
for retrying.
(ip_download_cur_retry_confirm): Enable the ask_yes_no dialog
(ip_download_cur_retry): New function.
(ip_download_cur_retry_confirm_response): fix the function in
order to re-ensure the network connection before downloading
again.
(ip_download_cur_reply): Ask to retry if the download was broke
2010-01-11 Víctor Manuel Jáquez Leal <[email protected]>
* src/util.cc (iap_callback): handler and report errors, handle
the disconnecting status, and try to handle reconnections.
2010-01-28 Mario Sanchez Prada <[email protected]>
* src/dbus.c (MCE_SERVICE): Removed from here.
(MCE_REQUEST_IF): Likewise.
(MCE_REQUEST_PATH): Likewise.
(MCE_GET_DEVICE_MODE_REQ): Likewise.
(MCE_DEVICE_MODE_CHANGE_REQ): Likewise.
(get_device_mode): Likewise.
(set_device_mode): Likewise.
* src/dbus.h (device_mode): Removed from here.
(get_device_mode): Likewise.
(set_device_mode): Likewise.
(send_reboot_message): Removed unused function.
* src/operations.cc (ip_kill_all_and_install_delayed): Removed
crappy code to kill and stop processes from here and call a new
utility function instead: kill_processes_for_SSU
* src/util.cc (stop_dsme_service): Made this function private.
(maybe_kill_all_by_name): Made this function private.
(MCE_SERVICE): Moved from dbus.cc.
(MCE_REQUEST_IF): Likewise.
(MCE_REQUEST_PATH): Likewise.
(MCE_GET_DEVICE_MODE_REQ): Likewise.
(MCE_DEVICE_MODE_CHANGE_REQ): Likewise.
(get_device_mode): Likewise.
(set_device_mode): Likewise.
(connected_event_handler_id): New global variable to
store the handler id for the 'connection-event' callback.
(ensure_network): Store the handler id when connecting the signal.
(listen_to_conic_events): New function, to easily state when HAM
should start or stop listening to conic events.
(set_device_mode): Make sure HAM stops listening to conic events
before going to offline mode and that starts listening back to
them right after going online again.
* src/util.h (enum device_mode): Moved from dbus.h.
(stop_dsme_service): Removed from header.
(get_device_mode): Added prototype.
(set_device_mode): Added prototype.
(maybe_kill_all_by_name): Removed from header.
(kill_processes_for_SSU): Added prototype.
2010-01-25 Mario Sanchez Prada <[email protected]>
* src/util.cc (live_search_look_for_prefix): New function to
easily look for a given prefix among an array of tokens.
(live_search_filter_func): For each token provided by the live
search widget, look for a match among words in package name or
description.
2010-01-28 Mario Sanchez Prada <[email protected]>
* src/util.cc (tree_tap_and_hold_cb): New function to handle the
'tap-and-hold' signal coming from the tree view.
(make_global_package_list): Don't pass the menu to the function
gtk_widget_tap_and_hold_setup and manually connect to the
'tap-and-hold' signal instead.
2010-01-27 Mario Sanchez Prada <[email protected]>
* src/main.cc (update_all_get_upgradeable_packages): New function
to get the list of upgradeable packages for the "update all"
button, returning the OS package only in the list if present.
(update_all_packages_flow): Call
update_all_get_upgradeable_packages.
* src/ham-after-boot.c (main): For the OS update, make sure the
icon will blink after reboot by deleting user files related to its
state.
* statusbar/ham-updates-status-menu-item.c
(should_force_check_for_updates): New function to check whether a
check-for-updates should be forced (no tapped-updates file on
disk).
(run_service_now): Call should_force_check_for_updates to know
whether a check-for-updates should be forced even before the next
interval
2010-01-26 Mario Sanchez Prada <[email protected]>
* statusbar/ham-updates.c (ham_updates_check): Return value in the
proper units (minutes) when gconf client failed to get the client.
(ham_updates_get_blink_after): New function to retrieve the
'blinking-after' value from GConf, or its default value.
(ham_updates_maybe_force_blinking): New function to decide whether
the blinking should be forced or not, depending on several
factors.
(ham_updates_check): Make sure the 'tapped-updates' and
'seen-updates' files get removed before checking for updates if
more time has passed since tapping the icon than the 'blink-after'
value. Call to ham_updates_maybe_force_blinking
* statusbar/update-notifier-conf.h (UPNO_GCONF_BLINK_AFTER): New
define for the minimum amount of time before forcing the blinking.
(UPNO_DEFAULT_BLINK_AFTER): Default value for
UPNO_GCONF_BLINK_AFTER
* src/util.cc (make_global_package_list): Made it private, as it
will just handle common logic for the new public functions from
now on. Added extra parameters to allow setting a button in the
GtkTreeView's action area when needed, by just specifying the
label and the callback when clicked.
(make_install_apps_package_list): New function to take care of
making packages list for the "install apps" views.
(make_upgrade_apps_package_list): New function to take care of
making packages list for the "update apps" view. Added extra
parameter to tell whether the action area should be shown or not
for the upgrade view.
(make_uninstall_apps_package_list): New function to take care of
making packages list for the "uninstall apps" view.
* src/util.h: Updated prototipes and comments.
* src/main.cc (make_install_section_view): Call to the new
function make_install_apps_package_list instead of
make_global_package_list.
(make_install_applications_view): Call to the new function
make_install_apps_package_list instead of
make_global_package_list.
(make_upgrade_applications_view): Call to the new function
make_upgrade_apps_package_list instead of
make_global_package_list. Remove calls to enable_update_all.
(make_uninstall_applications_view): Call to the new function
make_uninstall_apps_package_list instead of
make_global_package_list.
(make_search_results_view): Call to the new functions for install,
upgrade or uninstall apps, instead of make_global_package_list.
(set_current_view): Remove calls to enable_update_all.
* src/menu.cc (update_all_menu_item): Removed unused menu item.
(create_menu): Removed code adding the 'update all' button.
(enable_update_all): Removed.
* src/menu.h (enable_update_all): Removed.
2010-01-20 Mario Sanchez Prada <[email protected]>
* src/main.cc (enum package_list_state): New enumeration for
package list states: unknown, retrieving and ready.
(pkg_list_state): New variable of type package_list_state.
(package_list_ready): New preprocessor macro to ease replacing the
usage of the old package_list_ready variable in the code.
(get_package_list_reply): Set pkg_list_state to 'ready'
(get_package_list_with_cont): Set pkg_list_state to 'retrieving'
(iff_end): Ensure maybe_init_packages_list is called here.
(maybe_init_packages_list): Do the right check to know whether the
global packages list is or not ready or being retrieved.
2010-01-19 Mario Sanchez Prada <[email protected]>
* src/details.cc (show_package_details): Make sure the details
dialog gets created and properly filed both for packages in the
apt repositories and those coming from .deb files.
(get_notebook_width): Renamed into get_screen_width.
(get_screen_width): New, gets the screen width instead of trying
to figure out the realized width of the dialog or the notebook,
which is troublesome at many points.
(make_small_text_label): Use get_screen_width instead of
get_notebook_width. Make sure no width is explicitly requested if
not a valid value was got. Apply a reduction factor of 0.85 for
the wrapping sinc the base value (screen width) now is bigger than
before.
(spd_with_details): Only take care of showing full details for the
package when the filling_details parameter is set to TRUE. Don't
ask for an specific width for the dialog, just for the height.
* src/operations.cc (if_details_reply): Initialize flags to zero
for packages coming from a .deb file.
* hildon-application-manager.sh: Remove old backup file if
outdated
2010-01-15 Mario Sanchez Prada <[email protected]>
* src/apt-worker.cc: Don't use const char* for strings that may
change.
(ICONS_THEME_PATH): New define pointing to the root of the theme
icons path.
(operation): Call to utimes to 'touch' the icons theme path.
* src/operations.cc (force_icons_theme_reload): New, send a
GdkEvent to make sure the icons get reloaded.
(ip_install_loop): Call to force_icons_theme_reload.
2010-01-07 Mario Sanchez Prada <[email protected]>
* src/util.cc (package_info_func): Ignore package's version and
size when settting properties for the PackageInfoCellRenderer.
* src/package-info-cell-renderer.c (enum): Dropped
PROP_PKG_VERSION and PROP_PKG_SIZE properties.
(struct _PackageInfoCellRendererPrivate): Dropped pkg_version and
pkg_size private fields.
(package_info_cell_renderer_instance_init): Removed unused code.
(package_info_cell_renderer_finalize): Likewise.
(package_info_cell_renderer_class_init): Likewise.
(package_info_cell_renderer_get_property): Likewise.
(package_info_cell_renderer_set_property): Likewise.
(paint_row): Removed unneeded parameters for the right layout, as
there won't be used anymore.
(package_info_cell_renderer_render): Updated call to paint_row and
removed unneeded code after the changes commented above.
2009-12-18 Alejandro Piñeiro <[email protected]>
* src/repo.cc (cat_icon_func): Add missing NULL check.
(cat_text_func): Add missing NULL check.
2009-12-18 Mario Sanchez Prada <[email protected]>
* src/menu.cc (sort_by_name_menu_item): Removed.
(sort_by_size_menu_item): Removed.
(toggle_sort): Removed.
(create_menu): Removed creation of sort-related item.
(enable_sort): Removed.
(show_sort_order): Removed.
* src/menu.h (enable_sort): Removed.
(show_sort_order): Removed.
* src/main.cc (set_current_view): No longer call to enable_sort.
* src/settings.cc (load_settings): Don't call to show_sort_order.
(set_sort_settings): Likewise.
2009-11-17 Mario Sanchez Prada <[email protected]>
* src/operations.cc (result_code_to_message): Use the logical ID
ai_ni_memory_shortage from HAM instead the generic one.
2009-11-06 Mario Sanchez Prada <[email protected]>
* src/repo.cc (add_catalogues_cont_2): Swapped branches order to
properly check when a catalogue must be added or just enabled.
* src/confutils.cc (dist_get_actual_string): New. Always returns a
string for the distribution, returning the default one in case
nothing was specified.
(components_get_array): New. Returns a gchar** array with the list
of components, for ease of comparison when fields are not sorted.
(catalogue_uri_equal): New. Checks whether two uris are the same.
(catalogue_dist_equal): New. Checks whether two dist field are
equal.
(catalogue_n_components): New. Returns the number of components.
(catalogue_components_equal): New. Checks whether the same
components are present in two catalogues, regardless of the order.
(catalogue_equal): Use the new functions defined to better check
when two catalogues are actually equal and not just identical.
2009-12-10 David Kedves <[email protected]>
* src/apt-worker.cc: New function rootfs_set_compression_level
(cmd_install_package): Set high compression on SSU
(do_rescue): Doing the same ^
2009-12-08 David Kedves <[email protected]>
* src/util.cc:
Adjust hildon-check-version to 2.2.5
2009-12-07 David Kedves <[email protected]>
* src/util.cc:
Following a libhildon API change...
2009-11-17 Mario Sanchez Prada <[email protected]>
* src/apt-worker.cc (cmd_get_package_list): Reorder checks for
system-update flagged packages when retrieving the list.
2009-11-12 Mario Sanchez Prada <[email protected]>
* src/menu.cc (create_menu): Don't create the search button.
(enable_search): Removed, no longer needed.
* src/menu.h (enable_search): Removed, no longer needed.
* src/main.cc (set_current_view): Remove usage of enable_search.
(make_main_view): Likewise.
(make_install_section_view): Likewise.
(make_uninstall_applications_view): Likewise.
(make_search_results_view): Likewise.
2009-11-11 Mario Sanchez Prada <[email protected]>
* src/util.cc (global_tree_model_filter): New global variable to
store the GtkTreeModelFilter used in the treeviews to allow live
searching through the list.
(global_row_activated): Handle the global_tree_model_filter
variable instead of the global_list_store.
(make_global_package_list): Added a new parameter to tell the
function the GtkWidget referencing the window for the view whose
treeview is being created. Create a GtkTreeModelFilter containing
a GtkTreeModel, and create a GtkTreeView with the filter as its
model. Create a HildonLiveSearch widget and put it along with the
pannable area for the treeview inside a GtkVBox widget, which
would be returned by the function from now on after properly
setting their visibility.
(live_search_filter_func): New. Function to filter out the
packages in a treeview as instructied through the new
HildonLiveSearch widget.
(set_global_package_list): Extract the GtkListStore widget from
the GtkTreeModelFilter before proceeding.
(make_global_section_list): Update visibility of the widgets.
* src/util.h (make_global_package_list): Updated prototype.
* src/main.cc (make_install_section_view): Pass the window for the
view to the make_global_package_list function. Don't use
gtk_widget_show_all for the returned view, just gtk_widget_show.
(make_install_applications_view): Likewise.
(make_upgrade_applications_view): Likewise.
(make_uninstall_applications_view): Likewise.
(make_search_results_view): Likewise.
2009-12-04 Mario Sanchez Prada <[email protected]>
* src/operations.cc (ip_reboot_delayed): Show the
"ai_ni_device_restart_long" l10n id right after installation and
before rebooting, for OS updates only.
2009-12-02 Leonid Moiseichuk <[email protected]>
* src/apt-worker.cc (is_ssu): Add NULL-checks for the package name
and the list of ssu packages previously stored, to avoid the crash.
2009-12-02 Mario Sanchez Prada <[email protected]>
* src/apt-worker-proto.h (enum apt_command): New available
operation in the apt-worker: APTCMD_GET_FREE_SPACE.
* src/apt-worker.cc (cmd_names): New operation name
"GET_FREE_SPACE".
(handle_request): Handle the new GET_FREE_SPACE request.
(get_free_space): Moved upwards in the code.
(cmd_get_free_space): New function to retrieve free space in "/"
* src/apt-worker-client.cc (apt_worker_get_free_space): New
function, to call the new APTCMD_GET_FREE_SPACE apt-worker
command.
* src/apt-worker-client.h: New proto for
apt_worker_get_free_space.
* src/operations.cc (ip_install_one_with_space_checked): New
function to continue ip_install_one after checking free space
available.
(ip_install_one): Check free space through apt-worker.
(ip_install_cur_with_space_checked): New function to continue
ip_install_cur after checking free space available.
(ip_install_cur): Check free space through apt-worker.
* src/util.cc (get_free_space): Removed as from now on this would
no longer be useful as it would be got through the apt-worker.
(get_free_space_at_path): Removed along with get_free_space.
* src/util.h (get_free_space): Removed.
(get_free_space_at_path): Removed.
2009-11-29 Víctor Manuel Jáquez Leal <[email protected]>
* src/apt-worker.cc (maybe_bindmount_docsfs): Log the docsfs mounts
and umounts.
(maybe_bindumount_docsfs): Same.
(choose_tmpfs_for_docs): Use const for threshold and use
an iterator for choosing the fs.
(cmd_install_package): Use const string and don't free
(do_rescue): Use const string and don't free
(cmd_install_package): Fix regression.
(is_there_enough_free_space): Verify if get_free_space
doesn't return error.
2009-11-28 Víctor Manuel Jáquez Leal <[email protected]>
* src/apt-worker.cc (is_there_enough_free_space): Use the function
get_free_space when checking for the download mount point.
(do_rescue): At rescue also do the docfs hack.
(cmd_install_package): If the pkg to install is SSU do the
docsfs hack.
(maybe_bindmount_docsfs): New function.
(maybe_bindumount_docsfs): New function.
(get_free_space): New function.
(choose_tmpfs_for_docs): New function.
(cmd_install_package): Use the new is_ssu function to
check whether erase the operation record.
(is_ssu): New function to verify if the package is a SSU.
(is_there_enough_free_space): use the f_bavail for getting
the free space in disk. According to the man page, f_bavail is The
total number of free blocks available to a non-privileged process,
which seems more close to the results given by df.
(operation): sync just before do the package
installation.
(is_there_enough_free_space): sync disk prior read it free
space and log it
* src/operations.cc (ip_kill_all_and_install_delayed): Fix the
browserd path.
* src/util.cc (get_free_space_at_path): use the f_bavail for getting
the free space in disk. According to the man page, f_bavail is The
total number of free blocks available to a non-privileged process,
which seems more close to the results given by df.
(get_free_space_at_path): log the free space in rootfs.
2009-11-26 Mario Sanchez Prada <[email protected]>
* ham-killer.sh: Removed. Now all the work done by it is done from
HAM's code through the proper API, instead of using new processes.
* src/operations.cc (ip_stop_hsm_and_install_delayed): Renamed to
ip_kill_all_and_install_delayed, as this function is no longer
used to stop h-s-m only, but to kill a bunch of processes in a
desperate way to free resources for the SSU. Added more things to
kill here.
(ip_kill_all_and_install_delayed): stop alarmd service before
starting to install an SSU package.
(ip_warn_about_reboot_response): Don't kill nor stop any services
here, which should be done after the downloading phase.
(ip_install_cur): Updated name for the timeout callback.
* src/apt-worker.cc (RESCUE_RESULT_FILE): New path for the file
storing the result (1 or 0) of the last rescue operation.
(do_rescue): Always write the content of RESCUE_RESULT_FILE either
with 1 or 0 to reflect status after rescuing (success or not).
* src/ham-after-boot.c (main): Apart from checking the UFILE_BOOT
file, also check RESCUE_RESULT_FILE content to actually know when
it really makes sense to show the "SSU successfully" banner or not
* src/util.cc (run_cmd_simple): Allow passing a string with
space-separated parameters to automatically tokenize and execute
the full command through run_cmd.
(set_prestarted_apps_enabled): Removed add_log().
* debian/postinst: Remove screenshot from ~/.cache/launch
2009-11-25 Mario Sanchez Prada <[email protected]>
* src/apt-worker.cc (rescue_operation_with_dir): Replaced
"Rescuing" with "Installing".
(rescue_operation_with_dev): Likewise.
(rescue_operation_with_devnode): Likewise.
(do_rescue): Likewise.
(show_fb_text): Changed 0xF000 to 0X0000.
(show_fb_status): Likewise.
* src/util.cc (run_cmd_simple): New, just takes a full path to a
command and executes it through run_cmd. No parameters allowed.
(run_cmd_simple_cont): Tear down function for run_cmd_simple.
(stop_dsme_service): Use run_cmd_simple_cont instead of defining
its own tear down function, as it would share same implementation.
(stop_dsme_service_cont): Removed.
* ham-killer.sh: New script to make sure everything that needs to
be killed is killed by HAM, before installing a SSU.
* Makefile.am: Include ham-killer in distribution
* src/operations.cc (ip_stop_hsm_and_install_delayed): Right after
going in offline mode and before starting SSU installation, make
sure everything is killed
2009-11-23 Mario Sanchez Prada <[email protected]>
* src/apt-worker.cc (cmd_install_package): Delete the installation
journal for successfully installations only for SSU packages.
* src/operations.cc (ip_install_cur_reply): Always reboot the
device if the package being installed needs it so, regardless of
the result code, unless the user had cancelled the process on
purpose.
2009-11-23 Víctor Manuel Jáquez Leal <[email protected]>
* src/operations.cc (ip_warn_about_reboot_response): Stop the
camera-ui and the browserd services throught dsme.
(ip_warn_about_reboot_response): Send sighup to rtcom-messagin-ui
before install.
* src/apt-worker.cc (do_rescue): Honor coding style.
* src/util.cc (set_prestarted_apps_enabled): Honor coding style.
read_cmdline): new function.
(find_pid_by_name): new function.
(maybe_kill_all_by_name): new function.
* src/util.h: export the maybe_kill_all_by_name function.
2009-11-10 Mario Sanchez Prada <[email protected]>
* src/apt-worker.cc (write_available_updates_file): Check if the
package is in broken state before writing it down to the file.
2009-11-20 Mario Sanchez Prada <[email protected]>
* src/repo.cc (cat_edit_response): Don't ask the pill question
(pill_response): Removed, as no longer necessary.
(ask_the_pill_question): Removed, as no longer necessary.
2009-11-18 Mario Sanchez Prada <[email protected]>
* src/util.cc (set_prestarted_apps_enabled): New function. Allows
enabling/disabling prestarted apps in hildon destkop.
* src/util.h (set_prestarted_apps_enabled): New prototype.
* src/operations.cc (ip_warn_about_reboot_response): Call the new
function set_prestarted_apps_enabled to disable prestarted apps.
(ip_end): Always re-enable (just in case) prestarted apps.
2009-11-13 Mario Sanchez Prada <[email protected]>
* src/util.cc (close_apps): Check when the signal () function
returned SIG_ERR, since otherwise it would return the old handler,
which is never SIG_IGN for the first time it's called.
* src/apt-worker.cc (HOME_MOUNTPOINT): New define for "/home"
(cmd_download_package): Try "/home" if internal and removable
mmc's are not available for use, before falling back to rootfs.
(is_there_enough_free_space): Consider archives path not being
under "/home" when checking for enough free space both for
downloading and installation (when using rootfs for downloading,
basically).
2009-11-12 Víctor Manuel Jáquez Leal <[email protected]>
* src/util.cc (package_is_hidden): Remove the static attribute to
the function.
* src/util.h: Export the function package_is_hidden.
* src/main.cc (match_pattern): This new function look up for all
the specified search words in the package name parameter. If they
are all the function return true; otherwise return false
(search_package_list): Insert to the result package list those
packages which all the search words match with the package name
and either that package has an installed version string (this
means that it's currently installed) and it doesn't belong to the
hidden section. This filtering also use the new function
match_pattern.
(search_packages): Even it's prevented by the UI, in a precautory
action, searches are not done in the hidden section.
(search_packages_reply): Don't search in the current section list
those packages what belong to the HIDDEN section or those what
belong to ALL section and have the hidden category.
2009-11-11 Víctor Manuel Jáquez Leal <[email protected]>
* src/apt-worker.cc (encode_package_repository): When the
distribution has the form "dist/comp" and comp is NULL, the
distribution string is splited and the distribution has the first
substring and component the second. Evaluate the string and if it
is NULL print "" instead.
* src/util.cc (set_global_package_list): Instead of missusing the
parameter `installed` to know if the package is installed, we rely
on the installed_version property of the package_info object. The
explanatory comment is also fixed.
2009-11-09 Víctor Manuel Jáquez Leal <[email protected]>
* src/util.cc (package_is_hidden): New function.
(set_global_package_list): If the package is in the "user/hidden"
section, it won't be inserted in the tree-view model.
(make_global_section_list): Filter out the any section which
belongs to the HIDDEN rank.
* src/main.h (SECTION_RANK_HIDDEN): New section rank.
* src/main.cc (make_install_applications_view): If there's only
hidden packages to install, avoid to show an empty tree-view but
the "no available packages" instead.
(create_section_info): If the package belongs to the "hidden"
section its rank is set to HIDDEN and its name to "hidden"
2009-11-04 Víctor Manuel Jáquez Leal <[email protected]>
* src/apt-worker.cc (cmd_get_package_list): speed up the package
list retrieval.
2009-11-03 Mario Sanchez Prada <[email protected]>
* src/util.cc (progressbar_dialog_realized): Don't mess with
XChangeProperty at all as no NOTIFICATION hint will be finally
used for setting the window type.
(start_entertaining_user): Don't set the window type hint.
2009-11-02 Mario Sanchez Prada <[email protected]>
* src/main.cc (reset_view): Disconnect window handlers using the
view* struct through the user_data parameter, when such a piece of
data would already be invalid at that time.
2009-10-30 Mario Sanchez Prada <[email protected]>
* src/main.cc (set_current_view): Explicitly call to
allow_updating() and prevent_updating() before changing to a view,
as needed.
2009-10-23 Víctor Manuel Jáquez Leal <[email protected]>
* src/util.cc (progressbar_dialog_realized): Set the
HILDON_NOTIFICATION_TYPE in the X properties.
(start_entertaining_user): set the
GDK_WINDOW_TYPE_HINT_NOTIFICATION type; reorder the pack
parameters and hide the dialog's action area if it's not needed.
(select_package_list_with_info): dialogue now uses 350px of
high. Store the restore label in small font and
wrapped (NB#144042)
2009-10-22 Víctor Manuel Jáquez Leal <[email protected]>
* src/repo.cc (show_cat_edit_dialog): Use our
hildon_pannable_area_set_size_request_children instead of the
deprecated HILDON_SIZE_REQUEST_CHILDEN.
* src/util.cc (make_scare_user_with_legalese): same here.
2009-10-22 Víctor Manuel Jáquez Leal <[email protected]>
* src/util.cc (pannable_area_size_request): new function
(hildon_pannable_area_set_size_request_children): new function
* src/util.h: exported
hildon_pannable_area_set_size_request_children function.
2009-10-22 Víctor Manuel Jáquez Leal <[email protected]>
* src/util.cc: moved out already included headers in util.h
* src/util.h: include hildon header
2009-10-21 Mario Sanchez Prada <[email protected]>
* src/repo.cc (struct cat_dialog_closure): New variables to allow
handling when the failing catalogues dialog should be
automatically closed (no more failing catalogues present).
(cat_edit_response): Emit 'response' signal for the main dialog
when needed. Refactorized some code.
(set_cat_list): Set proper value for flag has_failing_catalogues.
(cat_response): Unref dialog, whose reference was previously
saved.
(show_catalogue_dialog): Initialize flag has_failing_catalogues to
false and save a reference to the dialog inside the closure.
2009-10-21 Víctor Manuel Jáquez Leal <[email protected]>
* src/apt-worker.cc (catalogue_name): new function.
(find_catalogue_by_info): use catalogue_name to extract the
localized name.
(encode_package_repository): don't use the ArchivoInfo string as
output because it contains the package name. Instead craft one.
2009-10-19 Mario Sanchez Prada <[email protected]>
* src/main.cc (make_upgrade_applications_view): Check
upgradeable_packages list when calling to enable_update_all()
2009-10-28 Mario Sanchez Prada <[email protected]>
* src/apt-worker-client.cc (APT_WORKER_CMD_DEFAULT): New define
for the default fallback to be used as the apt-worker command.
(set_apt_worker_cmd): New function to tell the which command will
be used to launch the apt-worker.
(start_apt_worker): Converted to a private function and removed
parameter to tell which command to use as the apt-worker. From now
on it will use that one set with set_apt_worker_cmd or the default
one.
(cancel_download): Moved from main.cc, needed for
apt_status_callback.
(apt_status_callback): Moved from main.cc, needed for the initial
start up of the apt-worker, now done from this file itself.
(maybe_start_apt_worker): New function to start the apt-worker if
and only if it was not previously started.
(call_apt_worker): Always call to maybe_start_apt_worker to ensure
it was started before communicating with it.
* src/apt-worker-client.h (set_apt_worker_cmd): Public
declaration.
(maybe_start_apt_worker): Public declaration.
* src/main.cc (cancel_download): Moved to apt-worker-client.cc.
(apt_status_callback): Moved to apt-worker-client.cc.
(maybe_init_packages_list): New function to initialize, for the
very first time, the list of packages as retrieved from the
apt-worker. Such a list will be retrieved once per execution of
HAM.
(main): Don't retrieve the package list always, just call to
maybe_init_packages_list when the --no-show parameter was not
set. Call to set_apt_worker_cmd when needed and don't start up
apt-worker before entering the main look with gtk_main.
* src/main.h (maybe_init_packages_list): Public declaration.
* src/dbus.cc (dbus_top_application): New function to handle the
"top_application" D-Bus message.
(dbus_show_check_for_updates_view): New function to handle the
"dbus_show_check_for_updates_view" D-Bus message.
(dbus_showing_check_for_updates_view): New function to handle the
"dbus_showing_check_for_updates_view" D-Bus message.
(dbus_check_for_updates): New function to handle the
"dbus_check_for_updates" D-Bus message.
(dbus_handler): Use the new functions above to handle every D-Bus
message when they arrive, instead of having all the code for each
of them directly in the "if" branches.
(dbus_install_packages): Call maybe_init_packages_list before
installing any package, to make sure everything will work.
(dbus_install_file): Call maybe_init_packages_list before
installing any file, as in dbus_install_packages.
(dbus_search_packages): If the search pattern is ok, call to
maybe_init_packages_list before performing the search.
2009-10-22 Mario Sanchez Prada <[email protected]>
* src/util.cc (make_global_section_list): Set the 'vovershoot-max'
property for the pannable area to '0' (no bouncing).
2009-10-21 Mario Sanchez Prada <[email protected]>
* src/util.cc (ICONS_GRID_ITEM_WIDTH): New define to specify the
desired width for every cell in the GtkIconView icons grid.
(make_my_icon_view): Use HILDON_MARGIN_DOUBLE (instead of TRIPLE)
to space columns in the grid and specify a fixed width for all of
them. Use ICONS_GRID_ITEM_WIDTH also to set wrap-width property
for the text cell renderer.
2009-10-16 Mario Sanchez Prada <[email protected]>
* src/util.cc (pixbuf_from_si): Removed comment which must belong
to a previous version of the code, as there's nothing about a
"programming" category right now in this function.
(make_global_section_list): Don't use g_object_ref_sink as
GtkListStore is not a subclass of GInitiallyUnowned, hence calling
to this function would add an additional (wrong) reference to the
model, as if g_object_ref was used, instead of sinking a floating
reference, which does not exist for these kind of objects.
2009-10-14 Gabriel Schulhof <[email protected]>
* debian/changelog: Document changes
* src/main.cc (section_info::section_info): Initialize
untranslated_name to NULL
(create_section_info): Save the untranslated_name separately in
the section_info structure.
* src/main.h (section_info): Add new member untranslated_name to
track the package's canonical name.
* src/util.cc (icon_view_item_activated): New function to replace
clicking on section button.
(icon_view_is_dying): Weak reference for unrefing the icon view's
model and the section_info structures stored therein.
(set_text_cr_style): Keep icon view labels sized
"SmallSystemFont".
(make_my_icon_view): Create the icon view.
(pixbuf_from_si): Logic for deciding which pixbuf to associate
with a given section
(make_global_section_list): Replace the contents of the
HildonPannableArea with the newly created icon view. The
GtkAlignment with the magic paddings is no longer necessary. In
fact, it must be absent, or it compresses the HildonPannableArea
to the point where a horizontal indicator can be seen during
panning.
2009-10-13 Víctor Manuel Jáquez Leal <[email protected]>
* src/dbus.cc (dbus_search_packages)
(dsp_with_initialized_packages): new functions.
(dbus_handler): add the handler for the new command.
* src/main.cc (show_install_applications_view): new function.
* src/main.h: export show_install_applications_view.
2009-10-02 Víctor Manuel Jáquez Leal <[email protected]>
* src/main.cc (create_section_info): Avoid call
canonicalize_section_name twice.
* src/main.cc (nicify_section_name): If the package is in "user/other"
it will belong to that rank too (NB#141426)
* src/apt-worker.cc (is_hidden_package): New function.
(cmd_get_package_list): skip uninstalled packages in the
user/hidden section. (NB#141792)
2009-09-30 Mario Sanchez Prada <[email protected]>
* src/util.cc (global_row_activated): Save global_target_path whenever
the user starts to process a package (tap on it).
(make_global_package_list): Restore treeview position if needed.
* src/main.cc (show_view): Reset globally stored GtkTreePath when
changing among views, to ensure no weird effects ever
happen. (NB#137942)
* src/util.cc (global_have_last_selection): Removed.
(global_last_selection): Removed.
(global_selection_changed): Removed.
(make_global_package_list): Don't connect the 'changed' signal on
the tree view, as that won't happen anymore with the
pannable. Removed code to force scrolling to a given position in the
treeview based in the previously stored GtkTreePath.
(set_global_package_list): Don't reset global_have_last_selection.
2009-09-29 Víctor Manuel Jáquez Leal <[email protected]>
* src/main.cc (install_operation_callback): Removed unused function.
* utils/maemo-confirm-text-user.c (add_pkgname_in_title): New function.
(main): concatenate the installed/updated package name if it exists as
a environment variable. (NB#140370)
* src/apt-worker.cc (set_pkgname_envvar): New function.
(unset_pkgname_envvar): New function.
(cmd_install_package): Set the environament variable with the package
name when the package is going to be installed. And unset it
afterwards.
2009-09-28 Víctor Manuel Jáquez Leal <[email protected]>
* src/main.cc (show_upgrade_applications_view_and_refresh_callback):
Don't set the package_list_ready flag to false keeping its
outside-defined value.
* src/util.cc (get_topmost_window): Return the main window if the top
window is the progress dialog. (NB#140765)
2009-09-25 Mario Sanchez Prada <[email protected]>
* statusbar/ham-updates-status-menu-item.c
(struct _HamUpdatesStatusMenuItemPrivate): New field 'display_state'
to store the display state across all its potential changes.
(ham_updates_status_menu_item_init): Initialize display_state.
(ham_updates_status_menu_display_event_cb): Update display_state.
(blink_icon_on): Do nothing if the screen is off. (NB#136492)