[PackageKit-commit] packagekit: Branch 'master' - 6 commits

Richard Hughes hughsient at kemper.freedesktop.org
Thu May 6 02:09:58 PDT 2010


 NEWS                                    |   77 ++++++++++++++++++
 contrib/cron/packagekit-background      |    8 +
 contrib/cron/packagekit-background.cron |   11 +-
 docs/html/pk-download.html              |    4 
 po/pa.po                                |  132 ++++++++++++++++++--------------
 src/pk-backend.c                        |   18 ++--
 6 files changed, 179 insertions(+), 71 deletions(-)

New commits:
commit 7a82596532ab572d0133cd2b90068fdb4e474acb
Author: Richard Hughes <richard at hughsie.com>
Date:   Thu May 6 10:08:53 2010 +0100

    Release version 0.6.4

diff --git a/NEWS b/NEWS
index 727c04b..ccfa549 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,80 @@
+Version 0.6.4
+~~~~~~~~~~~~~
+Released: 2010-05-06
+
+Notes:
+ - This release is the first to support a relocatable root, which may be useful
+   to LTSP and some virtualised environments. It's not yet well tested, and
+   early adopters are encouraged to joint the mailing list.
+
+Translations:
+ - Updates to Danish (da) translation (kristho)
+ - Updates to Dutch (Flemish) (nl) translation (warrink)
+ - Updates to Indonesian (id) translation (dichi)
+ - Updates to Panjabi (Punjabi) (pa) translation (aalam)
+ - Updates to Polish (pl) translation (raven)
+ - Updates to Portuguese (pt) translation (ruigo)
+ - Updates to Serbian (Latin) (sr at latin) translation (kmilos)
+ - Updates to Serbian (sr) translation (kmilos)
+ - Updates to Spanish (Castilian) (es) translation (logan)
+ - Updates to Ukrainian (uk) translation (yurchor)
+
+Libraries:
+ - glib: Add C accessors for PkMessage (Richard Hughes)
+ - glib: Add some more C accessors for PkPackage (Richard Hughes)
+
+Backends:
+ - apt: Fix a spelling error in the config file prompt message (Warren Turkal)
+ - entropy: Catch DependenciesNotRemovable exception during reverse dependencies calculation (Fabio Erculiani)
+ - opkg: Include stdio.h before opkg.h to make newer gcc happy (Koen Kooi)
+ - box: Updated backend to fix compile (Grzegorz Dabrowski)
+ - yum: Catch exceptions.IOError whenever we do a low-level yum call. Fixes rh#577549 (Richard Hughes)
+ - yum: Do not abort if the package-id is not unique in the reposet (Richard Hughes)
+ - yum: Ensure the lock failure message is proper unicode. Fixes rh#585620 (Richard Hughes)
+ - yum: Ensure we catch the exception if there are no groups. Fixes rh#587196 (Richard Hughes)
+ - yum: Ensure we create /var/cache/PackageKit if the user nukes it and then tries to re-create the comps cache (Richard Hughes)
+ - yum: Ensure we force a cache update if the comps groups cannot be loaded (Richard Hughes)
+ - yum: Get the correct state for each update. Fixes rh#574658 (Richard Hughes)
+ - yum: Move the list of infrastructure packages that are updated first to the config file (Richard Hughes)
+ - yum: Move the list of system packages that cannot be removed to the config file (Richard Hughes)
+ - yum: Ship a standalone version of licenses.txt for future code (Richard Hughes)
+ - yum: Sync with libzif upstream which offers a pretty stellar performance increase (Richard Hughes)
+ - yum: Use zif to get the update lists if UseZif is enabled (Richard Hughes)
+ - zypp: Attempt to improve backend_find_packages (Michael Andres)
+ - zypp: Cleanup a certain amount of superstitious coding (Michael Meeks)
+ - zypp: cleanup 'resolve' filtering code (Michael Meeks)
+ - zypp: Factor pool item change notification out into zypp_backend_pool_item_notify (Michael Meeks)
+ - zypp: Fix leaks in GetRequires, resolve and what_provides (Michael Meeks)
+ - zypp: Fix memory leaks (Michael Andres)
+ - zypp: Fix multiple bugs in Resolve() (Michael Meeks)
+ - zypp: Get the final 'finished' signal right on remove (Michael Meeks)
+ - zypp: Implement simulated package removal (Michael Meeks)
+ - zypp: Improve exception handling (Michael Meeks)
+ - zypp: Introduce a pseudo-architecture "source" to distinguish source packages from binary ones (Michael Meeks)
+ - zypp: Let libzypp determine whether a patch is needed (Michael Andres)
+ - zypp: Share the version / architecture comparison code into zypp_ver_and_arch_equal (Michael Meeks)
+ - zypp: Tweak filtering to ensure that we never emit both states even if a package is also re-installable (Michael Meeks)
+
+New Features:
+ - Allow clients to request a relocatable root, but only with admin authority (Richard Hughes)
+ - Add hint:simulate boolean on the backend, set for all simulation methods, to increase code re-use (Michael Meeks)
+ - Add maximum wait time limit to cron checks (Marko Myllynen)
+ - Add support for the 'frontend-socket' hint and pass it to backends (Richard Hughes)
+ - Ported PackageKit to Haiku (Grzegorz Dabrowski)
+ - Send a message when other updates are held back so we can add a note to the GUI tool (Richard Hughes)
+
+Bugfixes:
+ - Correctly fallback by checking the transaction role, not the backend role. Fixes fd#27527 (Richard Hughes)
+ - Don't return from SetProxy() before we've got the authentication result (Richard Hughes)
+ - Downgrade required autoconf version (Michael Meeks)
+ - Ensure the daemon emits Message() signals when replaying the cached GetUpdates data (Richard Hughes)
+ - Fix parallel-build snafu wrt. MOC generated files (Michael Meeks)
+ - Fix system name variable name inconsistency in the cron script (Marko Myllynen)
+ - Fix the permission of /etc/sysconfig/packagekit-background to be non-executable (Richard Hughes)
+ - Fix up three typos in translated strings (Yuri Chornoivan)
+ - If http_proxy or ftp_proxy are set in the environment, use them in pkcon (Richard Hughes)
+ - Remove the ruck client, it's been broken for the last few releases (Richard Hughes)
+
 Version 0.6.3
 ~~~~~~~~~~~~~
 Released: 2010-03-29
