hildon-application-manager:mainline.git
8 years agoFix: hildon api renamed, following the change release_2.2.54-new
kedz [Mon, 7 Dec 2009 13:02:18 +0000 (14:02 +0100)]
Fix: hildon api renamed, following the change

8 years agoRelease 2.2.54 release_2.2.54
Mario Sanchez Prada [Fri, 4 Dec 2009 14:57:16 +0000 (15:57 +0100)]
Release 2.2.54

8 years agoDon't show system-update packages in "Downloads" view (NB#147133)
Mario Sanchez Prada [Tue, 17 Nov 2009 16:21:17 +0000 (17:21 +0100)]
Don't show system-update packages in "Downloads" view (NB#147133)

* src/apt-worker.cc (cmd_get_package_list): Reorder checks for
system-update flagged packages when retrieving the list.

8 years agoRemove the "Search" button from HAM menu.
Mario Sanchez Prada [Thu, 12 Nov 2009 15:58:51 +0000 (16:58 +0100)]
Remove the "Search" button from HAM menu.

* 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.

8 years agoAdd live search support with the HildonLiveSearch widget (NB#140248)
Mario Sanchez Prada [Wed, 11 Nov 2009 17:30:59 +0000 (18:30 +0100)]
Add live search support with the HildonLiveSearch widget (NB#140248)

* 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.

8 years agoPrepare 2.2.54
Mario Sanchez Prada [Fri, 4 Dec 2009 08:48:45 +0000 (09:48 +0100)]
Prepare 2.2.54

8 years agoRelease 2.2.53 release_2.2.53
Mario Sanchez Prada [Fri, 4 Dec 2009 08:47:49 +0000 (09:47 +0100)]
Release 2.2.53

8 years agoShow ai_ni_device_restart_long string after SSU (NB#146010)
Mario Sanchez Prada [Thu, 12 Nov 2009 08:33:26 +0000 (09:33 +0100)]
Show ai_ni_device_restart_long string after SSU (NB#146010)

* 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.

8 years agoPrepare 2.2.53
Mario Sanchez Prada [Wed, 2 Dec 2009 12:27:02 +0000 (13:27 +0100)]
Prepare 2.2.53

8 years agoRelease 2.2.52 release_2.2.52
Mario Sanchez Prada [Wed, 2 Dec 2009 12:24:29 +0000 (13:24 +0100)]
Release 2.2.52

8 years agoRelease 2.2.51 release_2.2.51
Mario Sanchez Prada [Wed, 2 Dec 2009 12:21:52 +0000 (13:21 +0100)]
Release 2.2.51

8 years agoRelease 2.2.50 release_2.2.50
Mario Sanchez Prada [Wed, 2 Dec 2009 12:18:38 +0000 (13:18 +0100)]
Release 2.2.50

8 years agoFixes crash in apt-worker when no SSU package available (NB#149029)
Leonid Moiseichuk [Wed, 2 Dec 2009 12:11:57 +0000 (13:11 +0100)]
Fixes crash in apt-worker when no SSU package available (NB#149029)

* 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.

8 years agoCheck free space through apt-worker from operations.cc
Mario Sanchez Prada [Wed, 2 Dec 2009 09:15:37 +0000 (10:15 +0100)]
Check free space through apt-worker from operations.cc

* 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.

8 years agoRemoved get_free_space functions from util.[hc]
Mario Sanchez Prada [Wed, 2 Dec 2009 08:58:58 +0000 (09:58 +0100)]
Removed get_free_space functions from util.[hc]

* 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.

8 years agoAdded API in apt-worker-client for APTCMD_GET_FREE_SPACE
Mario Sanchez Prada [Wed, 2 Dec 2009 08:51:50 +0000 (09:51 +0100)]
Added API in apt-worker-client for APTCMD_GET_FREE_SPACE

* 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.

8 years agoAdded new apt-worker operation: APTCMD_GET_FREE_SPACE
Mario Sanchez Prada [Wed, 2 Dec 2009 08:48:38 +0000 (09:48 +0100)]
Added new apt-worker operation: APTCMD_GET_FREE_SPACE

* 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 "/"

8 years agoPrepare 2.2.50
Víctor Manuel Jáquez Leal [Sun, 29 Nov 2009 15:55:03 +0000 (16:55 +0100)]
Prepare 2.2.50

8 years agoRelease 2.2.49-1 release_2.2.49-1
Víctor Manuel Jáquez Leal [Sun, 29 Nov 2009 15:52:28 +0000 (16:52 +0100)]
Release 2.2.49-1

8 years agoRelease 2.2.48-1 release_2.2.48-1
Víctor Manuel Jáquez Leal [Sun, 29 Nov 2009 15:50:26 +0000 (16:50 +0100)]
Release 2.2.48-1

8 years agoUse /home rather than /home/user for docfs
Víctor Manuel Jáquez Leal [Sun, 29 Nov 2009 15:45:54 +0000 (16:45 +0100)]
Use /home rather than /home/user for docfs

* src/apt-worker.cc: Use /home rather than /home/user
  for docfs.

8 years agoLog the docsfs mounts and umounts
Víctor Manuel Jáquez Leal [Sun, 29 Nov 2009 14:02:31 +0000 (15:02 +0100)]
Log the docsfs mounts and umounts

* src/apt-worker.cc (maybe_bindmount_docsfs): Log the docsfs mounts and
  umounts.
  (maybe_bindumount_docsfs): Same.

8 years agoUse static const strings for the mount locations.
Víctor Manuel Jáquez Leal [Sun, 29 Nov 2009 13:56:30 +0000 (14:56 +0100)]
Use static const strings for the mount locations.

* src/apt-worker.cc (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

8 years agoFree allocated string.
Víctor Manuel Jáquez Leal [Sat, 28 Nov 2009 19:53:48 +0000 (20:53 +0100)]
Free allocated string.

* src/apt-worker.cc (cmd_install_package): Free allocated string.
  (do_rescue): Free allocated string.

8 years agoFix regression.
Víctor Manuel Jáquez Leal [Sat, 28 Nov 2009 19:49:41 +0000 (20:49 +0100)]
Fix regression.

* src/apt-worker.cc (cmd_install_package): Fix regression.

8 years agoVerify if get_free_space doesn't return error
Víctor Manuel Jáquez Leal [Sat, 28 Nov 2009 18:41:37 +0000 (19:41 +0100)]
Verify if get_free_space doesn't return error

* src/apt-worker.cc (is_there_enough_free_space): Verify if get_free_space
  doesn't return error.

8 years agoPrepare 2.2.50
Víctor Manuel Jáquez Leal [Sat, 28 Nov 2009 15:51:22 +0000 (16:51 +0100)]
Prepare 2.2.50

8 years agoRelease 2.2.49 release_2.2.49a
Víctor Manuel Jáquez Leal [Sat, 28 Nov 2009 15:44:49 +0000 (16:44 +0100)]
Release 2.2.49

8 years agoRelease 2.2.48 release_2.2.48a
Víctor Manuel Jáquez Leal [Sat, 28 Nov 2009 15:38:08 +0000 (16:38 +0100)]
Release 2.2.48

8 years agoRevert "Bind mount the doc dirs before doing the installations (this fixes the Doc...
Víctor Manuel Jáquez Leal [Sat, 28 Nov 2009 15:06:30 +0000 (16:06 +0100)]
Revert "Bind mount the doc dirs before doing the installations (this fixes the Doc packages need unnecessary space on the device during SSU problem)"

This reverts commit eccf79ae295f9802565b24156323be2abf3b863b.

Conflicts:

src/apt-worker.cc

8 years agoUse the function get_free_space when checking for download
Víctor Manuel Jáquez Leal [Sat, 28 Nov 2009 14:14:38 +0000 (15:14 +0100)]
Use the function get_free_space when checking for download

* src/apt-worker.cc (is_there_enough_free_space): Use the function
  get_free_space when checking for the download mount point.

8 years agoAt rescue also do the docfs hack.
Víctor Manuel Jáquez Leal [Sat, 28 Nov 2009 14:12:35 +0000 (15:12 +0100)]
At rescue also do the docfs hack.

* src/apt-worker.cc (do_rescue): At rescue also do the docfs hack.

8 years agoIf the pkg to install is SSU do the docsfs hack.
Víctor Manuel Jáquez Leal [Sat, 28 Nov 2009 14:11:19 +0000 (15:11 +0100)]
If the pkg to install is SSU do the docsfs hack.

* src/apt-worker.cc (cmd_install_package): If the pkg to install is SSU do the
  docsfs hack.

8 years agoSeveral new functions for bind mounting.
Víctor Manuel Jáquez Leal [Sat, 28 Nov 2009 14:09:17 +0000 (15:09 +0100)]
Several new functions for bind mounting.

* src/apt-worker.cc (maybe_bindmount_docsfs): New function.
  (maybe_bindumount_docsfs): New function.
  (get_free_space): New function.
  (choose_tmpfs_for_docs): New function.

8 years agoErase an already done include.
Víctor Manuel Jáquez Leal [Sat, 28 Nov 2009 13:42:39 +0000 (14:42 +0100)]
Erase an already done include.

8 years agoUse the new is_ssu function.
Víctor Manuel Jáquez Leal [Sat, 28 Nov 2009 13:41:58 +0000 (14:41 +0100)]
Use the new is_ssu function.

* src/apt-worker.cc (cmd_install_package): Use the new is_ssu function to
  check whether erase the operation record.

8 years agoNew function to verify if the package is a SSU.
Víctor Manuel Jáquez Leal [Sat, 28 Nov 2009 13:40:46 +0000 (14:40 +0100)]
New function to verify if the package is a SSU.

* src/apt-worker.cc (is_ssu): New function to verify if the package is a SSU.

8 years agoFix the browserd path.
Víctor Manuel Jáquez Leal [Sat, 28 Nov 2009 12:08:09 +0000 (13:08 +0100)]
Fix the browserd path.

* src/operations.cc (ip_kill_all_and_install_delayed): Fix the browserd path.

8 years agouse f_bavail for getting the free space
Víctor Manuel Jáquez Leal [Thu, 26 Nov 2009 19:02:04 +0000 (20:02 +0100)]
use f_bavail for getting the free space

* 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.

8 years agouse f_bavail for getting the free space
Víctor Manuel Jáquez Leal [Thu, 26 Nov 2009 19:01:20 +0000 (20:01 +0100)]
use f_bavail for getting the free space

* src/apt-worker.cc (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.

8 years agolog the free space in rootfs
Víctor Manuel Jáquez Leal [Thu, 26 Nov 2009 17:28:59 +0000 (18:28 +0100)]
log the free space in rootfs

* src/util.cc (get_free_space_at_path): log the free space in rootfs.

8 years agosync just before do the package installation
Víctor Manuel Jáquez Leal [Thu, 26 Nov 2009 17:28:11 +0000 (18:28 +0100)]
sync just before do the package installation

* src/apt-worker.cc (operation): sync just before do the package
  installation.

8 years agosync disk prior read it free space and log it
Víctor Manuel Jáquez Leal [Thu, 26 Nov 2009 17:26:48 +0000 (18:26 +0100)]
sync disk prior read it free space and log it

* src/apt-worker.cc (is_there_enough_free_space): sync disk prior read it free
  space and log it

8 years agoRelease 1:2.2.47 release_2.2.47
David Kedves [Fri, 27 Nov 2009 15:26:09 +0000 (16:26 +0100)]
Release 1:2.2.47

8 years agoRelease 1:2.2.46 release_2.2.46
David Kedves [Fri, 27 Nov 2009 15:24:40 +0000 (16:24 +0100)]
Release 1:2.2.46

8 years agoBind mount the doc dirs before doing the installations (this fixes the Doc packages...
David Kedves [Fri, 27 Nov 2009 15:23:50 +0000 (16:23 +0100)]
Bind mount the doc dirs before doing the installations (this fixes the Doc packages need unnecessary space on the device during SSU problem)

8 years agoPrepare 2.2.46
Mario Sanchez Prada [Thu, 26 Nov 2009 17:14:12 +0000 (18:14 +0100)]
Prepare 2.2.46

8 years agoRelease 2.2.45 release_2.2.45
Mario Sanchez Prada [Thu, 26 Nov 2009 17:12:16 +0000 (18:12 +0100)]
Release 2.2.45

8 years agoRelease 2.2.44 release_2.2.44
Mario Sanchez Prada [Thu, 26 Nov 2009 17:10:39 +0000 (18:10 +0100)]
Release 2.2.44

8 years agoPrepare 2.2.44
Mario Sanchez Prada [Thu, 26 Nov 2009 16:47:40 +0000 (17:47 +0100)]
Prepare 2.2.44

8 years agoRelease 2.2.43 release_2.2.43
Mario Sanchez Prada [Thu, 26 Nov 2009 16:46:37 +0000 (17:46 +0100)]
Release 2.2.43

8 years agoRemoved unneeded (and confusing) output line from logs ssu-fixes-20091126
Mario Sanchez Prada [Thu, 26 Nov 2009 15:50:06 +0000 (16:50 +0100)]
Removed unneeded (and confusing) output line from logs

* src/util.cc (set_prestarted_apps_enabled): Removed add_log().

8 years agoDelete HAM screenshot on post-installation
Mario Sanchez Prada [Thu, 26 Nov 2009 15:39:43 +0000 (16:39 +0100)]
Delete HAM screenshot on post-installation

* debian/postinst: Remove screenshot from ~/.cache/launch

8 years agoStop alarmd before installing an SSU
Mario Sanchez Prada [Thu, 26 Nov 2009 15:18:09 +0000 (16:18 +0100)]
Stop alarmd before installing an SSU

* src/operations.cc (ip_kill_all_and_install_delayed): stop alarmd
service before starting to install an SSU package.

8 years agoMake run_cmd_simple more powerful
Mario Sanchez Prada [Thu, 26 Nov 2009 15:17:23 +0000 (16:17 +0100)]
Make run_cmd_simple more powerful

* 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.

8 years agoBear in mind result of rescue mode to show SSU banner on boot
Mario Sanchez Prada [Thu, 26 Nov 2009 13:10:36 +0000 (14:10 +0100)]
Bear in mind result of rescue mode to show SSU banner on boot

* 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

8 years agoGet rid of the ham-killer.sh script
Mario Sanchez Prada [Thu, 26 Nov 2009 13:05:59 +0000 (14:05 +0100)]
Get rid of the ham-killer.sh script

* 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_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.

8 years agoCall the "ham-killer.sh" script before starting the SSU ssu-fixes-20091125
Mario Sanchez Prada [Wed, 25 Nov 2009 17:25:45 +0000 (18:25 +0100)]
Call the "ham-killer.sh" script before starting the SSU

* 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

8 years agoNew script to kill processes which could interfere with SSU
Mario Sanchez Prada [Wed, 25 Nov 2009 17:20:59 +0000 (18:20 +0100)]
New script to kill processes which could interfere with SSU

* 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

8 years agoAdd simple API to run commands with no parameters
Mario Sanchez Prada [Wed, 25 Nov 2009 17:18:56 +0000 (18:18 +0100)]
Add simple API to run commands with no parameters

* 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.

8 years agoUse black color instead of red for the rescue mode
Mario Sanchez Prada [Wed, 25 Nov 2009 17:15:21 +0000 (18:15 +0100)]
Use black color instead of red for the rescue mode

* src/apt-worker.cc (show_fb_text): Changed 0xF000 to 0X0000.
(show_fb_status): Likewise.

8 years agoReplace the "rescue" messages for more optimistic one ("installing")
Mario Sanchez Prada [Wed, 25 Nov 2009 17:14:24 +0000 (18:14 +0100)]
Replace the "rescue" messages for more optimistic one ("installing")

* 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.

8 years agoReboot and rescue installation always when SSU failed to install ssu-fixes-20091124
Mario Sanchez Prada [Mon, 23 Nov 2009 18:52:39 +0000 (19:52 +0100)]
Reboot and rescue installation always when SSU failed to install

* 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.

8 years agoDon't write broken packages in availables_update file (NB#145703)
Mario Sanchez Prada [Tue, 10 Nov 2009 11:19:39 +0000 (12:19 +0100)]
Don't write broken packages in availables_update file (NB#145703)

* src/apt-worker.cc (write_available_updates_file): Check if the
package is in broken state before writing it down to the file.

8 years agoSend sighup to rtcom-messagin-ui before install
Víctor Manuel Jáquez Leal [Mon, 23 Nov 2009 19:31:59 +0000 (20:31 +0100)]
Send sighup to rtcom-messagin-ui before install

* src/operations.cc (ip_warn_about_reboot_response):  Send sighup to
  rtcom-messagin-ui before install.

8 years agoSend a signal to all the process with the same name
Víctor Manuel Jáquez Leal [Mon, 23 Nov 2009 19:31:07 +0000 (20:31 +0100)]
Send a signal to all the process with the same name

* src/util.cc (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.

8 years agoHonor coding style.
Víctor Manuel Jáquez Leal [Mon, 23 Nov 2009 14:25:27 +0000 (15:25 +0100)]
Honor coding style.

* src/apt-worker.cc (do_rescue): Honor coding style.

8 years agoHonor coding style.
Víctor Manuel Jáquez Leal [Mon, 23 Nov 2009 14:24:10 +0000 (15:24 +0100)]
Honor coding style.

* src/util.cc (set_prestarted_apps_enabled): Honor coding style.

8 years agostop camera-ui and browserd services
Víctor Manuel Jáquez Leal [Mon, 23 Nov 2009 10:27:58 +0000 (11:27 +0100)]
stop camera-ui and browserd services

* src/operations.cc (ip_warn_about_reboot_response): Stop the camera-ui and
  the browserd services throught dsme.

8 years agoPrepare 2.2.43
Mario Sanchez Prada [Fri, 20 Nov 2009 11:54:51 +0000 (12:54 +0100)]
Prepare 2.2.43

8 years agoRelease 2.2.42-2 release_2.2.42-2
Mario Sanchez Prada [Fri, 20 Nov 2009 11:53:47 +0000 (12:53 +0100)]
Release 2.2.42-2

8 years agoRemove possibility of enabling red-pill mode from UI (NB#133696)
Mario Sanchez Prada [Fri, 20 Nov 2009 11:08:48 +0000 (12:08 +0100)]
Remove possibility of enabling red-pill mode from UI (NB#133696)

* 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.

8 years agoKill also prestarted apps through osso-app-killer (NB#146719)
Mario Sanchez Prada [Wed, 18 Nov 2009 13:28:41 +0000 (14:28 +0100)]
Kill also prestarted apps through osso-app-killer (NB#146719)

* 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.

8 years agoPrepare 2.2.43
Víctor Manuel Jáquez Leal [Thu, 19 Nov 2009 11:08:53 +0000 (12:08 +0100)]
Prepare 2.2.43

8 years agoRelease 2.2.42-1 release_2.2.42-1
Víctor Manuel Jáquez Leal [Thu, 19 Nov 2009 10:49:46 +0000 (11:49 +0100)]
Release 2.2.42-1

8 years agoRevert "Show ai_ni_device_restart_long string after SSU (NB#146010)"
Víctor Manuel Jáquez Leal [Thu, 19 Nov 2009 09:33:50 +0000 (10:33 +0100)]
Revert "Show ai_ni_device_restart_long string after SSU (NB#146010)"

This reverts commit 3c5136620753cdbfa15247d0c232050061e70027.

8 years agoPrepare 2.2.43
Mario Sanchez Prada [Fri, 13 Nov 2009 18:12:37 +0000 (19:12 +0100)]
Prepare 2.2.43

8 years agoRelease 2.2.42 release_2.2.42
Mario Sanchez Prada [Fri, 13 Nov 2009 18:10:26 +0000 (19:10 +0100)]
Release 2.2.42

8 years agoFix close_apps() to work properly since the first time (NB#146719)
Mario Sanchez Prada [Fri, 13 Nov 2009 17:49:17 +0000 (18:49 +0100)]
Fix close_apps() to work properly since the first time (NB#146719)

* 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.

8 years agoAdd /home as a fallback before using rootfs to download (NB#146669)
Mario Sanchez Prada [Wed, 2 Sep 2009 11:25:27 +0000 (13:25 +0200)]
Add /home as a fallback before using rootfs to download (NB#146669)

* 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).

8 years agoShow ai_ni_device_restart_long string after SSU (NB#146010)
Mario Sanchez Prada [Thu, 12 Nov 2009 08:33:26 +0000 (09:33 +0100)]
Show ai_ni_device_restart_long string after SSU (NB#146010)

* 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.

8 years agoPrepare 2.2.42
Mario Sanchez Prada [Thu, 12 Nov 2009 16:25:40 +0000 (17:25 +0100)]
Prepare 2.2.42

8 years agoRelease 2.2.41-2 release_2.2.41-2
Mario Sanchez Prada [Thu, 12 Nov 2009 16:23:36 +0000 (17:23 +0100)]
Release 2.2.41-2

8 years agoFilter out the hidden pkgs from the full search
Víctor Manuel Jáquez Leal [Thu, 12 Nov 2009 16:01:37 +0000 (17:01 +0100)]
Filter out the hidden pkgs from the full search

* src/main.cc (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.

8 years agoDon't do name search in the hidden rank
Víctor Manuel Jáquez Leal [Thu, 12 Nov 2009 12:32:55 +0000 (13:32 +0100)]
Don't do name search in the hidden rank

* src/main.cc (search_packages): Even it's prevented by the UI, in a
  precautory action, searches are not done in the hidden section.

8 years agoFilter out the hidden pkgs from the names search
Víctor Manuel Jáquez Leal [Thu, 12 Nov 2009 12:30:15 +0000 (13:30 +0100)]
Filter out the hidden pkgs from the names search

* src/main.cc (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.

8 years agoNew static function match_pattern
Víctor Manuel Jáquez Leal [Thu, 12 Nov 2009 12:26:13 +0000 (13:26 +0100)]
New static function match_pattern

* 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

8 years agoExport the function package_is_hidden
Víctor Manuel Jáquez Leal [Thu, 12 Nov 2009 12:23:42 +0000 (13:23 +0100)]
Export the function package_is_hidden

* src/util.cc (package_is_hidden): Remove the static attribute to the
  function.
* src/util.h: Export the function package_is_hidden.

8 years agoPrepare 2.2.42
Mario Sanchez Prada [Wed, 11 Nov 2009 21:22:18 +0000 (22:22 +0100)]
Prepare 2.2.42

8 years agoRelease 2.2.41-1 release_2.2.41-1
Mario Sanchez Prada [Wed, 11 Nov 2009 21:19:27 +0000 (22:19 +0100)]
Release 2.2.41-1

8 years agoEnhance catalogue data extraction
Víctor Manuel Jáquez Leal [Wed, 11 Nov 2009 20:25:30 +0000 (21:25 +0100)]
Enhance catalogue data extraction

* 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.

8 years agoClearify the comment
Víctor Manuel Jáquez Leal [Wed, 11 Nov 2009 20:21:50 +0000 (21:21 +0100)]
Clearify the comment

* src/apt-worker.cc (encode_package_repository): make more clear a explanatory
  comment.

8 years agoDon't print (null) in catalogue string
Víctor Manuel Jáquez Leal [Wed, 11 Nov 2009 20:20:29 +0000 (21:20 +0100)]
Don't print (null) in catalogue string

* src/apt-worker.cc (encode_package_repository): Evaluate the string and if it
  is NULL print "" instead.

8 years agofix the installed package selector for hidden pkgs
Víctor Manuel Jáquez Leal [Wed, 11 Nov 2009 18:30:03 +0000 (19:30 +0100)]
fix the installed package selector for hidden pkgs

Regression fix for NB#145287

* 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.

8 years agoPrepare 2.2.42
Mario Sanchez Prada [Wed, 11 Nov 2009 10:41:05 +0000 (11:41 +0100)]
Prepare 2.2.42

8 years agoRelease 2.2.41 release_2.2.41
Mario Sanchez Prada [Wed, 11 Nov 2009 10:35:42 +0000 (11:35 +0100)]
Release 2.2.41

8 years agoIf only hidden packages show unavailable message
Víctor Manuel Jáquez Leal [Mon, 9 Nov 2009 17:57:27 +0000 (18:57 +0100)]
If only hidden packages show unavailable message

* 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.

8 years agoDon't display the "hidden" section.
Víctor Manuel Jáquez Leal [Mon, 9 Nov 2009 16:08:52 +0000 (17:08 +0100)]
Don't display the "hidden" section.

* src/util.cc (make_global_section_list): Filter out the any section which
  belongs to the HIDDEN rank.

8 years agoCreate a new & artificial section for hidden pkgs
Víctor Manuel Jáquez Leal [Mon, 9 Nov 2009 16:06:10 +0000 (17:06 +0100)]
Create a new & artificial section for hidden pkgs

* src/main.h (SECTION_RANK_HIDDEN): New section rank.
* src/main.cc (create_section_info): If the package belongs to the "hidden"
  section its rank is set to HIDDEN and its name to "hidden"

8 years agoDon't display the packages in "user/hidden" section.
Víctor Manuel Jáquez Leal [Mon, 9 Nov 2009 15:57:12 +0000 (16:57 +0100)]
Don't display  the packages in "user/hidden" section.

* 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.