[PackageKit-commit] packagekit: Branch 'master' - 3 commits
Richard Hughes
hughsient at kemper.freedesktop.org
Mon Feb 1 03:21:47 PST 2010
NEWS | 51 ++++++++++++++++++++++++++++++++++
RELEASE | 3 +-
backends/portage/pk-backend-portage.c | 36 ++++++++++++++----------
backends/zypp/pk-backend-zypp.cpp | 23 ++++++++++++++-
configure.ac | 2 -
docs/html/pk-download.html | 1
6 files changed, 99 insertions(+), 17 deletions(-)
New commits:
commit b1785d40ec04ebde29d9fc0738773c9590ca658f
Author: Richard Hughes <richard at hughsie.com>
Date: Mon Feb 1 11:21:05 2010 +0000
Release version 0.6.1
diff --git a/NEWS b/NEWS
index d07c09f..4270838 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,54 @@
+Version 0.6.1
+~~~~~~~~~~~~~
+Released: 2010-02-01
+
+Translations:
+ - Updated translation for Chinese (Simplified) (gml520)
+ - Updated translation for Dutch (warrink)
+ - Updated translation for Polish (raven)
+ - Updated translation for Spanish (elsupergomez)
+
+Libraries:
+
+Backends:
+ - alpm: Added autoremove and HoldPkg functionality (PirateJonno)
+ - alpm: Changed search functions to allow multiple search values (Valeriy Lyasotskiy)
+ - alpm: Handle ILoveCandy config option (PirateJonno)
+ - alpm: More formatting (PirateJonno)
+ - alpm: Understand more config options (PirateJonno)
+ - aptcc: Impoved search file (Daniel Nicoletti)
+ - portage: Fix compilation and port code to new API (Fabio Erculiani)
+ - ports: Convert search params to array values (Anders F Bjorklund)
+ - urpmi: Fix backend api (Aurelien Lefebvre)
+ - yum: Emit a warning when a developer tries to use autoremove (Richard Hughes)
+ - yum: Ensure we look in all update notices for a security update. Fixes rh#526279 (Richard Hughes)
+ - yum: Include PackageKit in the list of essential packages (Richard Hughes)
+ - yum: Show a message to the user if the repo could not be reached. Fixes rh#531838 (Richard Hughes)
+ - yum: Use repo-for-developers-only when enabling rawhide (Richard Hughes)
+ - zypp: Add more features to repo_set_data (Ladislav Slezak)
+ - zypp: Partial support of multiple values for search params (Scott Reeves)
+ - zypp: Work with packagekit-glib2 (Scott Reeves)
+
+New Features:
+ - Add Kubuntu support for upgrade (Daniel Nicoletti)
+ - Add support for the 'interactive' hint in the daemon, and also sent it to the backend (Richard Hughes)
+ - Add a new message enum 'repo-for-developers-only' for repos that should not be used by users (Richard Hughes)
+ - Add sync versions of the PkPackageSack functions (Richard Hughes)
+ - Enable initial introspection support in PackageKit-glib2 (Richard Hughes)
+ - Sort the packages by name in all pkcon results (Richard Hughes)
+
+Bugfixes:
+ - Ensure we enter SETUP before we run the pre-transaction checks (Richard Hughes)
+ - Add a parent object to all the source objects to track the source role and transacton id (Richard Hughes)
+ - Ensure we set an error when the transaction is cancelled (Richard Hughes)
+ - Ensure PkProgress sends ::notify signals when properties change (Richard Hughes)
+ - When adopting a transaction ensure we set the role on the PkResults object (Richard Hughes)
+ - Show the translated role and status when using pkgenpack (Richard Hughes)
+ - Ensure that pkgenpack generates filenames without ';' embedded in them (Richard Hughes)
+ - If the user uses 'pkcon install dave.rpm' then give a useful error message (Richard Hughes)
+ - Fixed packagekit.client.install_packages() in Python bindings (Tim Waugh)
+ - Cache autoremove too in transaction_remove_packages (Valeriy Lyasotskiy)
+
Version 0.6.0
~~~~~~~~~~~~~
Released: 2010-01-2010
diff --git a/RELEASE b/RELEASE
index 4d632d9..0943b84 100644
--- a/RELEASE
+++ b/RELEASE
@@ -27,7 +27,8 @@ Bugfixes:
4. Commit changes in PackageKit git:
git commit -a -m "Release version 0.6.1"
-git tag -a -f -m "Release 0.6.1" PACKAGEKIT_0_6_1
+git tag -s -f -m "Release 0.6.1" PACKAGEKIT_0_6_1
+<gpg password>
git push --tags
git push
git push git+ssh://hughsient@git.freedesktop.org/git/packagekit
diff --git a/configure.ac b/configure.ac
index 9f80b3c..eb578c6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -37,7 +37,7 @@ AC_SUBST(PK_VERSION)
# AGE If libpackagekit can be linked into executables which can be
# built with previous versions of this library. Don't use.
LT_CURRENT=13
-LT_REVISION=0
+LT_REVISION=1
LT_AGE=0
AC_SUBST(LT_CURRENT)
AC_SUBST(LT_REVISION)
diff --git a/docs/html/pk-download.html b/docs/html/pk-download.html
index 7a37453..e627dba 100644
--- a/docs/html/pk-download.html
+++ b/docs/html/pk-download.html
@@ -69,6 +69,7 @@ Releases are normally on the first working Monday of each month.
<table>
<tr><td><b>Version</b></td><td> </td><td><b>Date</b></td></tr>
<tr><td>0.6.0</td><td></td><td>2010-01-04</td></tr>
+<tr><td>0.6.1</td><td></td><td>2010-02-01</td></tr>
</table>
<h3>
ABI Stable Versions:
commit 21799491268c94106a044ce5d2e42bc865fb5a06
Author: Fabio Erculiani <lxnay at sabayon.org>
Date: Sun Jan 31 21:56:45 2010 +0100
portage: fix compilation and port code to new API
diff --git a/backends/portage/pk-backend-portage.c b/backends/portage/pk-backend-portage.c
index d8291ba..e2ae201 100644
--- a/backends/portage/pk-backend-portage.c
+++ b/backends/portage/pk-backend-portage.c
@@ -273,52 +273,60 @@ backend_resolve (PkBackend *backend, PkBitfield filters, gchar **package_ids)
* pk_backend_search_details:
*/
static void
-backend_search_details (PkBackend *backend, PkBitfield filters, const gchar *search)
+backend_search_details (PkBackend *backend, PkBitfield filters, gchar **values)
{
gchar *filters_text;
-
+ gchar *search;
filters_text = pk_filter_bitfield_to_string (filters);
+ search = g_strjoinv ("&", values);
pk_backend_spawn_helper (spawn, BACKEND_FILE, "search-details", filters_text, search, NULL);
g_free (filters_text);
+ g_free (search);
}
/**
- * backend_search_file:
+ * backend_search_files:
*/
static void
-backend_search_file (PkBackend *backend, PkBitfield filters, const gchar *search)
+backend_search_files (PkBackend *backend, PkBitfield filters, gchar **values)
{
gchar *filters_text;
-
+ gchar *search;
filters_text = pk_filter_bitfield_to_string (filters);
+ search = g_strjoinv ("&", values);
pk_backend_spawn_helper (spawn, BACKEND_FILE, "search-file", filters_text, search, NULL);
g_free (filters_text);
+ g_free (search);
}
/**
- * pk_backend_search_group:
+ * pk_backend_search_groups:
*/
static void
-backend_search_group (PkBackend *backend, PkBitfield filters, const gchar *search)
+backend_search_groups (PkBackend *backend, PkBitfield filters, gchar **values)
{
gchar *filters_text;
-
+ gchar *search;
filters_text = pk_filter_bitfield_to_string (filters);
+ search = g_strjoinv ("&", values);
pk_backend_spawn_helper (spawn, BACKEND_FILE, "search-group", filters_text, search, NULL);
g_free (filters_text);
+ g_free (search);
}
/**
- * backend_search_name:
+ * backend_search_names:
*/
static void
-backend_search_name (PkBackend *backend, PkBitfield filters, const gchar *search)
+backend_search_names (PkBackend *backend, PkBitfield filters, gchar **values)
{
gchar *filters_text;
-
+ gchar *search;
filters_text = pk_filter_bitfield_to_string (filters);
+ search = g_strjoinv ("&", values);
pk_backend_spawn_helper (spawn, BACKEND_FILE, "search-name", filters_text, search, NULL);
g_free (filters_text);
+ g_free (search);
}
/**
@@ -417,9 +425,9 @@ PK_BACKEND_OPTIONS (
backend_resolve, /* resolve */
NULL, /* rollback */
backend_search_details, /* search_details */
- backend_search_file, /* search_file */
- backend_search_group, /* search_group */
- backend_search_name, /* search_name */
+ backend_search_files, /* search_file */
+ backend_search_groups, /* search_group */
+ backend_search_names, /* search_name */
backend_update_packages, /* update_packages */
backend_update_system, /* update_system */
NULL, /* what_provides */
commit c032d12ab1a438fcc87ae1bc6cabfff734b04ea1
Author: Scott Reeves <sreeves at novell.com>
Date: Fri Jan 29 14:33:04 2010 -0700
zypp: add more features to repo_set_data.
patch from Ladislav Slezak
diff --git a/backends/zypp/pk-backend-zypp.cpp b/backends/zypp/pk-backend-zypp.cpp
index c22878b..a6b00b3 100644
--- a/backends/zypp/pk-backend-zypp.cpp
+++ b/backends/zypp/pk-backend-zypp.cpp
@@ -1670,6 +1670,27 @@ backend_repo_set_data_thread (PkBackend *backend)
}
manager.modifyRepository (repo_id, repo);
+ }else if (g_ascii_strcasecmp (parameter, "keep") == 0) {
+ repo = manager.getRepositoryInfo (repo_id);
+
+ if (g_ascii_strcasecmp (value, "true") == 0) {
+ repo.setKeepPackages (TRUE);
+ }else if (g_ascii_strcasecmp (value, "false") == 0) {
+ repo.setKeepPackages (FALSE);
+ }else {
+ pk_backend_message (backend, PK_MESSAGE_ENUM_PARAMETER_INVALID, "Keep downloaded packages: Enter true or false");
+ bReturn = FALSE;
+ }
+
+ manager.modifyRepository (repo_id, repo);
+ }else if (g_ascii_strcasecmp (parameter, "url") == 0) {
+ repo = manager.getRepositoryInfo (repo_id);
+ repo.setBaseUrl (zypp::Url(value));
+ manager.modifyRepository (repo_id, repo);
+ }else if (g_ascii_strcasecmp (parameter, "name") == 0) {
+ repo = manager.getRepositoryInfo (repo_id);
+ repo.setName(value);
+ manager.modifyRepository (repo_id, repo);
}else if (g_ascii_strcasecmp (parameter, "prio") == 0) {
repo = manager.getRepositoryInfo (repo_id);
gint prio = 0;
@@ -1703,7 +1724,7 @@ backend_repo_set_data_thread (PkBackend *backend)
}
} else {
- pk_backend_error_code (backend, PK_ERROR_ENUM_NOT_SUPPORTED, "Valid parameters for set_repo_data are remove/add/refresh/prio");
+ pk_backend_error_code (backend, PK_ERROR_ENUM_NOT_SUPPORTED, "Valid parameters for set_repo_data are remove/add/refresh/prio/keep/url/name");
bReturn = FALSE;
}
More information about the PackageKit-commit
mailing list