diff --git a/docs/html/pk-download.html b/docs/html/pk-download.html
index 6a8de04..346c1d1 100644
--- a/docs/html/pk-download.html
+++ b/docs/html/pk-download.html
@@ -68,6 +68,7 @@ Releases are normally on the first working Monday of each month.
 </p>
 <table>
 <tr><td><b>Version</b></td><td>&nbsp;&nbsp;</td><td><b>Date</b></td></tr>
+<tr><td>0.6.4</td><td></td><td>2010-05-06</td></tr>
 <tr><td>0.6.3</td><td></td><td>2010-03-29</td></tr>
 <tr><td>0.6.2</td><td></td><td>2010-03-01</td></tr>
 <tr><td>0.6.1</td><td></td><td>2010-02-01</td></tr>
commit 446c63d971fe04df149bf74dcc2363a654e7db08
Author: Richard Hughes <richard at hughsie.com>
Date:   Wed May 5 21:26:46 2010 +0100

    trivial: use the GLib TRUE/FALSE defines to fix compile

diff --git a/src/pk-backend.c b/src/pk-backend.c
index 2fb6c15..759e730 100644
--- a/src/pk-backend.c
+++ b/src/pk-backend.c
@@ -2838,7 +2838,7 @@ pk_backend_install_packages (PkBackend *backend, gboolean only_trusted, gchar **
 	pk_backend_set_role_internal (backend, PK_ROLE_ENUM_INSTALL_PACKAGES);
 	pk_store_set_bool (backend->priv->store, "only_trusted", only_trusted);
 	pk_store_set_strv (backend->priv->store, "package_ids", package_ids);
-	pk_backend_set_bool (backend, "hint:simulate", false);
+	pk_backend_set_bool (backend, "hint:simulate", FALSE);
 	backend->priv->desc->install_packages (backend, only_trusted, package_ids);
 }
 
@@ -2865,7 +2865,7 @@ pk_backend_install_files (PkBackend *backend, gboolean only_trusted, gchar **ful
 	pk_backend_set_role_internal (backend, PK_ROLE_ENUM_INSTALL_FILES);
 	pk_store_set_bool (backend->priv->store, "only_trusted", only_trusted);
 	pk_store_set_strv (backend->priv->store, "full_paths", full_paths);
-	pk_backend_set_bool (backend, "hint:simulate", false);
+	pk_backend_set_bool (backend, "hint:simulate", FALSE);
 	backend->priv->desc->install_files (backend, only_trusted, full_paths);
 }
 
@@ -2892,7 +2892,7 @@ pk_backend_remove_packages (PkBackend *backend, gchar **package_ids, gboolean al
 	pk_store_set_strv (backend->priv->store, "package_ids", package_ids);
 	pk_store_set_bool (backend->priv->store, "allow_deps", allow_deps);
 	pk_store_set_bool (backend->priv->store, "autoremove", autoremove);
-	pk_backend_set_bool (backend, "hint:simulate", false);
+	pk_backend_set_bool (backend, "hint:simulate", FALSE);
 	backend->priv->desc->remove_packages (backend, package_ids, allow_deps, autoremove);
 }
 
@@ -2983,7 +2983,7 @@ pk_backend_update_packages (PkBackend *backend, gboolean only_trusted, gchar **p
 	pk_backend_set_role_internal (backend, PK_ROLE_ENUM_UPDATE_PACKAGES);
 	pk_store_set_bool (backend->priv->store, "only_trusted", only_trusted);
 	pk_store_set_strv (backend->priv->store, "package_ids", package_ids);
-	pk_backend_set_bool (backend, "hint:simulate", false);
+	pk_backend_set_bool (backend, "hint:simulate", FALSE);
 	backend->priv->desc->update_packages (backend, only_trusted, package_ids);
 }
 
@@ -2996,7 +2996,7 @@ pk_backend_update_system (PkBackend *backend, gboolean only_trusted)
 	g_return_if_fail (PK_IS_BACKEND (backend));
 	pk_backend_set_role_internal (backend, PK_ROLE_ENUM_UPDATE_SYSTEM);
 	pk_store_set_bool (backend->priv->store, "only_trusted", only_trusted);
-	pk_backend_set_bool (backend, "hint:simulate", false);
+	pk_backend_set_bool (backend, "hint:simulate", FALSE);
 	backend->priv->desc->update_system (backend, only_trusted);
 }
 
@@ -3074,7 +3074,7 @@ pk_backend_simulate_install_files (PkBackend *backend, gchar **full_paths)
 	g_return_if_fail (PK_IS_BACKEND (backend));
 	pk_backend_set_role_internal (backend, PK_ROLE_ENUM_SIMULATE_INSTALL_FILES);
 	pk_store_set_strv (backend->priv->store, "full_paths", full_paths);
-	pk_backend_set_bool (backend, "hint:simulate", true);
+	pk_backend_set_bool (backend, "hint:simulate", TRUE);
 	backend->priv->desc->simulate_install_files (backend, full_paths);
 }
 
@@ -3087,7 +3087,7 @@ pk_backend_simulate_install_packages (PkBackend *backend, gchar **package_ids)
 	g_return_if_fail (PK_IS_BACKEND (backend));
 	pk_backend_set_role_internal (backend, PK_ROLE_ENUM_SIMULATE_INSTALL_PACKAGES);
 	pk_store_set_strv (backend->priv->store, "package_ids", package_ids);
-	pk_backend_set_bool (backend, "hint:simulate", true);
+	pk_backend_set_bool (backend, "hint:simulate", TRUE);
 	backend->priv->desc->simulate_install_packages (backend, package_ids);
 }
 
@@ -3101,7 +3101,7 @@ pk_backend_simulate_remove_packages (PkBackend *backend, gchar **package_ids, gb
 	pk_backend_set_role_internal (backend, PK_ROLE_ENUM_SIMULATE_REMOVE_PACKAGES);
 	pk_store_set_strv (backend->priv->store, "package_ids", package_ids);
 	pk_store_set_bool (backend->priv->store, "autoremove", autoremove);
-	pk_backend_set_bool (backend, "hint:simulate", true);
+	pk_backend_set_bool (backend, "hint:simulate", TRUE);
 	backend->priv->desc->simulate_remove_packages (backend, package_ids, autoremove);
 }
 
@@ -3114,7 +3114,7 @@ pk_backend_simulate_update_packages (PkBackend *backend, gchar **package_ids)
 	g_return_if_fail (PK_IS_BACKEND (backend));
 	pk_backend_set_role_internal (backend, PK_ROLE_ENUM_SIMULATE_UPDATE_PACKAGES);
 	pk_store_set_strv (backend->priv->store, "package_ids", package_ids);
-	pk_backend_set_bool (backend, "hint:simulate", true);
+	pk_backend_set_bool (backend, "hint:simulate", TRUE);
 	backend->priv->desc->simulate_update_packages (backend, package_ids);
 }
 
commit a84c0c2ab41f4b7bface00af3ba437a84fe4d739
Author: aalam <aalam at fedoraproject.org>
Date:   Thu May 6 02:09:39 2010 +0000

    l10n: Updates to Panjabi (Punjabi) (pa) translation
    
    Transmitted-via: Transifex (translate.fedoraproject.org)

diff --git a/po/pa.po b/po/pa.po
index 44650d4..6be751a 100644
--- a/po/pa.po
+++ b/po/pa.po
@@ -9,10 +9,10 @@ msgid ""
 msgstr ""
 "Project-Id-Version: packagekit.master.pa\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2010-04-18 19:48+0000\n"
-"PO-Revision-Date: 2010-04-19 07:57+0530\n"
+"POT-Creation-Date: 2010-05-05 16:54+0000\n"
+"PO-Revision-Date: 2010-05-06 07:38+0530\n"
 "Last-Translator: A S Alam <aalam at users.sf.net>\n"
-"Language-Team: Punjabi/Panjabi <kde-i18n-doc at kde.org>\n"
+"Language-Team: Punjabi/Panjabi <punjabi-users at lists.sf.net>\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
@@ -378,153 +378,163 @@ msgid "Failed to get the time since this action was last completed"
 msgstr "ਇਸ ਕਾਰਵਾਈ ਦੇ ਆਖਰੀ ਵਾਰ ਪੂਰੀ ਹੋਣ ਤੋਂ ਬਾਅਦ ਸਮਾਂ ਲੈਣ ਲਈ ਫੇਲ੍ਹ ਹੈ"
 
 #. TRANSLATORS: command line argument, just show the version string
-#: ../client/pk-console.c:1267 ../client/pk-monitor.c:326
+#: ../client/pk-console.c:1268 ../client/pk-monitor.c:326
 msgid "Show the program version and exit"
 msgstr "ਪਰੋਗਰਾਮ ਵਰਜਨ ਵੇਖੋ ਅਤੇ ਬੰਦ ਕਰੋ"
 
 #. TRANSLATORS: command line argument, use a filter to narrow down results
-#: ../client/pk-console.c:1270
+#: ../client/pk-console.c:1271
 msgid "Set the filter, e.g. installed"
 msgstr "ਫਿਲਟਰ ਸੈੱਟ ਕਰੋ, ਜਿਵੇਂ ਕਿ ਇੰਸਟਾਲ"
 
+#. TRANSLATORS: command line argument, use a non-standard install prefix
+#: ../client/pk-console.c:1274
+msgid "Set the install root, e.g. '/' or '/mnt/ltsp'"
+msgstr "ਇੰਸਟਾਲ ਰੂਟ ਸੈੱਟ ਕਰੋ, ਜਿਵੇਂ  '/' ਜਾਂ '/mnt/ltsp'"
+
 #. TRANSLATORS: command line argument, work asynchronously
-#: ../client/pk-console.c:1273
+#: ../client/pk-console.c:1277
 msgid "Exit without waiting for actions to complete"
 msgstr "ਪੂਰੇ ਹੋਣ ਵਾਲੇ ਐਕਸ਼ਨ ਦੀ ਉਡੀਕ ਕੀਤੇ ਬਿਨਾਂ ਬੰਦ ਕਰੋ"
 
 #. command line argument, do we ask questions
-#: ../client/pk-console.c:1276
+#: ../client/pk-console.c:1280
 #: ../contrib/debuginfo-install/pk-debuginfo-install.c:527
 msgid "Install the packages without asking for confirmation"
 msgstr "ਪੁਸ਼ਟੀ ਕੀਤੇ ਬਿਨਾਂ ਹੀ ਪੈਕੇਜ ਇੰਸਟਾਲ ਕਰੋ"
 
 #. TRANSLATORS: command line argument, this command is not a priority
-#: ../client/pk-console.c:1279
+#: ../client/pk-console.c:1283
 msgid "Run the command using idle network bandwidth and also using less power"
 msgstr "ਕਮਾਂਡ ਨੂੰ ਵੇਹਲੀ ਨੈੱਟਵਰਕ ਬੈਂਡਵਿਥ ਦੌਰਾਨ ਚਲਾਓ ਅਤੇ ਘੱਟ ਊਰਜਾ ਦੀ ਵਰਤੋਂ ਕਰਕੇ ਵੀ"
 
 #. TRANSLATORS: command line argument, just output without fancy formatting
-#: ../client/pk-console.c:1282
+#: ../client/pk-console.c:1286
 msgid "Print to screen a machine readable output, rather than using animated widgets"
 msgstr "ਐਨੀਮੇਟਡ ਵਿਡਜੈੱਟ ਵਰਤਣ ਦੀ ਬਜਾਏ, ਮਸ਼ੀਨ ਦੇ ਪੜ੍ਹਨ ਯੋਗ ਜਾਣਕਾਰੀ ਸਕਰੀਨ ਤੇ ਪਰਿੰਟ ਕਰੋ"
 
 #. TRANSLATORS: we failed to contact the daemon
-#: ../client/pk-console.c:1304
+#: ../client/pk-console.c:1308
 msgid "Failed to contact PackageKit"
 msgstr "ਪੈਕੇਜਕਿੱਟ ਨਾਲ ਸੰਪਰਕ ਲਈ ਫੇਲ੍ਹ ਹੈ"
 
 #. TRANSLATORS: The user specified an incorrect filter
-#: ../client/pk-console.c:1365
+#: ../client/pk-console.c:1369
 msgid "The proxy could not be set"
 msgstr "ਪਰਾਕਸੀ ਸੈੱਟ ਨਹੀਂ ਕੀਤਾ ਜਾ ਸਕਿਆ"
 
 #. TRANSLATORS: The user specified an incorrect filter
-#: ../client/pk-console.c:1377
+#: ../client/pk-console.c:1381
+msgid "The install root could not be set"
+msgstr "ਇੰਸਟਾਲ ਰੂਟ ਸੈੱਟ ਨਹੀਂ ਕੀਤਾ ਜਾ ਸਕਿਆ"
+
+#. TRANSLATORS: The user specified an incorrect filter
+#: ../client/pk-console.c:1393
 msgid "The filter specified was invalid"
 msgstr "ਦਿੱਤਾ ਫਿਲਟਰ ਅਢੁੱਕਵਾਂ ਹੈ।"
 
 #. TRANSLATORS: a search type can be name, details, file, etc
-#: ../client/pk-console.c:1396
+#: ../client/pk-console.c:1412
 msgid "A search type is required, e.g. name"
 msgstr "ਖੋਜ ਕਿਸਮ ਚਾਹੀਦੀ ਹੈ, ਜਿਵੇਂ ਨਾਂ"
 
 #. TRANSLATORS: the user needs to provide a search term
-#: ../client/pk-console.c:1403 ../client/pk-console.c:1415
-#: ../client/pk-console.c:1427 ../client/pk-console.c:1439
+#: ../client/pk-console.c:1419 ../client/pk-console.c:1431
+#: ../client/pk-console.c:1443 ../client/pk-console.c:1455
 msgid "A search term is required"
 msgstr "ਖੋਜ ਸ਼ਬਦ ਦੀ ਲੋੜ ਹੈ"
 
 #. TRANSLATORS: the search type was provided, but invalid
-#: ../client/pk-console.c:1449
+#: ../client/pk-console.c:1465
 msgid "Invalid search type"
 msgstr "ਗਲਤ ਖੋਜ ਟਾਈਪ"
 
 #. TRANSLATORS: the user did not specify what they wanted to install
-#: ../client/pk-console.c:1455
+#: ../client/pk-console.c:1471
 msgid "A package name to install is required"
 msgstr "ਇੰਸਟਾਲ ਕਰਨ ਲਈ ਪੈਕੇਜ ਨਾਂ ਲਾਜ਼ਮੀ ਹੈ"
 
 #. TRANSLATORS: the user did not specify what they wanted to install
-#: ../client/pk-console.c:1464
+#: ../client/pk-console.c:1480
 msgid "A filename to install is required"
 msgstr "ਇੰਸਟਾਲ ਕਰਨ ਲਈ ਇੱਕ ਫਾਇਲ ਨਾਂ ਦੀ ਲੋੜ ਹੈ"
 
 #. TRANSLATORS: geeky error, 99.9999% of users won't see this
-#: ../client/pk-console.c:1476
+#: ../client/pk-console.c:1492
 msgid "A type, key_id and package_id are required"
 msgstr "ਟਾਈਪ, key_id ਜਾਂ package_id ਦੇਣ ਦੀ ਲੋੜ ਹੈ"
 
 #. TRANSLATORS: the user did not specify what they wanted to remove
-#: ../client/pk-console.c:1487
+#: ../client/pk-console.c:1503
 msgid "A package name to remove is required"
 msgstr "ਹਟਾਉਣ ਵਾਸਤੇ ਪੈਕੇਜ ਨਾਂ ਚਾਹੀਦਾ ਹੈ"
 
 #. TRANSLATORS: the user did not specify anything about what to download or where
-#: ../client/pk-console.c:1496
+#: ../client/pk-console.c:1512
 msgid "A destination directory and the package names to download are required"
 msgstr "ਡਾਊਨਲੋਡ ਕਰਨ ਵਾਸਤੇ ਟਿਕਾਣਾ ਡਾਇਰੈਕਟਰੀ ਅਤੇ ਪੈਕੇਜ ਨਾਂ ਲਾਜ਼ਮੀ ਹੈ"
 
 #. TRANSLATORS: the directory does not exist, so we can't continue
-#: ../client/pk-console.c:1503
+#: ../client/pk-console.c:1519
 msgid "Directory not found"
 msgstr "ਡਾਇਰੈਕਟਰੀ ਨਹੀਂ ਲੱਭੀ"
 
 #. TRANSLATORS: geeky error, 99.9999% of users won't see this
-#: ../client/pk-console.c:1512
+#: ../client/pk-console.c:1528
 msgid "A licence identifier (eula-id) is required"
 msgstr "ਇੱਕ ਲਾਈਸੈਂਸ ਪਛਾਣਕਰਤਾ (eula-id) ਲਾਜ਼ਮੀ ਹੈ"
 
 #. TRANSLATORS: geeky error, 99.9999% of users won't see this
-#: ../client/pk-console.c:1523
+#: ../client/pk-console.c:1539
 msgid "A transaction identifier (tid) is required"
 msgstr "ਟਰਾਂਸੈਕਸ਼ਨ ਪਛਾਣ (tid) ਲੋੜੀਦਾ ਹੈ"
 
 #. TRANSLATORS: The user did not specify a package name
-#: ../client/pk-console.c:1544
+#: ../client/pk-console.c:1560
 msgid "A package name to resolve is required"
 msgstr "ਹੱਲ ਕਰਨ ਲਈ ਪੈਕੇਜ ਨਾਂ ਲਾਜ਼ਮੀ ਹੈ"
 
 #. TRANSLATORS: The user did not specify a repository (software source) name
-#: ../client/pk-console.c:1555 ../client/pk-console.c:1566
+#: ../client/pk-console.c:1571 ../client/pk-console.c:1582
 msgid "A repository name is required"
 msgstr "ਰਿਪੋਜ਼ਟਰੀ ਨਾਂ ਲੋੜੀਦਾ ਹੈ"
 
 #. TRANSLATORS: The user didn't provide any data
-#: ../client/pk-console.c:1577
+#: ../client/pk-console.c:1593
 msgid "A repo name, parameter and value are required"
 msgstr "ਰੈਪੋ ਨਾਂ, ਪੈਰਾਮੀਟਰ ਅਤੇ ਮੁੱਲ ਲੋੜੀਦਾ ਹੈ"
 
 #. TRANSLATORS: The user didn't specify what action to use
-#: ../client/pk-console.c:1594
+#: ../client/pk-console.c:1610
 msgid "An action, e.g. 'update-system' is required"
 msgstr "ਕਾਰਵਾਈ, ਜਿਵੇਂ 'ਅੱਪਡੇਟ-ਸਿਸਟਮ' ਲੋੜੀਦਾ ਹੈ"
 
 #. TRANSLATORS: The user specified an invalid action
-#: ../client/pk-console.c:1601
+#: ../client/pk-console.c:1617
 msgid "A correct role is required"
 msgstr "ਠੀਕ ਰੋਲ ਲੋੜੀਦਾ ਹੈ"
 
 #. TRANSLATORS: The user did not provide a package name
 #. TRANSLATORS: This is when the user fails to supply the package name
-#: ../client/pk-console.c:1611 ../client/pk-console.c:1626
-#: ../client/pk-console.c:1635 ../client/pk-console.c:1655
-#: ../client/pk-console.c:1664 ../client/pk-generate-pack.c:316
+#: ../client/pk-console.c:1627 ../client/pk-console.c:1642
+#: ../client/pk-console.c:1651 ../client/pk-console.c:1671
+#: ../client/pk-console.c:1680 ../client/pk-generate-pack.c:316
 msgid "A package name is required"
 msgstr "ਪੈਕੇਜ ਨਾਂ ਲੋੜੀਦਾ ਹੈ"
 
 #. TRANSLATORS: each package "provides" certain things, e.g. mime(gstreamer-decoder-mp3), the user didn't specify it
-#: ../client/pk-console.c:1644
+#: ../client/pk-console.c:1660
 msgid "A package provide string is required"
 msgstr "ਪੈਕੇਜ ਦੇਣ ਵਾਲੀ ਸਤਰ ਲੋੜੀਦੀ ਹੈ"
 
 #. TRANSLATORS: The user tried to use an unsupported option on the command line
-#: ../client/pk-console.c:1724
+#: ../client/pk-console.c:1740
 #, c-format
 msgid "Option '%s' is not supported"
 msgstr "ਚੋਣ '%s' ਸਹਾਇਕ ਨਹੀਂ ਹੈ"
 
 #. TRANSLATORS: Generic failure of what they asked to do
-#: ../client/pk-console.c:1734
+#: ../client/pk-console.c:1750
 msgid "Command failed"
 msgstr "ਕਮਾਂਡ ਫੇਲ੍ਹ ਹੈ"
 
@@ -1712,42 +1722,46 @@ msgid "Authentication is required to change software source parameters"
 msgstr "ਸਾਫਟਵੇਅਰ ਸਰੋਤ ਪੈਰਾਮੀਟਰ ਬਦਲਣ ਲਈ ਪਰਮਾਣਕਿਤਾ ਦੀ ਲੋੜ ਹੈ"
 
 #: ../policy/org.freedesktop.packagekit.policy.in.h:11
+msgid "Authentication is required to change the location used to decompress packages"
+msgstr "ਪੈਕੇਜ ਡੀਕੰਪਰੈੱਸ ਕਰਨ ਲਈ ਟਿਕਾਣਾ ਬਦਲਣ ਵਾਸਤੇ ਪਰਮਾਣਕਿਤਾ ਦੀ ਲੋੜ ਹੈ"
+
+#: ../policy/org.freedesktop.packagekit.policy.in.h:12
 msgid ""
 "Authentication is required to consider a key used for signing packages as "
 "trusted"
 msgstr "ਪੈਕੇਜ ਟਰੱਸਟ ਕੀਤਾ ਬਣਾਉਣ ਲਈ ਸਾਈਨ ਵਾਸਤੇ ਕੁੰਜੀ ਸ਼ਾਮਲ ਕਰਨ ਲਈ ਪਰਮਾਣਕਿਤਾ ਦੀ ਲੋੜ ਹੈ"
 
-#: ../policy/org.freedesktop.packagekit.policy.in.h:12
+#: ../policy/org.freedesktop.packagekit.policy.in.h:13
 msgid "Authentication is required to install a signed package"
 msgstr "ਸਾਈਨ ਕੀਤਾ ਪੈਕੇਜ ਇੰਸਟਾਲ ਕਰਨ ਲਈ ਪਰਮਾਣਕਿਤਾ ਦੀ ਲੋੜ ਹੈ"
 
-#: ../policy/org.freedesktop.packagekit.policy.in.h:13
+#: ../policy/org.freedesktop.packagekit.policy.in.h:14
 msgid "Authentication is required to install an untrusted package"
 msgstr "ਅਣ-ਟਰੱਸਟ ਪੈਕੇਜ ਇੰਸਟਾਲ ਕਰਨ ਲਈ ਪਰਮਾਣਕਿਤਾ ਦੀ ਲੋੜ ਹੈ"
 
-#: ../policy/org.freedesktop.packagekit.policy.in.h:14
+#: ../policy/org.freedesktop.packagekit.policy.in.h:15
 msgid "Authentication is required to refresh the system sources"
 msgstr "ਸਿਸਟਮ ਸਰੋਤ ਤਾਜ਼ਾ ਲਈ ਪਰਮਾਣਕਿਤਾ ਦੀ ਲੋੜ ਹੈ"
 
-#: ../policy/org.freedesktop.packagekit.policy.in.h:15
+#: ../policy/org.freedesktop.packagekit.policy.in.h:16
 msgid "Authentication is required to reload the device with a new driver"
 msgstr "ਨਵੇਂ ਡਰਾਈਵਰ ਨਾਲ ਜੰਤਰ ਰੀਲੋਡ ਕਰਨ ਲਈ ਪਰਮਾਣਕਿਤਾ ਦੀ ਲੋੜ ਹੈ"
 
-#: ../policy/org.freedesktop.packagekit.policy.in.h:16
+#: ../policy/org.freedesktop.packagekit.policy.in.h:17
 msgid "Authentication is required to remove packages"
 msgstr "ਪੈਕੇਜ ਹਟਾਉਣ ਲਈ ਪਰਮਾਣਕਿਤਾ ਦੀ ਲੋੜ ਹੈ"
 
-#: ../policy/org.freedesktop.packagekit.policy.in.h:17
+#: ../policy/org.freedesktop.packagekit.policy.in.h:18
 msgid "Authentication is required to rollback a transaction"
 msgstr "ਟਰਾਂਸੈਕਸ਼ਨ ਰੋਲਬੈਕ ਕਰਨ ਲਈ ਪਰਮਾਣਕਿਤਾ ਦੀ ਲੋੜ ਹੈ"
 
-#: ../policy/org.freedesktop.packagekit.policy.in.h:18
+#: ../policy/org.freedesktop.packagekit.policy.in.h:19
 msgid ""
 "Authentication is required to set the network proxy used for downloading "
 "packages"
 msgstr "ਪੈਕੇਜ ਡਾਊਨਲੋਡ ਕਰਨ ਵਾਸਤੇ ਨੈੱਟਵਰਕ ਪਰਾਕਸੀ ਸੈੱਟ ਕਰਨ ਲਈ ਪਰਮਾਣਕਿਤਾ ਦੀ ਲੋੜ ਹੈ"
 
-#: ../policy/org.freedesktop.packagekit.policy.in.h:19
+#: ../policy/org.freedesktop.packagekit.policy.in.h:20
 msgid "Authentication is required to update packages"
 msgstr "ਪੈਕੇਜ ਅੱਪਡੇਟ ਕਰਨ ਵਾਸਤੇ ਪਰਮਾਣਕਿਤਾ ਦੀ ਲੋੜ ਹੈ"
 
@@ -1756,16 +1770,26 @@ msgstr "ਪੈਕੇਜ ਅੱਪਡੇਟ ਕਰਨ ਵਾਸਤੇ ਪਰਮ
 #. authentication, but a different user id needs the admin password
 #. to cancel another users task.
 #.
-#: ../policy/org.freedesktop.packagekit.policy.in.h:25
+#: ../policy/org.freedesktop.packagekit.policy.in.h:26
 msgid "Cancel foreign task"
 msgstr "ਬਾਹਰੀ ਟਾਸਕ ਰੱਦ ਕਰੋ"
 
 #. SECURITY:
+#. - This is used when users want to install to a different prefix, for
+#. instance to a LTSP image or a virtual machine.
+#. - This could be used to overwrite files not owned by the user using
+#. a carefully created package file.
+#.
+#: ../policy/org.freedesktop.packagekit.policy.in.h:33
+msgid "Change location that packages are installed"
+msgstr "ਟਿਕਾਣਾ ਬਦਲੋ, ਜਿੱਥੇ ਪੈਕੇਜ ਇੰਸਟਾਲ ਕੀਤੇ ਜਾਂਦੇ ਹਨ"
+
+#. SECURITY:
 #. - Normal users require admin authentication to enable or disable
 #. software sources as this can be used to enable new updates or
 #. install different versions of software.
 #.
-#: ../policy/org.freedesktop.packagekit.policy.in.h:31
+#: ../policy/org.freedesktop.packagekit.policy.in.h:39
 msgid "Change software source parameters"
 msgstr "ਸਾਫਟਵੇਅਰ ਸਰੋਤ ਪੈਰਾਮੀਟਰ ਬਦਲੋ"
 
@@ -1775,7 +1799,7 @@ msgstr "ਸਾਫਟਵੇਅਰ ਸਰੋਤ ਪੈਰਾਮੀਟਰ ਬਦਲ
 #. - Paranoid users (or parents!) can change this to 'auth_admin' or
 #. 'auth_admin_keep'.
 #.
-#: ../policy/org.freedesktop.packagekit.policy.in.h:38
+#: ../policy/org.freedesktop.packagekit.policy.in.h:46
 msgid "Install signed package"
 msgstr "ਸਾਈਨ ਕੀਤੇ ਪੈਕੇਜ ਇੰਸਟਾਲ"
 
@@ -1785,7 +1809,7 @@ msgstr "ਸਾਈਨ ਕੀਤੇ ਪੈਕੇਜ ਇੰਸਟਾਲ"
 #. password would be a massive security hole.
 #. - This is not retained as each package should be authenticated.
 #.
-#: ../policy/org.freedesktop.packagekit.policy.in.h:45
+#: ../policy/org.freedesktop.packagekit.policy.in.h:53
 msgid "Install untrusted local file"
 msgstr "ਅਣ-ਟਰੱਸਟ ਲੋਕਲ ਫਾਇਲ ਇੰਸਟਾਲ"
 
@@ -1793,7 +1817,7 @@ msgstr "ਅਣ-ਟਰੱਸਟ ਲੋਕਲ ਫਾਇਲ ਇੰਸਟਾਲ"
 #. - Normal users do not require admin authentication to refresh the
 #. cache, as this doesn't actually install or remove software.
 #.
-#: ../policy/org.freedesktop.packagekit.policy.in.h:50
+#: ../policy/org.freedesktop.packagekit.policy.in.h:58
 msgid "Refresh system sources"
 msgstr "ਸਿਸਟਮ ਸਰੋਤ ਤਾਜ਼ਾ ਕਰੋ"
 
@@ -1804,7 +1828,7 @@ msgstr "ਸਿਸਟਮ ਸਰੋਤ ਤਾਜ਼ਾ ਕਰੋ"
 #. try to rebind drivers in use, for instance security authentication
 #. devices.
 #.
-#: ../policy/org.freedesktop.packagekit.policy.in.h:58
+#: ../policy/org.freedesktop.packagekit.policy.in.h:66
 msgid "Reload a device"
 msgstr "ਜੰਤਰ ਮੁੜ-ਲੋਡ ਕਰੋ"
 
@@ -1817,7 +1841,7 @@ msgstr "ਜੰਤਰ ਮੁੜ-ਲੋਡ ਕਰੋ"
 #. be removed. If this is not possible, change this authentication to
 #. 'auth_admin'.
 #.
-#: ../policy/org.freedesktop.packagekit.policy.in.h:68
+#: ../policy/org.freedesktop.packagekit.policy.in.h:76
 msgid "Remove package"
 msgstr "ਪੈਕੇਜ ਹਟਾਓ"
 
@@ -1826,7 +1850,7 @@ msgstr "ਪੈਕੇਜ ਹਟਾਓ"
 #. as this will change a large number of packages, and could expose the
 #. system to previously patched security vulnerabilities.
 #.
-#: ../policy/org.freedesktop.packagekit.policy.in.h:74
+#: ../policy/org.freedesktop.packagekit.policy.in.h:82
 msgid "Rollback to a previous transaction"
 msgstr "ਪਿਛਲੀ ਟਰਾਂਸੈਕਸ਼ਨ ਰੋਲ-ਬੈਕ ਕਰੋ"
 
@@ -1834,7 +1858,7 @@ msgstr "ਪਿਛਲੀ ਟਰਾਂਸੈਕਸ਼ਨ ਰੋਲ-ਬੈਕ ਕ
 #. - Normal users do not require admin authentication to set the proxy
 #. used for downloading packages.
 #.
-#: ../policy/org.freedesktop.packagekit.policy.in.h:79
+#: ../policy/org.freedesktop.packagekit.policy.in.h:87
 msgid "Set network proxy"
 msgstr "ਨੈੱਟਵਰਕ ਪਰਾਕਸੀ ਸੈੱਟ ਕਰੋ"
 
@@ -1844,7 +1868,7 @@ msgstr "ਨੈੱਟਵਰਕ ਪਰਾਕਸੀ ਸੈੱਟ ਕਰੋ"
 #. without a secure authentication.
 #. - This is not kept as each package should be authenticated.
 #.
-#: ../policy/org.freedesktop.packagekit.policy.in.h:86
+#: ../policy/org.freedesktop.packagekit.policy.in.h:94
 msgid "Trust a key used for signing packages"
 msgstr "ਪੈਕੇਜ ਸਾਈਨ ਲਈ ਵਰਤੀ ਕੁੰਜੀ ਉੱਤੇ ਟਰੱਸਟ"
 
@@ -1855,7 +1879,7 @@ msgstr "ਪੈਕੇਜ ਸਾਈਨ ਲਈ ਵਰਤੀ ਕੁੰਜੀ ਉੱ
 #. - Changing this to anything other than 'yes' will break unattended
 #. updates.
 #.
-#: ../policy/org.freedesktop.packagekit.policy.in.h:94
+#: ../policy/org.freedesktop.packagekit.policy.in.h:102
 msgid "Update packages"
 msgstr "ਪੈਕੇਜ ਅੱਪਡੇਟ"
 
commit 498e327f2ccd26710456642b99646e86526bae10
Author: Richard Hughes <richard at hughsie.com>
Date:   Wed May 5 19:46:52 2010 +0100

    trivial: add a link to the cgit pages in pk-download.html

diff --git a/docs/html/pk-download.html b/docs/html/pk-download.html
index a941dcc..6a8de04 100644
--- a/docs/html/pk-download.html
+++ b/docs/html/pk-download.html
@@ -167,7 +167,8 @@ Just make sure you install PackageKit before gnome-packagekit!
 <h2>Compiling the latest code</h2>
 <p>
 You can get the latest PackageKit daemon and GNOME frontend from the
-public git repositories on freedesktop:
+<a href="http://cgit.freedesktop.org/packagekit/">public git repositories</a>
+on <a href="http://www.freedesktop.org">freedesktop.org</a>:
 </p>
 <pre>
 git clone git://anongit.freedesktop.org/git/packagekit/PackageKit
commit f819908d41e8c172274dddc307915c0daec2c4c5
Author: Marko Myllynen <myllynen at redhat.com>
Date:   Wed May 5 19:42:48 2010 +0100

    Add maximum wait time limit to cron checks
    
    Update checks from cron were using sleep 21332 to avoid hammering the
    servers which is indeed very useful feature. However, those wait times
    were easily several hours so a user might well shut down the system
    before any checking is done. This patch allows defining maximum wait
    time limit for the cron script, defaulting to one hour. Using the
    default clients now will wait 1 - 3600 seconds before contacting the
    servers

diff --git a/contrib/cron/packagekit-background b/contrib/cron/packagekit-background
index b4a9acf..e5b5c9b 100644
--- a/contrib/cron/packagekit-background
+++ b/contrib/cron/packagekit-background
@@ -12,3 +12,7 @@ CHECK_ONLY=no
 # differently default is output of hostname command
 #SYSTEM_NAME=""
 
+# update checks will sleep random time before contacting the servers to
+# avoid hammering them with thousands of request at the same time - this
+# is the maximum sleep time (in seconds) for the random wait period
+SLEEP_MAX=3600
diff --git a/contrib/cron/packagekit-background.cron b/contrib/cron/packagekit-background.cron
index 87e089a..e62d204 100755
--- a/contrib/cron/packagekit-background.cron
+++ b/contrib/cron/packagekit-background.cron
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 # Copyright (C) 2008 Richard Hughes <richard at hughsie.com>
 #
 # Some material taken from yum-cron, Copyright 2007 Alec Habig <ahabig at umn.edu>
@@ -23,7 +23,8 @@ PKTMP=$(mktemp /var/run/packagekit-cron.XXXXXX)
 PKCON_OPTIONS="--background --noninteractive --plain"
 
 # wait a random amount of time to avoid hammering the servers
-sleep $RANDOM
+[ -z "$SLEEP_MAX" ] && SLEEP_MAX=$RANDOM
+sleep $(( $RANDOM % $SLEEP_MAX + 1 ))
 
 # do action
 if [ "$CHECK_ONLY" = "yes" ]; then
commit 3fa90bfa3266c36dfcf751785c1733d3f1d94f93
Author: Marko Myllynen <myllynen at redhat.com>
Date:   Wed May 5 19:41:23 2010 +0100

    Fix system name variable name inconsistency in the cron script
    
    Signed-off-by: Richard Hughes <richard at hughsie.com>

diff --git a/contrib/cron/packagekit-background b/contrib/cron/packagekit-background
index 0a9b845..b4a9acf 100644
--- a/contrib/cron/packagekit-background
+++ b/contrib/cron/packagekit-background
@@ -8,7 +8,7 @@ CHECK_ONLY=no
 # by default MAILTO is unset, so crond mails the output by itself
 #MAILTO=root
 
-# you may set SYSTEMNAME if you want your PackageKit emails tagged differently
-# default is output of hostname command
+# you may set SYSTEM_NAME if you want your PackageKit emails tagged 
+# differently default is output of hostname command
 #SYSTEM_NAME=""
 
diff --git a/contrib/cron/packagekit-background.cron b/contrib/cron/packagekit-background.cron
index fb93779..87e089a 100755
--- a/contrib/cron/packagekit-background.cron
+++ b/contrib/cron/packagekit-background.cron
@@ -16,8 +16,8 @@ if [ "$ENABLED" = "no" ]; then
 	exit 1
 fi
 
-# set default for SYSTEMNAME
-[ -z "$SYSTEMNAME" ]  && SYSTEMNAME=$(hostname)
+# set default for SYSTEM_NAME
+[ -z "$SYSTEM_NAME" ] && SYSTEM_NAME=$(hostname)
 
 PKTMP=$(mktemp /var/run/packagekit-cron.XXXXXX)
 PKCON_OPTIONS="--background --noninteractive --plain"
@@ -38,7 +38,7 @@ fi
 if [ $PKCON_RETVAL -ne 5 ]; then
 	# send email
 	if [ -n "$MAILTO" ]; then
-		mail -s "System updates available: $SYSTEMNAME" $MAILTO < $PKTMP
+		mail -s "System updates available: $SYSTEM_NAME" $MAILTO < $PKTMP
 	else
 		# default behavior is to use cron's internal mailing of output from cron-script
 		cat $PKTMP


More information about the PackageKit-commit mailing list