[PackageKit-commit] packagekit: Branch 'master' - 28 commits
Richard Hughes
hughsient at kemper.freedesktop.org
Tue Mar 3 03:16:13 PST 2009
RELEASE | 16
backends/apt/update-packagekit-app-data | 44
backends/dummy/pk-backend-dummy.c | 261 -
backends/yum/yumBackend.py | 406 +-
client/pk-console.c | 4
configure.ac | 2
contrib/PackageKit.spec.in | 1
docs/api/PackageKit-docs.sgml | 2
docs/api/spec/pk-concepts.xml | 133
lib/packagekit-glib/pk-client.c | 21
lib/packagekit-glib/pk-enum.c | 1
lib/packagekit-glib/pk-enum.h | 1
lib/packagekit-sharp/generated/.gitignore | 2
lib/packagekit-sharp/generated/AllowCancelHandler.cs | 18
lib/packagekit-sharp/generated/Bitfield.cs | 14
lib/packagekit-sharp/generated/CallerActiveChangedHandler.cs | 18
lib/packagekit-sharp/generated/Catalog.cs | 116
lib/packagekit-sharp/generated/CatalogProgress.cs | 18
lib/packagekit-sharp/generated/CategoryHandler.cs | 18
lib/packagekit-sharp/generated/CategoryObj.cs | 61
lib/packagekit-sharp/generated/Client.cs | 1851 ----------
lib/packagekit-sharp/generated/ClientError.cs | 35
lib/packagekit-sharp/generated/Connection.cs | 105
lib/packagekit-sharp/generated/ConnectionChangedHandler.cs | 18
lib/packagekit-sharp/generated/Control.cs | 461 --
lib/packagekit-sharp/generated/ControlError.cs | 16
lib/packagekit-sharp/generated/Desktop.cs | 97
lib/packagekit-sharp/generated/DestroyHandler.cs | 24
lib/packagekit-sharp/generated/DetailsHandler.cs | 18
lib/packagekit-sharp/generated/DetailsObj.cs | 57
lib/packagekit-sharp/generated/Distro.cs | 34
lib/packagekit-sharp/generated/DistroUpgradeEnum.cs | 17
lib/packagekit-sharp/generated/DistroUpgradeHandler.cs | 30
lib/packagekit-sharp/generated/DistroUpgradeObj.cs | 55
lib/packagekit-sharp/generated/Enum.cs | 40
lib/packagekit-sharp/generated/EnumMatch.cs | 30
lib/packagekit-sharp/generated/Error.cs | 34
lib/packagekit-sharp/generated/ErrorCodeEnum.cs | 61
lib/packagekit-sharp/generated/ErrorCodeHandler.cs | 30
lib/packagekit-sharp/generated/EulaRequiredHandler.cs | 36
lib/packagekit-sharp/generated/Exit.cs | 34
lib/packagekit-sharp/generated/ExitEnum.cs | 21
lib/packagekit-sharp/generated/FilesHandler.cs | 24
lib/packagekit-sharp/generated/Filter.cs | 54
lib/packagekit-sharp/generated/FilterEnum.cs | 38
lib/packagekit-sharp/generated/FinishedHandler.cs | 30
lib/packagekit-sharp/generated/Global.cs | 54
lib/packagekit-sharp/generated/Group.cs | 54
lib/packagekit-sharp/generated/GroupEnum.cs | 49
lib/packagekit-sharp/generated/Info.cs | 34
lib/packagekit-sharp/generated/InfoEnum.cs | 32
lib/packagekit-sharp/generated/License.cs | 34
lib/packagekit-sharp/generated/LicenseEnum.cs | 140
lib/packagekit-sharp/generated/LockedHandler.cs | 18
lib/packagekit-sharp/generated/Message.cs | 34
lib/packagekit-sharp/generated/MessageEnum.cs | 27
lib/packagekit-sharp/generated/MessageHandler.cs | 30
lib/packagekit-sharp/generated/Network.cs | 34
lib/packagekit-sharp/generated/NetworkEnum.cs | 20
lib/packagekit-sharp/generated/ObjList.cs | 242 -
lib/packagekit-sharp/generated/ObjListCompareFunc.cs | 10
lib/packagekit-sharp/generated/ObjListCopyFunc.cs | 10
lib/packagekit-sharp/generated/ObjListEqualFunc.cs | 10
lib/packagekit-sharp/generated/ObjListFreeFunc.cs | 10
lib/packagekit-sharp/generated/ObjListFromStringFunc.cs | 10
lib/packagekit-sharp/generated/ObjListNewFunc.cs | 10
lib/packagekit-sharp/generated/ObjListToStringFunc.cs | 10
lib/packagekit-sharp/generated/ObjectManager.cs | 27
lib/packagekit-sharp/generated/Package.cs | 92
lib/packagekit-sharp/generated/PackageHandler.cs | 18
lib/packagekit-sharp/generated/PackageId.cs | 137
lib/packagekit-sharp/generated/PackageKitSharp.ObjListCompareFuncNative.cs | 96
lib/packagekit-sharp/generated/PackageKitSharp.ObjListCopyFuncNative.cs | 96
lib/packagekit-sharp/generated/PackageKitSharp.ObjListEqualFuncNative.cs | 95
lib/packagekit-sharp/generated/PackageKitSharp.ObjListFreeFuncNative.cs | 92
lib/packagekit-sharp/generated/PackageKitSharp.ObjListFromStringFuncNative.cs | 98
lib/packagekit-sharp/generated/PackageKitSharp.ObjListNewFuncNative.cs | 96
lib/packagekit-sharp/generated/PackageKitSharp.ObjListToStringFuncNative.cs | 96
lib/packagekit-sharp/generated/PackageList.cs | 181
lib/packagekit-sharp/generated/PackageObj.cs | 83
lib/packagekit-sharp/generated/PercentageHandler.cs | 18
lib/packagekit-sharp/generated/ProgressChangedHandler.cs | 36
lib/packagekit-sharp/generated/ProgressHandler.cs | 24
lib/packagekit-sharp/generated/Provides.cs | 34
lib/packagekit-sharp/generated/ProvidesEnum.cs | 21
lib/packagekit-sharp/generated/RepoDetailHandler.cs | 30
lib/packagekit-sharp/generated/RepoSignatureRequiredHandler.cs | 60
lib/packagekit-sharp/generated/RequireRestartHandler.cs | 24
lib/packagekit-sharp/generated/Restart.cs | 34
lib/packagekit-sharp/generated/RestartEnum.cs | 19
lib/packagekit-sharp/generated/Role.cs | 54
lib/packagekit-sharp/generated/RoleEnum.cs | 45
lib/packagekit-sharp/generated/ServicePack.cs | 311 -
lib/packagekit-sharp/generated/ServicePackError.cs | 32
lib/packagekit-sharp/generated/ServicePackStatus.cs | 17
lib/packagekit-sharp/generated/Sig.cs | 34
lib/packagekit-sharp/generated/SigTypeEnum.cs | 16
lib/packagekit-sharp/generated/Status.cs | 34
lib/packagekit-sharp/generated/StatusChangedHandler.cs | 18
lib/packagekit-sharp/generated/StatusEnum.cs | 46
lib/packagekit-sharp/generated/StatusHandler.cs | 18
lib/packagekit-sharp/generated/TaskList.cs | 422 --
lib/packagekit-sharp/generated/TaskListItem.cs | 42
lib/packagekit-sharp/generated/TransactionHandler.cs | 18
lib/packagekit-sharp/generated/TransactionObj.cs | 59
lib/packagekit-sharp/generated/Update.cs | 34
lib/packagekit-sharp/generated/UpdateDetailHandler.cs | 18
lib/packagekit-sharp/generated/UpdateDetailObj.cs | 43
lib/packagekit-sharp/generated/UpdateStateEnum.cs | 18
lib/python/packagekit/backend.py | 7
po/LINGUAS | 3
po/de.po | 888 +++-
po/mr.po | 1025 +++++
po/pl.po | 174
po/pt_BR.po | 184
src/pk-backend.c | 116
src/pk-backend.h | 2
src/pk-time.c | 2
src/pk-transaction.c | 10
119 files changed, 2688 insertions(+), 7788 deletions(-)
New commits:
commit 562ff7a1b6ccdb4491a5ab8cc5d76e80823de3a7
Author: Richard Hughes <richard at hughsie.com>
Date: Tue Mar 3 10:37:17 2009 +0000
bugfix: glib: when we cancel a transaction, don't overwrite the role as 'Cancel' as we want to match on the originating role in the finished callback
diff --git a/lib/packagekit-glib/pk-client.c b/lib/packagekit-glib/pk-client.c
index e809b1d..cd9751d 100644
--- a/lib/packagekit-glib/pk-client.c
+++ b/lib/packagekit-glib/pk-client.c
@@ -1222,9 +1222,6 @@ pk_client_cancel (PkClient *client, GError **error)
return FALSE;
}
- /* save this so we can re-issue it */
- client->priv->role = PK_ROLE_ENUM_CANCEL;
-
/* hopefully do the operation first time */
ret = pk_client_cancel_action (client, &error_local);
commit 725636477ccafa3b7aa3ee7f728fdc7176a2b29c
Author: Richard Hughes <richard at hughsie.com>
Date: Tue Mar 3 10:28:33 2009 +0000
dummy: make the gpg and eula prompts configurable
diff --git a/backends/dummy/pk-backend-dummy.c b/backends/dummy/pk-backend-dummy.c
index c627f00..cb64604 100644
--- a/backends/dummy/pk-backend-dummy.c
+++ b/backends/dummy/pk-backend-dummy.c
@@ -41,6 +41,8 @@ static gboolean _updated_kernel = FALSE;
static gboolean _updated_powertop = FALSE;
static gboolean _has_signature = FALSE;
static gboolean _use_blocked = FALSE;
+static gboolean _use_eula = FALSE;
+static gboolean _use_gpg = FALSE;
/**
* backend_initialize:
@@ -209,11 +211,9 @@ backend_get_distro_upgrades (PkBackend *backend)
{
pk_backend_set_status (backend, PK_STATUS_ENUM_QUERY);
pk_backend_distro_upgrade (backend, PK_DISTRO_UPGRADE_ENUM_STABLE,
- "Fedora 9", "Fedora 9 is a Linux-based operating system "
- "that showcases the latest in free and open source software.");
+ "fedora-9", "Fedora 9");
pk_backend_distro_upgrade (backend, PK_DISTRO_UPGRADE_ENUM_UNSTABLE,
- "Fedora 10 RC1", "Fedora 10 RC1 is the first unstable version "
- "of Fedora for people to test.");
+ "fedora-10-rc1", "Fedora 10 RC1");
pk_backend_finished (backend);
}
@@ -428,7 +428,7 @@ backend_install_packages (PkBackend *backend, gchar **package_ids)
gboolean has_eula;
if (egg_strequal (package_ids[0], "vips-doc;7.12.4-2.fc8;noarch;linva")) {
- if (!_has_signature) {
+ if (_use_gpg && !_has_signature) {
pk_backend_repo_signature_required (backend, package_ids[0], "updates",
"http://example.com/gpgkey",
"Test Key (Fedora) fedora at example.com",
@@ -442,7 +442,7 @@ backend_install_packages (PkBackend *backend, gchar **package_ids)
}
eula_id = "eula_hughsie_dot_com";
has_eula = pk_backend_is_eula_valid (backend, eula_id);
- if (!has_eula) {
+ if (_use_eula && !has_eula) {
license_agreement = "Narrator: In A.D. 2101, war was beginning.\n"
"Captain: What happen ?\n"
"Mechanic: Somebody set up us the bomb.\n\n"
@@ -487,7 +487,7 @@ backend_install_signature (PkBackend *backend, PkSigTypeEnum type,
{
pk_backend_set_status (backend, PK_STATUS_ENUM_INSTALL);
if (type == PK_SIGTYPE_ENUM_GPG &&
- egg_strequal (package_id, "vips-doc;7.12.4-2.fc8;noarch;linva") &&
+ /* egg_strequal (package_id, "vips-doc;7.12.4-2.fc8;noarch;linva") && */
egg_strequal (key_id, "BB7576AC")) {
egg_debug ("installed signature %s for %s", key_id, package_id);
_has_signature = TRUE;
@@ -750,6 +750,12 @@ backend_update_packages_download_timeout (gpointer data)
guint sub;
if (_progress_percentage == 100) {
+ if (_use_blocked) {
+ pk_backend_package (backend, PK_INFO_ENUM_BLOCKED,
+ "gtkhtml2;2.19.1-4.fc8;i386;fedora",
+ "An HTML widget for GTK+ 2.0");
+ _updated_gtkhtml = FALSE;
+ }
pk_backend_finished (backend);
return FALSE;
}
@@ -773,12 +779,7 @@ backend_update_packages_download_timeout (gpointer data)
pk_backend_message (backend, PK_MESSAGE_ENUM_BROKEN_MIRROR, "fedora-updates-testing-debuginfo metadata is invalid");
pk_backend_message (backend, PK_MESSAGE_ENUM_BROKEN_MIRROR, "fedora-updates-testing-source metadata is invalid");
pk_backend_set_sub_percentage (backend, 100);
- if (_use_blocked) {
- pk_backend_package (backend, PK_INFO_ENUM_BLOCKED,
- "gtkhtml2;2.19.1-4.fc8;i386;fedora",
- "An HTML widget for GTK+ 2.0");
- _updated_gtkhtml = FALSE;
- } else {
+ if (!_use_blocked) {
pk_backend_package (backend, PK_INFO_ENUM_INSTALLING,
"gtkhtml2;2.19.1-4.fc8;i386;fedora",
"An HTML widget for GTK+ 2.0");
@@ -825,6 +826,50 @@ backend_update_packages_download_timeout (gpointer data)
static void
backend_update_packages (PkBackend *backend, gchar **package_ids)
{
+ const gchar *eula_id;
+ const gchar *license_agreement;
+ gboolean has_eula;
+ if (_use_gpg && !_has_signature) {
+ pk_backend_repo_signature_required (backend, package_ids[0], "updates",
+ "http://example.com/gpgkey",
+ "Test Key (Fedora) fedora at example.com",
+ "BB7576AC",
+ "D8CC 06C2 77EC 9C53 372F C199 B1EE 1799 F24F 1B08",
+ "2007-10-04", PK_SIGTYPE_ENUM_GPG);
+ pk_backend_error_code (backend, PK_ERROR_ENUM_GPG_FAILURE,
+ "GPG signed package could not be verified");
+ pk_backend_finished (backend);
+ return;
+ }
+ eula_id = "eula_hughsie_dot_com";
+ has_eula = pk_backend_is_eula_valid (backend, eula_id);
+ if (_use_eula && !has_eula) {
+ license_agreement = "Narrator: In A.D. 2101, war was beginning.\n"
+ "Captain: What happen ?\n"
+ "Mechanic: Somebody set up us the bomb.\n\n"
+ "Operator: We get signal.\n"
+ "Captain: What !\n"
+ "Operator: Main screen turn on.\n"
+ "Captain: It's you !!\n"
+ "CATS: How are you gentlemen !!\n"
+ "CATS: All your base are belong to us.\n"
+ "CATS: You are on the way to destruction.\n\n"
+ "Captain: What you say !!\n"
+ "CATS: You have no chance to survive make your time.\n"
+ "CATS: Ha Ha Ha Ha ....\n\n"
+ "Operator: Captain!! *\n"
+ "Captain: Take off every 'ZIG' !!\n"
+ "Captain: You know what you doing.\n"
+ "Captain: Move 'ZIG'.\n"
+ "Captain: For great justice.\n";
+ pk_backend_eula_required (backend, eula_id, package_ids[0],
+ "CATS Inc.", license_agreement);
+ pk_backend_error_code (backend, PK_ERROR_ENUM_NO_LICENSE_AGREEMENT,
+ "licence not installed so cannot install");
+ pk_backend_finished (backend);
+ return;
+ }
+
_package_ids = package_ids;
_package_current = 0;
_progress_percentage = 0;
commit 79e83ec2613d91c66c575fd273c90e309dfa4f84
Author: Richard Hughes <richard at hughsie.com>
Date: Tue Mar 3 10:27:25 2009 +0000
trivial: add a few of the new languages to LINGUAS
diff --git a/po/LINGUAS b/po/LINGUAS
index ad92ba8..60e81cd 100644
--- a/po/LINGUAS
+++ b/po/LINGUAS
@@ -3,6 +3,7 @@ ca
cs
de
el
+en_GB
es
fi
fr
@@ -11,9 +12,11 @@ he
hu
it
ml
+mr
ms
nb
nl
+pa
pl
pt_BR
ru
commit 9a3f47565af03a58dffd2bab72572e8a2baf787b
Author: Sandeep Sheshrao Shedmake <sshedmak at redhat.com>
Date: Tue Mar 3 09:35:25 2009 +0000
Updating Marathi Translations (190 strings).
Transmitted-via: Transifex (translate.fedoraproject.org)
diff --git a/po/mr.po b/po/mr.po
new file mode 100644
index 0000000..70975cd
--- /dev/null
+++ b/po/mr.po
@@ -0,0 +1,1025 @@
+# translation of packagekit.master.po to marathi
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+#
+# Sandeep Shedmake <sandeep.shedmake at gmail.com>, 2009.
+msgid ""
+msgstr ""
+"Project-Id-Version: packagekit.master\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2009-03-02 11:20+0000\n"
+"PO-Revision-Date: 2009-03-03 14:54+0530\n"
+"Last-Translator: Sandeep Shedmake <sandeep.shedmake at gmail.com>\n"
+"Language-Team: marathi\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
+"Plural-Forms: nplurals=2; plural=(n!=1);\n"
+
+#. TRANSLATORS: this is an atomic transaction
+#: ../client/pk-console.c:230
+msgid "Transaction"
+msgstr "वà¥à¤¯à¤µà¤¹à¤¾à¤°"
+
+#. TRANSLATORS: this is the time the transaction was started in system timezone
+#: ../client/pk-console.c:232
+msgid "System time"
+msgstr "पà¥à¤°à¤£à¤¾à¤²à¥ वà¥à¤³"
+
+#. TRANSLATORS: this is if the transaction succeeded or not
+#: ../client/pk-console.c:234
+msgid "Succeeded"
+msgstr "यशसà¥à¤µà¥"
+
+#. TRANSLATORS: if the repo is enabled
+#: ../client/pk-console.c:234 ../client/pk-console.c:401
+msgid "True"
+msgstr "True"
+
+#: ../client/pk-console.c:234 ../client/pk-console.c:401
+msgid "False"
+msgstr "False"
+
+#. TRANSLATORS: this is the transactions role, e.g. "update-system"
+#: ../client/pk-console.c:236
+msgid "Role"
+msgstr "Role"
+
+#. TRANSLATORS: this is The duration of the transaction
+#: ../client/pk-console.c:241
+msgid "Duration"
+msgstr "à¤à¤¾à¤²à¤¾à¤µà¤§à¥"
+
+#: ../client/pk-console.c:241
+msgid "(seconds)"
+msgstr "(सà¥à¤à¤à¤¦)"
+
+#. TRANSLATORS: this is The command line used to do the action
+#: ../client/pk-console.c:245
+msgid "Command line"
+msgstr "à¤à¤¦à¥à¤¶ à¤à¤³"
+
+#. TRANSLATORS: this is the user ID of the user that started the action
+#: ../client/pk-console.c:247
+msgid "User ID"
+msgstr "वापरà¤à¤°à¥à¤¤à¤¾ ID"
+
+#. TRANSLATORS: this is the username, e.g. hughsie
+#: ../client/pk-console.c:254
+msgid "Username"
+msgstr "वापरà¤à¤°à¥à¤¤à¤¾ नाव"
+
+#. TRANSLATORS: this is the users real name, e.g. "Richard Hughes"
+#: ../client/pk-console.c:258
+msgid "Real name"
+msgstr "वासà¥à¤¤à¤µà¤¿à¤ नाव"
+
+#: ../client/pk-console.c:266
+msgid "Affected packages:"
+msgstr "पà¥à¤°à¤à¤¾à¤µà¥à¤¤ सà¤à¤à¥à¤²:"
+
+#: ../client/pk-console.c:268
+msgid "Affected packages: None"
+msgstr "पà¥à¤°à¤à¤¾à¤µà¥à¤¤ सà¤à¤à¥à¤²: à¤à¤¾à¤¹à¤¿à¤ नाहà¥"
+
+#. TRANSLATORS: this is the distro, e.g. Fedora 10
+#: ../client/pk-console.c:293
+msgid "Distribution"
+msgstr "वितरण"
+
+#. TRANSLATORS: this is type of update, stable or testing
+#: ../client/pk-console.c:295
+msgid "Type"
+msgstr "पà¥à¤°à¤à¤¾à¤°"
+
+#. TRANSLATORS: this is any summary text describing the upgrade
+#. TRANSLATORS: this is the summary of the group
+#: ../client/pk-console.c:297 ../client/pk-console.c:320
+msgid "Summary"
+msgstr "साराà¤à¤¶"
+
+#. TRANSLATORS: this is the group category name
+#: ../client/pk-console.c:309
+msgid "Category"
+msgstr "पà¥à¤°à¤µà¤°à¥à¤"
+
+#. TRANSLATORS: this is group identifier
+#: ../client/pk-console.c:311
+msgid "ID"
+msgstr "ID"
+
+#. TRANSLATORS: this is the parent group
+#: ../client/pk-console.c:314
+msgid "Parent"
+msgstr "मà¥à¤à¥à¤¯"
+
+#. TRANSLATORS: this is the name of the parent group
+#: ../client/pk-console.c:317
+msgid "Name"
+msgstr "नाव"
+
+#. TRANSLATORS: this is preferred icon for the group
+#: ../client/pk-console.c:323
+msgid "Icon"
+msgstr "à¤à¤¿à¤¨à¥à¤¹"
+
+#. TRANSLATORS: this is a header for the package that can be updated
+#: ../client/pk-console.c:338
+msgid "Details about the update:"
+msgstr "à¤
दà¥à¤¯à¤¯à¤¾à¤µà¤¤ विषयॠतपशà¥à¤²:"
+
+#. TRANSLATORS: details about the update, package name and version
+#: ../client/pk-console.c:340
+msgid "Package"
+msgstr "सà¤à¤à¥à¤²"
+
+#. TRANSLATORS: details about the update, any packages that this update updates
+#: ../client/pk-console.c:343
+msgid "Updates"
+msgstr "à¤
दà¥à¤¯à¤¯à¤¾à¤µà¤¤"
+
+#. TRANSLATORS: details about the update, any packages that this update obsoletes
+#: ../client/pk-console.c:347
+msgid "Obsoletes"
+msgstr "à¤à¥à¤£à¥"
+
+#. TRANSLATORS: details about the update, the vendor URLs
+#: ../client/pk-console.c:351
+msgid "Vendor"
+msgstr "विà¤à¥à¤°à¥à¤¤à¤¾"
+
+#. TRANSLATORS: details about the update, the bugzilla URLs
+#: ../client/pk-console.c:355
+msgid "Bugzilla"
+msgstr "बà¤à¤à¥à¤²à¤¾"
+
+#. TRANSLATORS: details about the update, the CVE URLs
+#: ../client/pk-console.c:359
+msgid "CVE"
+msgstr "CVE"
+
+#. TRANSLATORS: details about the update, if the package requires a restart
+#: ../client/pk-console.c:363
+msgid "Restart"
+msgstr "पà¥à¤¨à¥à¤¹à¤¾ सà¥à¤°à¥ à¤à¤°à¤¾"
+
+#. TRANSLATORS: details about the update, any description of the update
+#: ../client/pk-console.c:367
+msgid "Update text"
+msgstr "à¤
दà¥à¤¯à¤¯à¤¾à¤µà¤¤ पाठà¥à¤¯"
+
+#. TRANSLATORS: details about the update, the changelog for the package
+#: ../client/pk-console.c:371
+msgid "Changes"
+msgstr "बदल"
+
+#. TRANSLATORS: details about the update, the ongoing state of the update
+#: ../client/pk-console.c:375
+msgid "State"
+msgstr "सà¥à¤¤à¤°"
+
+#. TRANSLATORS: details about the update, date the update was issued
+#: ../client/pk-console.c:380
+msgid "Issued"
+msgstr "वितरण दिनाà¤à¤"
+
+#. TRANSLATORS: details about the update, date the update was updated
+#: ../client/pk-console.c:385
+msgid "Updated"
+msgstr "à¤
दà¥à¤¯à¤¯à¤¾à¤µà¤¤à¥à¤¤"
+
+#: ../client/pk-console.c:472 ../client/pk-console.c:474
+msgid "Percentage"
+msgstr "à¤à¤à¥à¤à¥à¤µà¤¾à¤°à¥"
+
+#: ../client/pk-console.c:474
+msgid "Unknown"
+msgstr "à¤
परिà¤à¥à¤¤"
+
+#. TRANSLATORS: a package requires the system to be restarted
+#: ../client/pk-console.c:525
+msgid "System restart required by:"
+msgstr "पà¥à¤°à¤£à¤¾à¤²à¥ पà¥à¤¨à¥à¤¹à¤¾ à¤à¤¾à¤²à¥ à¤à¤°à¤£à¥ à¤à¤µà¤¶à¥à¤¯à¤:"
+
+#. TRANSLATORS: a package requires the session to be restarted
+#: ../client/pk-console.c:528
+msgid "Session restart required:"
+msgstr "सतà¥à¤° पà¥à¤¨à¥à¤¹à¤¾ à¤à¤¾à¤²à¥ à¤à¤°à¤£à¥ à¤à¤µà¤¶à¥à¤¯à¤:"
+
+#. TRANSLATORS: a package requires the application to be restarted
+#: ../client/pk-console.c:531
+msgid "Application restart required by:"
+msgstr "à¤
नà¥à¤ªà¥à¤°à¤¯à¥à¤ पà¥à¤¨à¥à¤¹à¤¾ à¤à¤¾à¤²à¥ à¤à¤°à¤£à¥ à¤à¤µà¤¶à¥à¤¯à¤:"
+
+#. TRANSLATORS: a package needs to restart they system
+#: ../client/pk-console.c:568
+msgid "Please restart the computer to complete the update."
+msgstr "à¤
दà¥à¤¯à¤¯à¤¾à¤µà¤¤ पà¥à¤°à¥à¤£ à¤à¤°à¤£à¥à¤¯à¤¾à¤à¤°à¥à¤¤à¤¾ à¤à¥à¤ªà¤¯à¤¾ सà¤à¤à¤£à¤ पà¥à¤¨à¥à¤¹à¤¾ à¤à¤¾à¤²à¥ à¤à¤°à¤¾."
+
+#. TRANSLATORS: a package needs to restart the session
+#: ../client/pk-console.c:571
+msgid "Please logout and login to complete the update."
+msgstr "à¤à¥à¤ªà¤¯à¤¾ वापरà¤à¤°à¥à¤¤à¤¾ बदला व à¤
दà¥à¤¯à¤¯à¤¾à¤µà¤¤ पà¥à¤°à¥à¤£ à¤à¤°à¤£à¥à¤¯à¤¾à¤à¤°à¥à¤¤à¤¾ पà¥à¤°à¤µà¥à¤¶ à¤à¤°à¤¾."
+
+#. TRANSLATORS: a package needs to restart the application
+#: ../client/pk-console.c:574
+msgid "Please restart the application as it is being used."
+msgstr "à¤à¥à¤ªà¤¯à¤¾ à¤
नà¥à¤ªà¥à¤°à¤¯à¥à¤ à¤à¥à¤¯à¤¾à¤¨à¥à¤°à¥à¤ª वापरलॠà¤à¤¾à¤¤à¥ तà¥à¤¯à¤¾à¤¨à¥à¤°à¥à¤ª पà¥à¤¨à¥à¤¹à¤¾ à¤à¤¾à¤²à¥ à¤à¤°à¤¾."
+
+#. TRANSLATORS: The package is already installed on the system
+#: ../client/pk-console.c:687
+#, c-format
+msgid "The package %s is already installed"
+msgstr "सà¤à¤à¥à¤² %s à¤à¤§à¤¿à¤ªà¤¾à¤¸à¥à¤¨à¤ पà¥à¤°à¤¤à¤¿à¤·à¥à¤ ापà¥à¤¤ à¤à¤¹à¥"
+
+#. TRANSLATORS: The package name was not found in any software sources. The detailed error follows
+#: ../client/pk-console.c:695
+#, c-format
+msgid "The package %s could not be installed: %s"
+msgstr "सà¤à¤à¥à¤² %s à¤à¥ पà¥à¤°à¤¤à¤¿à¤·à¥à¤ ापन शà¤à¥à¤¯ नाहà¥: %s"
+
+#. TRANSLATORS: There was a programming error that shouldn't happen. The detailed error follows
+#: ../client/pk-console.c:720 ../client/pk-console.c:747
+#: ../client/pk-console.c:843 ../client/pk-console.c:960
+#: ../client/pk-tools-common.c:62 ../client/pk-tools-common.c:81
+#: ../client/pk-tools-common.c:89
+#, c-format
+msgid "Internal error: %s"
+msgstr "à¤à¤à¤¤à¤°à¥à¤ तà¥à¤°à¥à¤à¥: %s"
+
+#. TRANSLATORS: There was an error installing the packages. The detailed error follows
+#: ../client/pk-console.c:728 ../client/pk-console.c:1356
+#, c-format
+msgid "This tool could not install the packages: %s"
+msgstr "हॠसाधन सà¤à¤à¥à¤² पà¥à¤°à¤¤à¤¿à¤·à¥à¤ ापà¥à¤¤ à¤à¤°à¥ शà¤à¤²à¥ नाहà¥: %s"
+
+#. TRANSLATORS: There was an error installing the files. The detailed error follows
+#: ../client/pk-console.c:755
+#, c-format
+msgid "This tool could not install the files: %s"
+msgstr "हॠसाधन फाà¤à¤² पà¥à¤°à¤¤à¤¿à¤·à¥à¤ ापà¥à¤¤ à¤à¤°à¥ शà¤à¤²à¥ नाहà¥: %s"
+
+#. TRANSLATORS: The package name was not found in the installed list. The detailed error follows
+#: ../client/pk-console.c:811
+#, c-format
+msgid "This tool could not remove %s: %s"
+msgstr "या साधन दà¥à¤µà¤¾à¤°à¥ %s à¤à¤¾à¤¢à¥à¤£ à¤à¤¾à¤à¤£à¥ शà¤à¥à¤¯ नाहà¥: %s"
+
+#. TRANSLATORS: There was an error removing the packages. The detailed error follows
+#: ../client/pk-console.c:834 ../client/pk-console.c:872
+#: ../client/pk-console.c:905
+#, c-format
+msgid "This tool could not remove the packages: %s"
+msgstr "या साधन दà¥à¤µà¤¾à¤°à¥ सà¤à¤à¥à¤² à¤à¤¾à¤¢à¥à¤£ à¤à¤¾à¤à¤£à¥ à¤
शà¤à¥à¤¯: %s"
+
+#. TRANSLATORS: When removing, we might have to remove other dependencies
+#: ../client/pk-console.c:884
+msgid "The following packages have to be removed:"
+msgstr "à¤à¤¾à¤²à¤¿à¤² सà¤à¤à¥à¤² à¤à¤¾à¤¢à¥à¤£ à¤à¤¾à¤à¤£à¥ à¤à¤µà¤¶à¥à¤¯à¤ à¤à¤¹à¥:"
+
+#. TRANSLATORS: We are checking if it's okay to remove a list of packages
+#: ../client/pk-console.c:891
+msgid "Proceed removing additional packages?"
+msgstr "à¤
à¤à¤¾à¤ सà¤à¤à¥à¤² à¤à¤¾à¤¢à¥à¤£ à¤à¤¾à¤à¤£à¥ à¤à¤¾à¤²à¥ ठà¥à¤µà¤¾à¤¯à¤à¥?"
+
+#. TRANSLATORS: We did not remove any packages
+#: ../client/pk-console.c:896
+msgid "The package removal was canceled!"
+msgstr "सà¤à¤à¥à¤² à¤à¤¾à¤¢à¥à¤£ à¤à¤¾à¤à¤£à¥ रदà¥à¤¦ à¤à¥à¤²à¥ à¤à¥à¤²à¥!"
+
+#. TRANSLATORS: The package name was not found in any software sources
+#: ../client/pk-console.c:937
+#, c-format
+msgid "This tool could not download the package %s as it could not be found"
+msgstr "हॠसाधन सà¤à¤à¥à¤² %s न à¤à¤¢à¤³à¤²à¥à¤¯à¤¾à¤®à¥à¤³à¥ डाà¤à¤¨à¤²à¥à¤¡ à¤à¤°à¥ शà¤à¤²à¥ नाहà¥"
+
+#. TRANSLATORS: Could not download the packages for some reason. The detailed error follows
+#: ../client/pk-console.c:968
+#, c-format
+msgid "This tool could not download the packages: %s"
+msgstr "हॠसाधन सà¤à¤à¥à¤² डाà¤à¤¨à¤²à¥à¤¡ à¤à¤°à¥ शà¤à¤²à¥ नाहà¥: %s"
+
+#. TRANSLATORS: There was an error getting the list of files for the package. The detailed error follows
+#: ../client/pk-console.c:995 ../client/pk-console.c:1004
+#, c-format
+msgid "This tool could not update %s: %s"
+msgstr "हॠसाधन %s à¤
दà¥à¤¯à¤¯à¤¾à¤µà¤¤à¥à¤¤ à¤à¤°à¥ शà¤à¤²à¥ नाहà¥: %s"
+
+#. TRANSLATORS: There was an error getting the list of files for the package. The detailed error follows
+#: ../client/pk-console.c:1026 ../client/pk-console.c:1034
+#, c-format
+msgid "This tool could not get the requirements for %s: %s"
+msgstr "हॠसाधन %s à¤à¤°à¥à¤¤à¤¾ à¤à¤µà¤¶à¥à¤¯à¤à¤¤à¤¾ पà¥à¤°à¤¾à¤ªà¥à¤¤ à¤à¤°à¥ शà¤à¤²à¥ नाहà¥: %s"
+
+#. TRANSLATORS: There was an error getting the dependencies for the package. The detailed error follows
+#: ../client/pk-console.c:1056 ../client/pk-console.c:1064
+#, c-format
+msgid "This tool could not get the dependencies for %s: %s"
+msgstr "हॠसाधन %s à¤à¤°à¥à¤¤à¤¾ à¤
वलà¤à¤¬à¤¨ पà¥à¤°à¤¾à¤ªà¥à¤¤ à¤à¤°à¥ शà¤à¤¨à¥ नाहà¥: %s"
+
+#. TRANSLATORS: There was an error getting the details about the package. The detailed error follows
+#: ../client/pk-console.c:1086 ../client/pk-console.c:1094
+#, c-format
+msgid "This tool could not get package details for %s: %s"
+msgstr "हॠसाधन %s à¤à¤°à¥à¤¤à¤¾ सà¤à¤à¥à¤² तपशà¥à¤² पà¥à¤°à¤¾à¤ªà¥à¤¤ à¤à¤°à¥ शà¤à¤²à¥ नाहà¥: %s"
+
+#. TRANSLATORS: The package name was not found in any software sources. The detailed error follows
+#: ../client/pk-console.c:1116
+#, c-format
+msgid "This tool could not find the files for %s: %s"
+msgstr "हॠसाधन %s à¤à¤°à¥à¤¤à¤¾ फाà¤à¤² शà¥à¤§à¥ शà¤à¤²à¥ नाहà¥: %s"
+
+#. TRANSLATORS: There was an error getting the list of files for the package. The detailed error follows
+#: ../client/pk-console.c:1124
+#, c-format
+msgid "This tool could not get the file list for %s: %s"
+msgstr "हॠसाधन %s à¤à¤°à¥à¤¤à¤¾ फाà¤à¤² यादॠपà¥à¤°à¤¾à¤ªà¥à¤¤ à¤à¤°à¥ शà¤à¤²à¥ नाहà¥: %s"
+
+#. TRANSLATORS: There was an error getting the list of packages. The filename follows
+#: ../client/pk-console.c:1146
+#, c-format
+msgid "File already exists: %s"
+msgstr "फाà¤à¤² à¤à¤§à¤¿à¤ªà¤¾à¤¸à¥à¤¨à¤ à¤
सà¥à¤¤à¤¿à¤¤à¥à¤µà¤¾à¤¤ à¤à¤¹à¥: %s"
+
+#. TRANSLATORS: follows a list of packages to install
+#: ../client/pk-console.c:1151 ../client/pk-console.c:1207
+#: ../client/pk-console.c:1282
+msgid "Getting package list"
+msgstr "सà¤à¤à¥à¤² यादॠपà¥à¤°à¤¾à¤ªà¥à¤¤ à¤à¤°à¤¤ à¤à¤¹à¥"
+
+#. TRANSLATORS: There was an error getting the list of packages. The detailed error follows
+#: ../client/pk-console.c:1157 ../client/pk-console.c:1213
+#: ../client/pk-console.c:1288
+#, c-format
+msgid "This tool could not get package list: %s"
+msgstr "हॠसाधन सà¤à¤à¥à¤² यादॠपà¥à¤°à¤¾à¤ªà¥à¤¤ à¤à¤°à¥ शà¤à¤²à¥ नाहà¥: %s"
+
+#. TRANSLATORS: There was an error saving the list
+#: ../client/pk-console.c:1168
+msgid "Failed to save to disk"
+msgstr "डिसà¥à¤ वर साठविणà¥à¤¯à¤¾à¤¸ à¤
पयशà¥"
+
+#. TRANSLATORS: There was an error getting the list. The filename follows
+#: ../client/pk-console.c:1202 ../client/pk-console.c:1277
+#, c-format
+msgid "File does not exist: %s"
+msgstr "फाà¤à¤² à¤
सà¥à¤¤à¤¿à¤¤à¥à¤µà¤¾à¤¤ नाहà¥: %s"
+
+#. TRANSLATORS: header to a list of packages newly added
+#: ../client/pk-console.c:1234
+msgid "Packages to add"
+msgstr "समावà¥à¤· à¤à¤°à¤£à¥à¤¯à¤¾à¤à¥à¤à¥ सà¤à¤à¥à¤²"
+
+#. TRANSLATORS: header to a list of packages removed
+#: ../client/pk-console.c:1242
+msgid "Packages to remove"
+msgstr "à¤à¤¾à¤¢à¥à¤£ à¤à¤¾à¤à¤£à¥à¤¯à¤¾à¤à¥à¤à¥ सà¤à¤à¥à¤²"
+
+#. TRANSLATORS: We didn't find any differences
+#: ../client/pk-console.c:1310
+msgid "No new packages need to be installed"
+msgstr "à¤à¥à¤ लà¥à¤¹à¥ नवà¥à¤¨ सà¤à¤à¥à¤² पà¥à¤°à¤¤à¤¿à¤·à¥à¤ ापà¥à¤¤ à¤à¤°à¤£à¥à¤¯à¤¾à¤à¥ à¤à¤µà¤¶à¥à¤¯à¤à¤¤à¤¾ नाहà¥"
+
+#. TRANSLATORS: follows a list of packages to install
+#: ../client/pk-console.c:1316
+msgid "To install"
+msgstr "पà¥à¤°à¤¤à¤¿à¤·à¥à¤ ापन à¤à¤°à¤¾"
+
+#. TRANSLATORS: searching takes some time....
+#: ../client/pk-console.c:1328
+msgid "Searching for package: "
+msgstr "सà¤à¤à¥à¤² à¤à¤°à¥à¤¤à¤¾ शà¥à¤§à¤¤ à¤à¤¹à¥: "
+
+#. TRANSLATORS: package was not found -- this is the end of a string ended in ...
+#: ../client/pk-console.c:1332
+msgid "not found."
+msgstr "à¤à¤¢à¤³à¤²à¥ नाहà¥."
+
+#. TRANSLATORS: We didn't find any packages to install
+#: ../client/pk-console.c:1343
+msgid "No packages can be found to install"
+msgstr "पà¥à¤°à¤¤à¤¿à¤·à¥à¤ ापन à¤à¤°à¥à¤¤à¤¾ à¤à¥à¤ लà¥à¤¹à¥ सà¤à¤à¥à¤² à¤à¤¢à¤³à¤²à¥ नाहà¥"
+
+#. TRANSLATORS: installing new packages from package list
+#: ../client/pk-console.c:1349
+msgid "Installing packages"
+msgstr "सà¤à¤à¥à¤² पà¥à¤°à¤¤à¤¿à¤·à¥à¤ ापà¥à¤¤ à¤à¤°à¤¤ à¤à¤¹à¥"
+
+#. TRANSLATORS: The package name was not found in any software sources. The detailed error follows
+#: ../client/pk-console.c:1385
+#, c-format
+msgid "This tool could not find the update details for %s: %s"
+msgstr "हॠसाधन %s à¤à¤°à¥à¤¤à¤¾ à¤
दà¥à¤¯à¤¯à¤¾à¤µà¤¤ तपशà¥à¤² शà¥à¤§à¥ शà¤à¤²à¥ नाहà¥: %s"
+
+#. TRANSLATORS: There was an error getting the details about the update for the package. The detailed error follows
+#: ../client/pk-console.c:1393
+#, c-format
+msgid "This tool could not get the update details for %s: %s"
+msgstr "हॠसाधन %s à¤à¤°à¥à¤¤à¤¾ à¤
दà¥à¤¯à¤¯à¤¾à¤µà¤¤ तपशà¥à¤² पà¥à¤°à¤¾à¤ªà¥à¤¤ à¤à¤°à¥ शà¤à¤²à¥ नाहà¥: %s"
+
+#. TRANSLATORS: This was an unhandled error, and we don't have _any_ context
+#: ../client/pk-console.c:1439
+msgid "Error:"
+msgstr "तà¥à¤°à¥à¤à¥:"
+
+#. TRANSLATORS: This a list of details about the package
+#: ../client/pk-console.c:1453
+msgid "Package description"
+msgstr "सà¤à¤à¥à¤² वरà¥à¤£à¤¨"
+
+#. TRANSLATORS: This a list files contained in the package
+#: ../client/pk-console.c:1487
+msgid "Package files"
+msgstr "सà¤à¤à¥à¤² फाà¤à¤²"
+
+#. TRANSLATORS: This where the package has no files
+#: ../client/pk-console.c:1495
+msgid "No files"
+msgstr "फाà¤à¤¨ नाहà¥"
+
+#. TRANSLATORS: This a request for a GPG key signature from the backend, which the client will prompt for later
+#: ../client/pk-console.c:1518
+msgid "Repository signature required"
+msgstr "रà¥à¤ªà¥à¤à¤à¤°à¥ सà¥à¤µà¤¾à¤à¥à¤·à¤°à¥ à¤à¤µà¤¶à¥à¤¯à¤ à¤à¤¹à¥"
+
+#. TRANSLATORS: This a prompt asking the user to import the security key
+#: ../client/pk-console.c:1528
+msgid "Do you accept this signature?"
+msgstr "तà¥à¤®à¥à¤¹à¥ हॠसà¥à¤µà¤¾à¤à¥à¤·à¤°à¥ सà¥à¤µà¥à¤à¤¾à¤°à¤¤à¤¾?"
+
+#. TRANSLATORS: This is where the user declined the security key
+#: ../client/pk-console.c:1532
+msgid "The signature was not accepted."
+msgstr "सà¥à¤µà¤¾à¤à¥à¤·à¤°à¥ सà¥à¤µà¥à¤à¤¾à¤°à¤²à¥ à¤à¥à¤²à¥ नाहà¥."
+
+#. TRANSLATORS: This a request for a EULA
+#: ../client/pk-console.c:1566
+msgid "End user license agreement required"
+msgstr "वापरà¤à¤°à¥à¤¤à¤¾ परवाना à¤à¤°à¤¾à¤° à¤à¤µà¤¶à¥à¤¯à¤ à¤à¤¹à¥"
+
+#. TRANSLATORS: This a prompt asking the user to agree to the license
+#: ../client/pk-console.c:1573
+msgid "Do you agree to this license?"
+msgstr "तà¥à¤®à¥à¤¹à¥ हा परवाना सà¥à¤µà¥à¤à¤¾à¤°à¤£à¥à¤¯à¤¾à¤à¥ à¤à¤¾à¤¤à¥à¤°à¥ दà¥à¤¤à¤¾?"
+
+#. TRANSLATORS: This is where the user declined the license
+#: ../client/pk-console.c:1577
+msgid "The license was refused."
+msgstr "परवाना फà¥à¤à¤¾à¤³à¤²à¥ à¤à¥à¤²à¥."
+
+#. TRANSLATORS: This is when the daemon crashed, and we are up shit creek without a paddle
+#: ../client/pk-console.c:1606
+msgid "The daemon crashed mid-transaction!"
+msgstr "डिमन वà¥à¤¯à¤µà¤¹à¤¾à¤°à¤à¥à¤¯à¤¾ मधà¥à¤®à¤§ à¤à¥à¤°à¥
श à¤à¤¾à¤²à¥!"
+
+#. TRANSLATORS: This is the header to the --help menu
+#: ../client/pk-console.c:1659
+msgid "PackageKit Console Interface"
+msgstr "PackageKit à¤à¤¨à¥à¤¸à¥à¤² सà¤à¤µà¤¾à¤¦"
+
+#. these are commands we can use with pkcon
+#: ../client/pk-console.c:1661
+msgid "Subcommands:"
+msgstr "à¤à¤ªà¤à¤¦à¥à¤¶:"
+
+#. TRANSLATORS: command line argument, if we should show debugging information
+#. TRANSLATORS: if we should show debugging data
+#: ../client/pk-console.c:1753 ../client/pk-generate-pack.c:185
+#: ../client/pk-monitor.c:125
+#: ../contrib/command-not-found/pk-command-not-found.c:510
+#: ../contrib/app-install/pk-app-install-add.c:244
+#: ../contrib/app-install/pk-app-install-create.c:48
+#: ../contrib/app-install/pk-app-install-generate.c:244
+#: ../contrib/app-install/pk-app-install-remove.c:87 ../src/pk-main.c:199
+msgid "Show extra debugging information"
+msgstr "à¤
à¤à¤¾à¤ डिबà¤à¥à¤à¤ माहितॠदाà¤à¤µà¤¾"
+
+#. TRANSLATORS: command line argument, just show the version string
+#: ../client/pk-console.c:1756 ../client/pk-monitor.c:127
+msgid "Show the program version and exit"
+msgstr "à¤à¤¾à¤°à¥à¤¯à¤à¥à¤°à¤® à¤à¤µà¥à¤¤à¥à¤¤à¥ दाà¤à¤µà¤¾ व बाहà¥à¤° पडा"
+
+#. TRANSLATORS: command line argument, use a filter to narrow down results
+#: ../client/pk-console.c:1759
+msgid "Set the filter, e.g. installed"
+msgstr "à¤à¤¾à¤³à¤£à¥ निशà¥à¤à¤¿à¤¤ à¤à¤°à¤¾, à¤.दा. पà¥à¤°à¤¤à¤¿à¤·à¥à¤ ापà¥à¤¤"
+
+#. TRANSLATORS: command line argument, work asynchronously
+#: ../client/pk-console.c:1762
+msgid "Exit without waiting for actions to complete"
+msgstr "à¤à¥à¤¤à¥ पà¥à¤°à¥à¤£ à¤à¥à¤²à¥à¤¯à¤¾à¤µà¤¿à¤¨à¤¾ बाहà¥à¤° पडा"
+
+#. TRANSLATORS: This is when we could not connect to the system bus, and is fatal
+#: ../client/pk-console.c:1789
+msgid "This tool could not connect to system DBUS."
+msgstr "हॠसाधन पà¥à¤°à¤£à¤¾à¤²à¥ DBUS शॠà¤à¥à¤³à¤µà¤£à¥ सà¥à¤¥à¤¾à¤ªà¥à¤¤ à¤à¤°à¤£à¥à¤¯à¤¾à¤¸ à¤
शà¤à¥à¤¯."
+
+#. TRANSLATORS: The user specified an incorrect filter
+#: ../client/pk-console.c:1876
+msgid "The filter specified was invalid"
+msgstr "निशà¥à¤à¤¿à¤¤ à¤à¤¾à¤³à¤£à¥ à¤
वà¥à¤§ नà¥à¤°à¥à¤ª à¤à¤¢à¤³à¤²à¥"
+
+#. TRANSLATORS: a search type can be name, details, file, etc
+#: ../client/pk-console.c:1894
+msgid "A search type is required, e.g. name"
+msgstr "शà¥à¤§ पà¥à¤°à¤à¤¾à¤° à¤à¤µà¤¶à¥à¤¯à¤, à¤.दा. नाव"
+
+#. TRANSLATORS: the user needs to provide a search term
+#: ../client/pk-console.c:1900 ../client/pk-console.c:1908
+#: ../client/pk-console.c:1916 ../client/pk-console.c:1924
+msgid "A search term is required"
+msgstr "शà¥à¤§ सà¤à¤à¥à¤à¤¾ à¤à¤µà¤¶à¥à¤¯à¤"
+
+#. TRANSLATORS: the search type was provided, but invalid
+#: ../client/pk-console.c:1930
+msgid "Invalid search type"
+msgstr "à¤
वà¥à¤§ शà¥à¤§ पà¥à¤°à¤à¤¾à¤°"
+
+#. TRANSLATORS: the user did not specify what they wanted to install
+#: ../client/pk-console.c:1936
+msgid "A package name or filename to install is required"
+msgstr "पà¥à¤°à¤¤à¤¿à¤·à¥à¤ पन à¤à¤°à¥à¤¤à¤¾ सà¤à¤à¥à¤² नाव à¤à¤¿à¤à¤µà¤¾ फाà¤à¤²à¤¨à¤¾à¤µ à¤à¤µà¤¶à¥à¤¯à¤ à¤à¤¹à¥"
+
+#. TRANSLATORS: geeky error, 99.9999% of users won't see this
+#: ../client/pk-console.c:1944
+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:1952
+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:1959
+msgid "A destination directory and then the package names to download are required"
+msgstr "लà¤à¥à¤·à¥à¤¯ डिरà¥à¤à¥à¤à¥à¤°à¥ व तà¥à¤¯à¤¾à¤¨à¤à¤¤à¤° डाà¤à¤¨à¤²à¥à¤¡ à¤à¤°à¥à¤¤à¤¾ सà¤à¤à¥à¤² नाव à¤à¤µà¤¶à¥à¤¯à¤ à¤à¤¹à¥"
+
+#. TRANSLATORS: the directory does not exist, so we can't continue
+#: ../client/pk-console.c:1965
+msgid "Directory not found"
+msgstr "डिरà¥à¤à¥à¤à¥à¤°à¥ à¤à¤¢à¤³à¤²à¥ नाहà¥"
+
+#. TRANSLATORS: geeky error, 99.9999% of users won't see this
+#: ../client/pk-console.c:1972
+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:1981
+msgid "A transaction identifier (tid) is required"
+msgstr "transaction identifier (tid) à¤à¤µà¤¶à¥à¤¯à¤ à¤à¤¹à¥"
+
+#. TRANSLATORS: The user did not specify a package name
+#: ../client/pk-console.c:1997
+msgid "A package name to resolve is required"
+msgstr "निरà¥à¤§à¤¾à¤°à¤£ à¤à¤°à¥à¤¤à¤¾ सà¤à¤à¥à¤² नाव à¤à¤µà¤¶à¥à¤¯à¤ à¤à¤¹à¥"
+
+#. TRANSLATORS: The user did not specify a repository (software source) name
+#: ../client/pk-console.c:2005 ../client/pk-console.c:2013
+msgid "A repository name is required"
+msgstr "रà¥à¤ªà¥à¤à¤¿à¤à¤°à¥ नाव à¤à¤µà¤¶à¥à¤¯à¤ à¤à¤¹à¥"
+
+#. TRANSLATORS: The user didn't provide any data
+#: ../client/pk-console.c:2021
+msgid "A repo name, parameter and value are required"
+msgstr "रà¥à¤ªà¥ नाव, बाब व मà¥à¤²à¥à¤¯ à¤à¤µà¤¶à¥à¤¯à¤ à¤à¤¹à¥"
+
+#. TRANSLATORS: The user didn't specify what action to use
+#: ../client/pk-console.c:2034
+msgid "An action, e.g. 'update-system' is required"
+msgstr "à¤à¥à¤¤à¥, à¤.दा. 'update-system' à¤à¤µà¤¶à¥à¤¯à¤ à¤à¤¹à¥"
+
+#. TRANSLATORS: The user specified an invalid action
+#: ../client/pk-console.c:2040
+msgid "A correct role is required"
+msgstr "वरà¥à¤¤à¤®à¤¾à¤¨ à¤à¥à¤®à¤¿à¤à¤¾ à¤à¤µà¤¶à¥à¤¯à¤ à¤à¤¹à¥"
+
+#. TRANSLATORS: we keep a database updated with the time that an action was last executed
+#: ../client/pk-console.c:2046
+msgid "Failed to get the time since this action was last completed"
+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:2055 ../client/pk-console.c:2066
+#: ../client/pk-console.c:2074 ../client/pk-console.c:2090
+#: ../client/pk-console.c:2098 ../client/pk-generate-pack.c:241
+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:2082
+msgid "A package provide string is required"
+msgstr "सà¤à¤à¥à¤² दà¥à¤µà¤¾à¤°à¥ पà¥à¤°à¤µà¤¿à¤²à¥à¤²à¥ à¤
à¤à¥à¤·à¤°à¤®à¤¾à¤³à¤¾ à¤à¤µà¤¶à¥à¤¯à¤ à¤à¤¹à¥"
+
+#. TRANSLATORS: The user didn't specify a filename to create as a list
+#: ../client/pk-console.c:2106
+msgid "A list file name to create is required"
+msgstr "बनविणà¥à¤¯à¤¾à¤à¤°à¥à¤¤à¤¾ यादॠफाà¤à¤² नाव à¤à¤µà¤¶à¥à¤¯à¤ à¤à¤¹à¥"
+
+#. TRANSLATORS: The user didn't specify a filename to open as a list
+#: ../client/pk-console.c:2115 ../client/pk-console.c:2124
+msgid "A list file to open is required"
+msgstr "à¤à¤à¤¡à¤£à¥à¤¯à¤¾à¤à¤°à¥à¤¤à¤¾ यादॠफाà¤à¤² à¤à¤µà¤¶à¥à¤¯à¤ à¤à¤¹à¥"
+
+#. TRANSLATORS: The user tried to use an unsupported option on the command line
+#: ../client/pk-console.c:2177
+#, c-format
+msgid "Option '%s' is not supported"
+msgstr "परà¥à¤¯à¤¾à¤¯ '%s' समरà¥à¤¥à¥à¤¤ नाहà¥"
+
+#. TRANSLATORS: User does not have permission to do this
+#: ../client/pk-console.c:2190
+msgid "Incorrect privileges for this operation"
+msgstr "या à¤à¥à¤°à¤¿à¤¯à¤¾ à¤à¤°à¥à¤¤à¤¾ à¤
यà¥à¤à¥à¤¯ परवानà¤à¥"
+
+#. TRANSLATORS: Generic failure of what they asked to do
+#: ../client/pk-console.c:2193
+msgid "Command failed"
+msgstr "à¤à¤¦à¥à¤¶ à¤
पयशà¥"
+
+#. TRANSLATORS: This is the state of the transaction
+#: ../client/pk-generate-pack.c:101
+msgid "Downloading"
+msgstr "डाà¤à¤¨à¤²à¥à¤¡ à¤à¤°à¤¤ à¤à¤¹à¥"
+
+#. TRANSLATORS: This is when the main packages are being downloaded
+#: ../client/pk-generate-pack.c:121
+msgid "Downloading packages"
+msgstr "सà¤à¤à¥à¤² डाà¤à¤¨à¤²à¥à¤¡ à¤à¤°à¤¤ à¤à¤¹à¥"
+
+#. TRANSLATORS: This is when the dependency packages are being downloaded
+#: ../client/pk-generate-pack.c:126
+msgid "Downloading dependencies"
+msgstr "à¤
वलà¤à¤¬à¤¨ डाà¤à¤¨à¤²à¥à¤¡ à¤à¤°à¤¤ à¤à¤¹à¥"
+
+#. TRANSLATORS: we can exclude certain packages (glibc) when we know they'll exist on the target
+#: ../client/pk-generate-pack.c:188
+msgid "Set the file name of dependencies to be excluded"
+msgstr "वà¤à¤³à¤£à¥à¤¯à¤¾à¤à¥à¤à¥ à¤
वलà¤à¤¬à¤¨à¤à¥ फाà¤à¤² नाव निशà¥à¤à¤¿à¤¤ à¤à¤°à¤¾"
+
+#. TRANSLATORS: the output location
+#: ../client/pk-generate-pack.c:191
+msgid "The output file or directory (the current directory is used if ommitted)"
+msgstr "à¤à¤à¤à¤ªà¥à¤ फाà¤à¤² à¤à¤¿à¤à¤µà¤¾ डिरà¥à¤à¥à¤à¥à¤°à¥ (वà¤à¤³à¤²à¥à¤¯à¤¾à¤¸ वरà¥à¤¤à¤®à¤¾à¤¨ डिरà¥à¤à¥à¤à¥à¤°à¥à¤à¤¾ वापर à¤à¤°à¤¾)"
+
+#. TRANSLATORS: put a list of packages in the pack
+#: ../client/pk-generate-pack.c:194
+msgid "The package to be put into the service pack"
+msgstr "सà¥à¤µà¤¾ पà¥
ठà¤
à¤à¤¤à¤°à¥à¤à¤¤ समाविषà¥à¤ à¤à¤°à¤£à¥à¤¯à¤¾à¤à¥à¤à¥ सà¤à¤à¥à¤²"
+
+#. TRANSLATORS: put all pending updates in the pack
+#: ../client/pk-generate-pack.c:197
+msgid "Put all updates available in the service pack"
+msgstr "सà¥à¤µà¤¾ पà¥
ठà¤
à¤à¤¤à¤°à¥à¤à¤¤ सरà¥à¤µ à¤à¤ªà¤²à¤¬à¥à¤§ à¤
दà¥à¤¯à¤¯à¤¾à¤µà¤¤ समाविषà¥à¤ à¤à¤°à¤¾"
+
+#. TRANSLATORS: This is when the user fails to supply the correct arguments
+#: ../client/pk-generate-pack.c:225
+msgid "Neither --package or --updates option selected."
+msgstr "--package à¤à¤¿à¤à¤µà¤¾ --updates परà¥à¤¯à¤¾à¤¯ निवडलॠनाहà¥."
+
+#. TRANSLATORS: This is when the user fails to supply just one argument
+#: ../client/pk-generate-pack.c:233
+msgid "Both options selected."
+msgstr "दà¥à¤¨à¥à¤¹à¥ परà¥à¤¯à¤¾à¤¯ निवडलà¥."
+
+#. TRANSLATORS: This is when the user fails to supply the output
+#: ../client/pk-generate-pack.c:249
+msgid "A output directory or file name is required"
+msgstr "à¤à¤à¤à¤ªà¥à¤ डिरà¥à¤à¥à¤à¥à¤°à¥ à¤à¤¿à¤à¤µà¤¾ फाà¤à¤² नाव à¤à¤µà¤¶à¥à¤¯à¤ à¤à¤¹à¥"
+
+#. TRANSLATORS: This is when the backend doesn't have the capability to get-depends
+#. TRANSLATORS: This is when the backend doesn't have the capability to download
+#: ../client/pk-generate-pack.c:267 ../client/pk-generate-pack.c:273
+msgid "The package manager cannot perform this type of operation."
+msgstr "सà¤à¤à¥à¤² वà¥à¤¯à¤µà¤¸à¥à¤¥à¤¾à¤ªà¤ या पà¥à¤°à¤à¤¾à¤°à¤à¥ à¤à¤¾à¤°à¥à¤¯ à¤à¤¾à¤°à¥à¤¯à¤¾à¤¨à¥à¤µà¥à¤¤ à¤à¤°à¥ शà¤à¤¤ नाहà¥."
+
+#. TRANSLATORS: the user specified an absolute path, but didn't get the extension correct
+#: ../client/pk-generate-pack.c:285
+msgid "If specifying a file, the service pack name must end with"
+msgstr "फाà¤à¤² निशà¥à¤à¤¿à¤¤ à¤à¥à¤²à¥à¤¯à¤¾à¤¸, सà¥à¤µà¤¾ पà¥
ठनाव यानà¥à¤°à¥à¤ª समापà¥à¤¤ वà¥à¤¹à¤¾à¤¯à¤²à¤¾ हवà¥"
+
+#. TRANSLATORS: This is when file already exists
+#: ../client/pk-generate-pack.c:301
+msgid "A pack with the same name already exists, do you want to overwrite it?"
+msgstr "समान नावाà¤à¥ पà¥
ठà¤à¤§à¤¿à¤ªà¤¾à¤¸à¥à¤¨à¤ à¤
सà¥à¤¤à¤¿à¤¤à¥à¤µà¤¾à¤¤ à¤à¤¹à¥, तà¥à¤®à¥à¤¹à¤¾à¤²à¤¾ à¤à¥à¤¡à¥à¤¨ पà¥à¤¨à¥à¤¹à¤¾ लिहायà¤à¥?"
+
+#. TRANSLATORS: This is when the pack was not overwritten
+#: ../client/pk-generate-pack.c:304
+msgid "The pack was not overwritten."
+msgstr "पà¥
ठà¤à¥à¤¡à¥à¤¨ पà¥à¤¨à¥à¤¹à¤¾ लिहà¥à¤²à¥ à¤à¥à¤²à¥ नाहà¥."
+
+#. TRANSLATORS: This is when the temporary directory cannot be created, the directory name follows
+#: ../client/pk-generate-pack.c:317
+msgid "Failed to create directory:"
+msgstr "डिरà¥à¤à¥à¤à¥à¤°à¥ बनविणà¥à¤¯à¤¾à¤¸ à¤
पयशà¥:"
+
+#. TRANSLATORS: This is when the list of packages from the remote computer cannot be opened
+#: ../client/pk-generate-pack.c:327
+msgid "Failed to open package list."
+msgstr "सà¤à¤à¥à¤² यादॠà¤à¤à¤¡à¤£à¥à¤¯à¤¾à¤¸ à¤
पयशà¥."
+
+#. TRANSLATORS: The package name is being matched up to available packages
+#: ../client/pk-generate-pack.c:338
+msgid "Finding package name."
+msgstr "सà¤à¤à¥à¤² नाव शà¥à¤§à¤¤ à¤à¤¹à¥."
+
+#. TRANSLATORS: This is when the package cannot be found in any software source. The detailed error follows
+#: ../client/pk-generate-pack.c:342
+#, c-format
+msgid "Failed to find package '%s': %s"
+msgstr "सà¤à¤à¥à¤² '%s' à¤à¤¢à¤³à¤²à¥ नाहà¥: %s"
+
+#. TRANSLATORS: This is telling the user we are in the process of making the pack
+#: ../client/pk-generate-pack.c:359
+msgid "Creating service pack..."
+msgstr "सà¥à¤µà¤¾ पà¥
ठबनवत à¤à¤¹à¥..."
+
+#. TRANSLATORS: we succeeded in making the file
+#: ../client/pk-generate-pack.c:366
+#, c-format
+msgid "Service pack created '%s'"
+msgstr "सà¥à¤µà¤¾ पà¥
ठ'%s' बनविलà¥"
+
+#. TRANSLATORS: we failed to make te file
+#: ../client/pk-generate-pack.c:371
+#, c-format
+msgid "Failed to create '%s': %s"
+msgstr "'%s' बनविणà¥à¤¯à¤¾à¤¸ à¤
पयशà¥: %s"
+
+#. TRANSLATORS: this is a program that monitors PackageKit
+#: ../client/pk-monitor.c:143
+msgid "PackageKit Monitor"
+msgstr "PackageKit Monitor"
+
+#. TRANSLATORS: The package was not found in any software sources
+#: ../client/pk-tools-common.c:118
+msgid "The package could not be found"
+msgstr "सà¤à¤à¥à¤² à¤à¤¢à¤³à¤²à¥ नाहà¥"
+
+#. TRANSLATORS: more than one package could be found that matched, to follow is a list of possible packages
+#: ../client/pk-tools-common.c:130
+msgid "More than one package matches:"
+msgstr "à¤à¤à¤¾à¤ªà¥à¤à¥à¤·à¤¾ à¤à¤¾à¤¸à¥à¤¤ सà¤à¤à¥à¤² à¤à¥à¤³à¤µà¤£à¥:"
+
+#. TRANSLATORS: This finds out which package in the list to use
+#: ../client/pk-tools-common.c:137
+msgid "Please choose the correct package: "
+msgstr "à¤à¥à¤ªà¤¯à¤¾ यà¥à¤à¥à¤¯ सà¤à¤à¥à¤² निवडा: "
+
+#: ../client/pk-tools-common.c:162
+#, c-format
+msgid "Please enter a number from 1 to %i: "
+msgstr "à¤à¥à¤ªà¤¯à¤¾ 1 तॠ%i à¤à¥à¤°à¤®à¤¾à¤à¤ निवडा: "
+
+#. TRANSLATORS: we failed to find the package, this shouldn't happen
+#: ../contrib/command-not-found/pk-command-not-found.c:361
+msgid "Failed to search for file"
+msgstr "फाà¤à¤² à¤à¤°à¥à¤¤à¤¾ शà¥à¤§ à¤à¤°à¤£à¥à¤¯à¤¾à¤¸ à¤
पयशà¥"
+
+#. TRANSLATORS: we failed to launch the executable, the error follows
+#: ../contrib/command-not-found/pk-command-not-found.c:485
+msgid "Failed to launch:"
+msgstr "पà¥à¤°à¤à¥à¤·à¥à¤ªà¥à¤¤ à¤à¤°à¤£à¥à¤¯à¤¾à¤¸ à¤
पयशà¥:"
+
+#. TRANSLATORS: tool that gets called when the command is not found
+#: ../contrib/command-not-found/pk-command-not-found.c:526
+msgid "PackageKit Command Not Found"
+msgstr "PackageKit à¤à¤¦à¥à¤¶ à¤à¤¢à¤³à¤²à¥ नाहà¥"
+
+#. TRANSLATORS: the prefix of all the output telling the user why it's not executing
+#: ../contrib/command-not-found/pk-command-not-found.c:548
+msgid "Command not found."
+msgstr "à¤à¤¦à¥à¤¶ à¤à¤¢à¤³à¤²à¥ नाहà¥."
+
+#. TRANSLATORS: tell the user what we think the command is
+#: ../contrib/command-not-found/pk-command-not-found.c:555
+msgid "Similar command is:"
+msgstr "समान à¤à¤¦à¥à¤¶ यानà¥à¤°à¥à¤ª à¤à¤¹à¥:"
+
+#. TRANSLATORS: Ask the user if we should run the similar command
+#: ../contrib/command-not-found/pk-command-not-found.c:564
+msgid "Run similar command:"
+msgstr "समान à¤à¤¦à¥à¤¶ à¤à¤¾à¤²à¤µà¤¾:"
+
+#. TRANSLATORS: show the user a list of commands that they could have meant
+#. TRANSLATORS: show the user a list of commands we could run
+#: ../contrib/command-not-found/pk-command-not-found.c:576
+#: ../contrib/command-not-found/pk-command-not-found.c:585
+msgid "Similar commands are:"
+msgstr "समान à¤à¤¦à¥à¤¶ यानà¥à¤°à¥à¤ª à¤à¤¹à¥:"
+
+#. TRANSLATORS: ask the user to choose a file to run
+#: ../contrib/command-not-found/pk-command-not-found.c:592
+msgid "Please choose a command to run"
+msgstr "à¤à¥à¤ªà¤¯à¤¾ à¤à¤¾à¤²à¤µà¤¿à¤£à¥à¤¯à¤¾à¤à¥à¤à¥ à¤à¤¦à¥à¤¶ निवडा"
+
+#. TRANSLATORS: tell the user what package provides the command
+#: ../contrib/command-not-found/pk-command-not-found.c:607
+msgid "The package providing this file is:"
+msgstr "हॠफाà¤à¤² या सà¤à¤à¥à¤² दà¥à¤µà¤¾à¤°à¥ पà¥à¤°à¤µà¤¿à¤²à¥ à¤à¤¾à¤¤à¥:"
+
+#. TRANSLATORS: as the user if we want to install a package to provide the command
+#: ../contrib/command-not-found/pk-command-not-found.c:612
+#, c-format
+msgid "Install package '%s' to provide command '%s'?"
+msgstr "à¤à¤¦à¥à¤¶ '%2$s' पà¥à¤°à¤µà¤¿à¤£à¥à¤¯à¤¾à¤à¤°à¥à¤¤à¤¾ सà¤à¤à¥à¤² '%1$s' पà¥à¤°à¤¤à¤¿à¤·à¥à¤ ापà¥à¤¤ à¤à¤°à¤¾à¤¯à¤à¥?"
+
+#. TRANSLATORS: Show the user a list of packages that provide this command
+#: ../contrib/command-not-found/pk-command-not-found.c:633
+msgid "Packages providing this file are:"
+msgstr "हॠफाà¤à¤² या सà¤à¤à¥à¤² दà¥à¤µà¤¾à¤°à¥ पà¥à¤°à¤µà¤¿à¤²à¥ à¤à¤¾à¤¤à¥:"
+
+#. TRANSLATORS: Show the user a list of packages that they can install to provide this command
+#: ../contrib/command-not-found/pk-command-not-found.c:642
+msgid "Suitable packages are:"
+msgstr "यà¥à¤à¥à¤¯ सà¤à¤à¥à¤² यानà¥à¤°à¥à¤ª à¤à¤¹à¥:"
+
+#. get selection
+#. TRANSLATORS: ask the user to choose a file to install
+#: ../contrib/command-not-found/pk-command-not-found.c:650
+msgid "Please choose a package to install"
+msgstr "पà¥à¤°à¤¤à¤¿à¤·à¥à¤ ापन à¤à¤°à¥à¤¤à¤¾ à¤à¥à¤ªà¤¯à¤¾ सà¤à¤à¥à¤² निवडा"
+
+#. TRANSLATORS: when we are getting data from the daemon
+#: ../contrib/browser-plugin/src/contents.cpp:298
+msgid "Getting package information..."
+msgstr "सà¤à¤à¥à¤² माहितॠपà¥à¤°à¤¾à¤ªà¥à¤¤ à¤à¤°à¤¤ à¤à¤¹à¥..."
+
+#. TRANSLATORS: run an applicaiton
+#: ../contrib/browser-plugin/src/contents.cpp:304
+#, c-format
+msgid "Run %s"
+msgstr "%s à¤à¤¾à¤²à¤µà¤¾"
+
+#. TRANSLATORS: show the installed version of a package
+#: ../contrib/browser-plugin/src/contents.cpp:310
+msgid "Installed version"
+msgstr "पà¥à¤°à¤¤à¤¿à¤·à¥à¤ ापà¥à¤¤ à¤à¤µà¥à¤¤à¥à¤¤à¥"
+
+#. TRANSLATORS: run the application now
+#: ../contrib/browser-plugin/src/contents.cpp:318
+#, c-format
+msgid "Run version %s now"
+msgstr "à¤à¤¤à¤¾ à¤à¤µà¥à¤¤à¥à¤¤à¥ %s à¤à¤¾à¤²à¤µà¤¾"
+
+#. TRANSLATORS: run the application now
+#: ../contrib/browser-plugin/src/contents.cpp:324
+msgid "Run now"
+msgstr "à¤à¤¤à¤¾ à¤à¤¾à¤²à¤µà¤¾"
+
+#. TRANSLATORS: update to a new version of the package
+#: ../contrib/browser-plugin/src/contents.cpp:330
+#, c-format
+msgid "Update to version %s"
+msgstr "à¤à¤µà¥à¤¤à¥à¤¤à¥ %s à¤à¤°à¥à¤¤à¤¾ à¤
दà¥à¤¯à¤¯à¤¾à¤µà¤¤ à¤à¤°à¤¾"
+
+#. TRANSLATORS: To install a package
+#: ../contrib/browser-plugin/src/contents.cpp:336
+#, c-format
+msgid "Install %s now"
+msgstr "%s à¤à¤¤à¤¾ पà¥à¤°à¤¤à¤¿à¤·à¥à¤ ापà¥à¤¤ à¤à¤°à¤¾"
+
+#. TRANSLATORS: the version of the package
+#: ../contrib/browser-plugin/src/contents.cpp:339
+msgid "Version"
+msgstr "à¤à¤µà¥à¤¤à¥à¤¤à¥"
+
+#. TRANSLATORS: noting found, so can't install
+#: ../contrib/browser-plugin/src/contents.cpp:344
+msgid "No packages found for your system"
+msgstr "तà¥à¤®à¤à¥à¤¯à¤¾ पà¥à¤°à¤£à¤¾à¤²à¥ à¤à¤°à¥à¤¤à¤¾ सà¤à¤à¥à¤² à¤à¤¢à¤³à¤²à¥ नाहà¥"
+
+#. TRANSLATORS: package is being installed
+#: ../contrib/browser-plugin/src/contents.cpp:349
+msgid "Installing..."
+msgstr "पà¥à¤°à¤¤à¤¿à¤·à¥à¤ ापन à¤à¤°à¤¤ à¤à¤¹à¥..."
+
+#. TRANSLATORS: the action is non-localised
+#: ../contrib/app-install/pk-app-install-add.c:247
+#: ../contrib/app-install/pk-app-install-generate.c:247
+msgid "The action, one of 'create', 'add', or 'remove'"
+msgstr "à¤à¥à¤¤à¥ à¤à¤¾à¤²à¤¿à¤² पà¥à¤à¥ à¤à¤ à¤à¤¹à¥, 'create', 'add', or 'remove'"
+
+#. TRANSLATORS: if we are specifing a out-of-tree database
+#: ../contrib/app-install/pk-app-install-add.c:250
+#: ../contrib/app-install/pk-app-install-generate.c:250
+#: ../contrib/app-install/pk-app-install-remove.c:90
+msgid "Main cache file to use (if not specififed, default is used)"
+msgstr "वापरणà¥à¤¯à¤¾à¤à¥à¤à¥ मà¥à¤à¥à¤¯ à¤à¥
शॠफाà¤à¤² (निशà¥à¤à¤¿à¤¤ न à¤à¥à¤²à¥à¤¯à¤¾à¤¸, मà¥à¤²à¤à¥à¤¤ वापरलॠà¤à¤¾à¤¤à¥)"
+
+#. TRANSLATORS: the source database, typically used for adding
+#: ../contrib/app-install/pk-app-install-add.c:253
+#: ../contrib/app-install/pk-app-install-generate.c:253
+msgid "Source cache file to add to the main database"
+msgstr "मà¥à¤à¥à¤¯ à¤à¥à¤· à¤
à¤à¤¤à¤°à¥à¤à¤¤ समावà¥à¤· à¤à¤°à¤£à¥à¤¯à¤¾à¤à¥à¤à¥ सà¥à¤¤à¥à¤°à¥à¤¤ à¤à¥
शॠफाà¤à¤²"
+
+#. TRANSLATORS: the icon directory
+#: ../contrib/app-install/pk-app-install-add.c:256
+#: ../contrib/app-install/pk-app-install-generate.c:256
+#: ../contrib/app-install/pk-app-install-remove.c:93
+msgid "Icon directory"
+msgstr "à¤à¤¿à¤¨à¥à¤¹ डिरà¥à¤à¥à¤à¥à¤°à¥"
+
+#. TRANSLATORS: the repo of the software source, e.g. fedora
+#: ../contrib/app-install/pk-app-install-add.c:259
+#: ../contrib/app-install/pk-app-install-generate.c:259
+#: ../contrib/app-install/pk-app-install-remove.c:96
+msgid "Name of the remote repo"
+msgstr "दà¥à¤°à¤¸à¥à¤¥ रà¥à¤ªà¥à¤à¥ नाव"
+
+#. TRANSLATORS: tool that gets called when the command is not found
+#: ../contrib/app-install/pk-app-install-add.c:270
+#: ../contrib/app-install/pk-app-install-create.c:62
+#: ../contrib/app-install/pk-app-install-generate.c:270
+#: ../contrib/app-install/pk-app-install-remove.c:107
+msgid "PackageKit Application Database Installer"
+msgstr "PackageKit à¤
नà¥à¤ªà¥à¤°à¤¯à¥à¤ à¤à¥à¤· पà¥à¤°à¤¤à¤¿à¤·à¥à¤ ापà¤"
+
+#. TRANSLATORS: if we are specifing a out-of-tree database
+#: ../contrib/app-install/pk-app-install-create.c:51
+msgid "Main database file to use (if not specififed, default is used)"
+msgstr "मà¥à¤à¥à¤¯ वापरणà¥à¤¯à¤¾à¤à¥à¤à¥ à¤à¥à¤· (निशà¥à¤à¤¿à¤¤ à¤à¥à¤²à¥ नसलà¥à¤¯à¤¾à¤¸, मà¥à¤²à¤à¥à¤¤ वापलॠà¤à¤¾à¤¤à¥)"
+
+#: ../data/packagekit-catalog.xml.in.h:1
+msgid "PackageKit Catalog"
+msgstr "PackageKit सà¥à¤à¥"
+
+#: ../data/packagekit-package-list.xml.in.h:1
+msgid "PackageKit Package List"
+msgstr "PackageKit सà¤à¤à¥à¤² यादà¥"
+
+#: ../data/packagekit-servicepack.xml.in.h:1
+msgid "PackageKit Service Pack"
+msgstr "PackageKit सà¥à¤µà¤¾ पà¥
à¤"
+
+#. TRANSLATORS: failed due to DBus security
+#: ../src/pk-main.c:87
+msgid "Startup failed due to security policies on this machine."
+msgstr "या मशà¥à¤¨ वरà¥à¤² सà¥à¤°à¤à¥à¤·à¤¾ à¤à¤°à¤¾à¤°à¤®à¥à¤³à¥ सà¥à¤à¤¾à¤°à¥à¤à¤
प à¤
पयशॠठरलà¥."
+
+#. TRANSLATORS: only two ways this can fail...
+#: ../src/pk-main.c:89
+msgid "This can happen for two reasons:"
+msgstr "हॠदà¥à¤¨ à¤à¤¾à¤°à¤£à¤¾à¤¸à¥à¤¤à¤µ हà¥à¤ शà¤à¤¤à¥:"
+
+#. TRANSLATORS: only allowed to be owned by root
+#: ../src/pk-main.c:91
+msgid "The correct user is not launching the executable (usually root)"
+msgstr "यà¥à¤à¥à¤¯ वापरà¤à¤°à¥à¤¤à¤¾ à¤à¤à¥à¤à¥à¤à¥à¤¯à¥à¤à¥à¤¬à¤² पà¥à¤°à¤à¥à¤·à¥à¤ªà¥à¤¤ à¤à¤°à¤¤ नाहॠ(सहसा root)"
+
+#. TRANSLATORS: or we are installed in a prefix
+#: ../src/pk-main.c:93
+msgid ""
+"The org.freedesktop.PackageKit.conf file is not installed in the system "
+"directory:"
+msgstr "org.freedesktop.PackageKit.conf फाà¤à¤² पà¥à¤°à¤£à¤¾à¤²à¥ डिरà¥à¤à¥à¤à¥à¤°à¥ à¤
à¤à¤¤à¤°à¥à¤à¤¤ पà¥à¤°à¤¤à¤¿à¤·à¥à¤ ापà¥à¤¤ नाहà¥:"
+
+#. TRANSLATORS: a backend is the system package tool, e.g. yum, apt
+#: ../src/pk-main.c:193
+msgid "Packaging backend to use, e.g. dummy"
+msgstr "वापरणà¥à¤¯à¤¾à¤à¥à¤à¥ सà¤à¤à¥à¤² बà¥
à¤à¤à¤¨à¥à¤¡, à¤.दा. dummy"
+
+#. TRANSLATORS: if we should run in the background
+#: ../src/pk-main.c:196
+msgid "Daemonize and detach from the terminal"
+msgstr "डिमन बनवा व à¤à¤°à¥à¤®à¤¿à¤¨à¤² पासà¥à¤¨ वà¥à¤à¤³à¥ à¤à¤°à¤¾"
+
+#. TRANSLATORS: if we should not monitor how long we are inactive for
+#: ../src/pk-main.c:202
+msgid "Disable the idle timer"
+msgstr "idle timer à¤
à¤à¤¾à¤°à¥à¤¯à¤¾à¤¨à¥à¤µà¥à¤¤ à¤à¤°à¤¾"
+
+#. TRANSLATORS: show version
+#: ../src/pk-main.c:205
+msgid "Show version and exit"
+msgstr "à¤à¤µà¥à¤¤à¥à¤¤à¥ दाà¤à¤µà¤¾ व बाहà¥à¤° पडा"
+
+#. TRANSLATORS: exit after we've started up, used for user profiling
+#: ../src/pk-main.c:208
+msgid "Exit after a small delay"
+msgstr "लहान विलà¤à¤¬ नà¤à¤¤à¤° बाहà¥à¤° पडा"
+
+#. TRANSLATORS: exit straight away, used for automatic profiling
+#: ../src/pk-main.c:211
+msgid "Exit after the engine has loaded"
+msgstr "à¤à¤à¤à¥à¤¨ दाà¤à¤² à¤à¥à¤²à¥à¤¯à¤¾à¤µà¤° बाहà¥à¤° पडा"
+
+#. TRANSLATORS: describing the service that is running
+#: ../src/pk-main.c:226
+msgid "PackageKit service"
+msgstr "PackageKit सà¥à¤µà¤¾"
+
+#. TRANSLATORS: fatal error, dbus is not running
+#: ../src/pk-main.c:263
+msgid "Cannot connect to the system bus"
+msgstr "पà¥à¤°à¤£à¤¾à¤²à¥ बस सह à¤à¥à¤³à¤µà¤£à¥ सà¥à¤¥à¤ªà¥à¤¤ à¤à¤°à¤£à¥à¤¯à¤¾à¤¸ à¤
शà¤à¥à¤¯"
+
+#. TRANSLATORS: cannot register on system bus, unknown reason
+#: ../src/pk-main.c:313
+#, c-format
+msgid "Error trying to start: %s\n"
+msgstr "सà¥à¤°à¥ à¤à¤°à¤¤à¥à¤µà¥à¤³à¥ तà¥à¤°à¥à¤à¥ à¤à¤¢à¤³à¤²à¥: %s\n"
+
commit b88a0d04098a8c3bacc3aed9afd34e641a52f1af
Author: Jens-Uwe Peter <jens.uwe at gmx.net>
Date: Thu Feb 26 12:01:14 2009 +0000
Added me to last translator
Transmitted-via: Transifex (translate.fedoraproject.org)
diff --git a/po/de.po b/po/de.po
index a4a56d3..63b2a38 100644
--- a/po/de.po
+++ b/po/de.po
@@ -1,6 +1,5 @@
# German translation of policycoreutils.
# Copyright (C) 2006, 2007, 2008 Free Software Foundation, Inc.
-#
# Holger Wansing <linux at wansing-online.de>, 2006.
# Timo Trinks <ttrinks at redhat.com>, 2006, 2007.
# Michael Schönitzer <michael at schoenitzer.de>, 2007.
@@ -9,15 +8,17 @@
# Thomas Spura <tomspur at fedoraproject.org>, 2008.
# Daniela Kugelmann <dkugelma at redhat.com >, 2008.
# Stefan Posdzich <cheekyboinc at foresightlinux.org>, 2008.
-#
+# Fabian Affolter <fab at fedoraproject.org>, 2009.
+#
+#
msgid ""
msgstr ""
"Project-Id-Version: packagekit.master.de\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-02-23 13:50+0000\n"
-"PO-Revision-Date: 2009-02-26 12:55+0100\n"
-"Last-Translator: Fabian Affolter <fab at fedoraproject.org>\n"
-"Language-Team: German <i18 at redhat.com>\n"
+"PO-Revision-Date: 2009-02-26 13:00+0100\n"
+"Last-Translator: Jens-Uwe Peter <mrfloppy at fedoraproject.org>\n"
+"Language-Team: German <gnome-de at gnome.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
commit 30e0dca9d9de6f31016b2d3c8ed8b211a1aca8e3
Author: Jens-Uwe Peter <jens.uwe at gmx.net>
Date: Thu Feb 26 11:57:32 2009 +0000
Updated German translation (no untranslated remaining)
Transmitted-via: Transifex (translate.fedoraproject.org)
diff --git a/po/de.po b/po/de.po
index 30e9cd2..a4a56d3 100644
--- a/po/de.po
+++ b/po/de.po
@@ -14,722 +14,1176 @@ msgid ""
msgstr ""
"Project-Id-Version: packagekit.master.de\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2008-11-24 01:31+0000\n"
-"PO-Revision-Date: 2009-02-05 11:17+0100\n"
+"POT-Creation-Date: 2009-02-23 13:50+0000\n"
+"PO-Revision-Date: 2009-02-26 12:55+0100\n"
"Last-Translator: Fabian Affolter <fab at fedoraproject.org>\n"
"Language-Team: German <i18 at redhat.com>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-"X-Generator: KBabel 1.11.4\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);"
+
+#. TRANSLATORS: this is an atomic transaction
+#: ../client/pk-console.c:230
+msgid "Transaction"
+msgstr "Transaktion"
+
+#. TRANSLATORS: this is the time the transaction was started in system timezone
+#: ../client/pk-console.c:232
+msgid "System time"
+msgstr "Systemzeit"
+
+#. TRANSLATORS: this is if the transaction succeeded or not
+#: ../client/pk-console.c:234
+msgid "Succeeded"
+msgstr "Erfolgreich"
+
+#. TRANSLATORS: if the repo is enabled
+#: ../client/pk-console.c:234 ../client/pk-console.c:401
+msgid "True"
+msgstr "Wahr"
+
+#: ../client/pk-console.c:234 ../client/pk-console.c:401
+msgid "False"
+msgstr "Falsch"
+
+#. TRANSLATORS: this is the transactions role, e.g. "update-system"
+#: ../client/pk-console.c:236
+msgid "Role"
+msgstr "Rolle"
+
+#. TRANSLATORS: this is The duration of the transaction
+#: ../client/pk-console.c:241
+msgid "Duration"
+msgstr "Dauer"
+
+#: ../client/pk-console.c:241
+msgid "(seconds)"
+msgstr "(Sekunden)"
+
+#. TRANSLATORS: this is The command line used to do the action
+#: ../client/pk-console.c:245
+#, fuzzy
+msgid "Command line"
+msgstr "Befehl fehlgeschlagen"
+
+#. TRANSLATORS: this is the user ID of the user that started the action
+#: ../client/pk-console.c:247
+msgid "User ID"
+msgstr "Benutzer-ID"
+
+#. TRANSLATORS: this is the username, e.g. hughsie
+#: ../client/pk-console.c:254
+msgid "Username"
+msgstr "Benutzername"
+
+#. TRANSLATORS: this is the users real name, e.g. "Richard Hughes"
+#: ../client/pk-console.c:258
+msgid "Real name"
+msgstr "Echter Name"
+
+#: ../client/pk-console.c:266
+msgid "Affected packages:"
+msgstr "Beteiligte Pakete:"
+
+#: ../client/pk-console.c:268
+msgid "Affected packages: None"
+msgstr "Beteilige Pakete: Keine"
+
+#. TRANSLATORS: this is the distro, e.g. Fedora 10
+#: ../client/pk-console.c:293
+msgid "Distribution"
+msgstr "Distribution"
+
+#. TRANSLATORS: this is type of update, stable or testing
+#: ../client/pk-console.c:295
+msgid "Type"
+msgstr "Typ"
+
+#. TRANSLATORS: this is any summary text describing the upgrade
+#. TRANSLATORS: this is the summary of the group
+#: ../client/pk-console.c:297 ../client/pk-console.c:320
+msgid "Summary"
+msgstr "Zusammenfassung"
+
+#. TRANSLATORS: this is the group category name
+#: ../client/pk-console.c:309
+msgid "Category"
+msgstr "Kategorie"
+
+#. TRANSLATORS: this is group identifier
+#: ../client/pk-console.c:311
+msgid "ID"
+msgstr "ID"
+
+#. TRANSLATORS: this is the parent group
+#: ../client/pk-console.c:314
+msgid "Parent"
+msgstr "Elternteil"
+
+#. TRANSLATORS: this is the name of the parent group
+#: ../client/pk-console.c:317
+msgid "Name"
+msgstr "Name"
+
+#. TRANSLATORS: this is preferred icon for the group
+#: ../client/pk-console.c:323
+msgid "Icon"
+msgstr "Symbol"
#. TRANSLATORS: this is a header for the package that can be updated
-#: ../client/pk-console.c:287
+#: ../client/pk-console.c:338
msgid "Details about the update:"
msgstr "Details über die Aktualisierung"
-#: ../client/pk-console.c:480
+#. TRANSLATORS: details about the update, package name and version
+#: ../client/pk-console.c:340
+#, fuzzy
+msgid "Package"
+msgstr "Paket-Dateien"
+
+#. TRANSLATORS: details about the update, any packages that this update updates
+#: ../client/pk-console.c:343
+#, fuzzy
+msgid "Updates"
+msgstr "Details werden aktualisiert"
+
+#. TRANSLATORS: details about the update, any packages that this update obsoletes
+#: ../client/pk-console.c:347
+msgid "Obsoletes"
+msgstr "Veraltete"
+
+#. TRANSLATORS: details about the update, the vendor URLs
+#: ../client/pk-console.c:351
+msgid "Vendor"
+msgstr "Hersteller"
+
+#. TRANSLATORS: details about the update, the bugzilla URLs
+#: ../client/pk-console.c:355
+msgid "Bugzilla"
+msgstr "Bugzilla"
+
+#. TRANSLATORS: details about the update, the CVE URLs
+#: ../client/pk-console.c:359
+msgid "CVE"
+msgstr "CVE"
+
+#. TRANSLATORS: details about the update, if the package requires a restart
+#: ../client/pk-console.c:363
+msgid "Restart"
+msgstr "Neustart"
+
+#. TRANSLATORS: details about the update, any description of the update
+#: ../client/pk-console.c:367
+#, fuzzy
+msgid "Update text"
+msgstr "Details werden aktualisiert"
+
+#. TRANSLATORS: details about the update, the changelog for the package
+#: ../client/pk-console.c:371
+msgid "Changes"
+msgstr "Ãnderungen"
+
+#. TRANSLATORS: details about the update, the ongoing state of the update
+#: ../client/pk-console.c:375
+msgid "State"
+msgstr "Status"
+
+#. TRANSLATORS: details about the update, date the update was issued
+#: ../client/pk-console.c:380
+msgid "Issued"
+msgstr "Veröffentlicht"
+
+#. TRANSLATORS: details about the update, date the update was updated
+#: ../client/pk-console.c:385
+#, fuzzy
+msgid "Updated"
+msgstr "Details werden aktualisiert"
+
+#: ../client/pk-console.c:472 ../client/pk-console.c:474
+msgid "Percentage"
+msgstr "Prozentsatz"
+
+#: ../client/pk-console.c:474
+msgid "Unknown"
+msgstr "Unbekannt"
+
+#. TRANSLATORS: a package requires the system to be restarted
+#: ../client/pk-console.c:525
+#, fuzzy
+msgid "System restart required by:"
+msgstr "Ein Neustart ist erforderlich"
+
+#. TRANSLATORS: a package requires the session to be restarted
+#: ../client/pk-console.c:528
+#, fuzzy
+msgid "Session restart required:"
+msgstr "Ein Neustart ist erforderlich"
+
+#. TRANSLATORS: a package requires the application to be restarted
+#: ../client/pk-console.c:531
+#, fuzzy
+msgid "Application restart required by:"
+msgstr "Ein Programm-Neustart wird benötigt"
+
+#. TRANSLATORS: a package needs to restart they system
+#: ../client/pk-console.c:568
msgid "Please restart the computer to complete the update."
msgstr "Bitte starten Sie den Computer neu, um das Update abzuschlieÃen."
-#: ../client/pk-console.c:482
+#. TRANSLATORS: a package needs to restart the session
+#: ../client/pk-console.c:571
msgid "Please logout and login to complete the update."
msgstr "Bitte erneut einloggen um das Update abzuschlieÃen."
-#: ../client/pk-console.c:484
+#. TRANSLATORS: a package needs to restart the application
+#: ../client/pk-console.c:574
msgid "Please restart the application as it is being used."
msgstr "Starten Sie die Anwendung neu, da sie benutzt wird."
#. TRANSLATORS: The package is already installed on the system
-#: ../client/pk-console.c:596
+#: ../client/pk-console.c:687
#, c-format
msgid "The package %s is already installed"
msgstr "Das Paket %s ist bereits installiert"
#. TRANSLATORS: The package name was not found in any software sources. The detailed error follows
-#: ../client/pk-console.c:604
+#: ../client/pk-console.c:695
#, c-format
msgid "The package %s could not be installed: %s"
msgstr "Das Paket %s konnte nicht installiert werden: %s"
#. TRANSLATORS: There was a programming error that shouldn't happen. The detailed error follows
-#: ../client/pk-console.c:629
-#: ../client/pk-console.c:656
-#: ../client/pk-console.c:752
-#: ../client/pk-console.c:869
-#: ../client/pk-tools-common.c:61
-#: ../client/pk-tools-common.c:79
-#: ../client/pk-tools-common.c:86
+#: ../client/pk-console.c:720 ../client/pk-console.c:747
+#: ../client/pk-console.c:843 ../client/pk-console.c:960
+#: ../client/pk-tools-common.c:62 ../client/pk-tools-common.c:81
+#: ../client/pk-tools-common.c:89
#, c-format
msgid "Internal error: %s"
msgstr "Interner Fehler: %s"
#. TRANSLATORS: There was an error installing the packages. The detailed error follows
-#: ../client/pk-console.c:637
-#: ../client/pk-console.c:1264
+#: ../client/pk-console.c:728 ../client/pk-console.c:1356
#, c-format
msgid "This tool could not install the packages: %s"
msgstr "Konnte folgende Pakete nicht installieren: %s"
#. TRANSLATORS: There was an error installing the files. The detailed error follows
-#: ../client/pk-console.c:664
+#: ../client/pk-console.c:755
#, c-format
msgid "This tool could not install the files: %s"
msgstr "Die Dateien konnten nicht installieren werden: %s"
#. TRANSLATORS: The package name was not found in the installed list. The detailed error follows
-#: ../client/pk-console.c:720
+#: ../client/pk-console.c:811
#, c-format
msgid "This tool could not remove %s: %s"
msgstr "Dieses Werkzeug konnte %s nicht entfernen: %s"
#. TRANSLATORS: There was an error removing the packages. The detailed error follows
-#: ../client/pk-console.c:743
-#: ../client/pk-console.c:781
-#: ../client/pk-console.c:814
+#: ../client/pk-console.c:834 ../client/pk-console.c:872
+#: ../client/pk-console.c:905
#, c-format
msgid "This tool could not remove the packages: %s"
msgstr "Konnte folgende Pakete nicht entfernen: %s"
#. TRANSLATORS: When removing, we might have to remove other dependencies
-#: ../client/pk-console.c:793
+#: ../client/pk-console.c:884
msgid "The following packages have to be removed:"
msgstr "Die folgenden Pakete müssen entfernt werden:"
#. TRANSLATORS: We are checking if it's okay to remove a list of packages
-#: ../client/pk-console.c:800
+#: ../client/pk-console.c:891
msgid "Proceed removing additional packages?"
msgstr "Sollen die zusätzlichen Pakete entfernt werden?"
#. TRANSLATORS: We did not remove any packages
-#: ../client/pk-console.c:805
+#: ../client/pk-console.c:896
msgid "The package removal was canceled!"
msgstr "Die Entfernung der Pakete wurde abgebrochen!"
#. TRANSLATORS: The package name was not found in any software sources
-#: ../client/pk-console.c:846
+#: ../client/pk-console.c:937
#, c-format
msgid "This tool could not download the package %s as it could not be found"
msgstr "Dieses Werkzeug konnte das Paket %s nicht finden und herunterladen"
#. TRANSLATORS: Could not download the packages for some reason. The detailed error follows
-#: ../client/pk-console.c:877
+#: ../client/pk-console.c:968
#, c-format
msgid "This tool could not download the packages: %s"
msgstr "Konnte folgende Pakete nicht herunterladen: %s"
#. TRANSLATORS: There was an error getting the list of files for the package. The detailed error follows
-#: ../client/pk-console.c:904
-#: ../client/pk-console.c:913
+#: ../client/pk-console.c:995 ../client/pk-console.c:1004
#, c-format
msgid "This tool could not update %s: %s"
msgstr "Dieses Werkzeug konnte %s nicht aktualisieren: %s"
#. TRANSLATORS: There was an error getting the list of files for the package. The detailed error follows
-#: ../client/pk-console.c:935
-#: ../client/pk-console.c:943
+#: ../client/pk-console.c:1026 ../client/pk-console.c:1034
#, c-format
msgid "This tool could not get the requirements for %s: %s"
msgstr "Dieses Werkzeug konnte die Voraussetzungen %s nicht beziehen: %s"
#. TRANSLATORS: There was an error getting the dependencies for the package. The detailed error follows
-#: ../client/pk-console.c:965
-#: ../client/pk-console.c:973
+#: ../client/pk-console.c:1056 ../client/pk-console.c:1064
#, c-format
msgid "This tool could not get the dependencies for %s: %s"
msgstr "Dieses Werkzeug konnte keine Abhängigkeiten für %s beziehen: %s"
#. TRANSLATORS: There was an error getting the details about the package. The detailed error follows
-#: ../client/pk-console.c:995
-#: ../client/pk-console.c:1003
+#: ../client/pk-console.c:1086 ../client/pk-console.c:1094
#, c-format
msgid "This tool could not get package details for %s: %s"
msgstr "Dieses Werkzeug konnte die Paketdetails für %s beziehen: %s"
#. TRANSLATORS: The package name was not found in any software sources. The detailed error follows
-#: ../client/pk-console.c:1025
+#: ../client/pk-console.c:1116
#, c-format
msgid "This tool could not find the files for %s: %s"
msgstr "Dieses Werkzeug konnte keine Dateien für %s finden: %s"
#. TRANSLATORS: There was an error getting the list of files for the package. The detailed error follows
-#: ../client/pk-console.c:1033
+#: ../client/pk-console.c:1124
#, c-format
msgid "This tool could not get the file list for %s: %s"
msgstr "Dieses Werkzeug konnte die Datei-Liste für %s nicht erstellen: %s"
#. TRANSLATORS: There was an error getting the list of packages. The filename follows
-#: ../client/pk-console.c:1055
+#: ../client/pk-console.c:1146
#, c-format
msgid "File already exists: %s"
msgstr "Datei bereits vorhanden: %s"
#. TRANSLATORS: follows a list of packages to install
-#: ../client/pk-console.c:1060
-#: ../client/pk-console.c:1116
-#: ../client/pk-console.c:1191
+#: ../client/pk-console.c:1151 ../client/pk-console.c:1207
+#: ../client/pk-console.c:1282
msgid "Getting package list"
msgstr "Beziehe Paket-Liste"
#. TRANSLATORS: There was an error getting the list of packages. The detailed error follows
-#: ../client/pk-console.c:1066
-#: ../client/pk-console.c:1122
-#: ../client/pk-console.c:1197
+#: ../client/pk-console.c:1157 ../client/pk-console.c:1213
+#: ../client/pk-console.c:1288
#, c-format
msgid "This tool could not get package list: %s"
msgstr "Konnte folgende Pakete nicht beziehen: %s"
#. TRANSLATORS: There was an error saving the list
-#: ../client/pk-console.c:1077
+#: ../client/pk-console.c:1168
msgid "Failed to save to disk"
msgstr "Speicher auf die Festplatte fehlgeschlagen"
#. TRANSLATORS: There was an error getting the list. The filename follows
-#: ../client/pk-console.c:1111
-#: ../client/pk-console.c:1186
+#: ../client/pk-console.c:1202 ../client/pk-console.c:1277
#, c-format
msgid "File does not exist: %s"
msgstr "Datei nicht vorhanden: %s"
#. TRANSLATORS: header to a list of packages newly added
-#: ../client/pk-console.c:1143
+#: ../client/pk-console.c:1234
msgid "Packages to add"
msgstr "Paket zum Hinzufügen"
#. TRANSLATORS: header to a list of packages removed
-#: ../client/pk-console.c:1151
+#: ../client/pk-console.c:1242
msgid "Packages to remove"
msgstr "Pakete zum Entfernen"
#. TRANSLATORS: We didn't find any differences
-#: ../client/pk-console.c:1219
+#: ../client/pk-console.c:1310
msgid "No new packages need to be installed"
msgstr "Keine neuen Pakete müssen installiert werden"
#. TRANSLATORS: follows a list of packages to install
-#: ../client/pk-console.c:1225
+#: ../client/pk-console.c:1316
msgid "To install"
msgstr "ZUm Installieren"
#. TRANSLATORS: searching takes some time....
-#: ../client/pk-console.c:1236
+#: ../client/pk-console.c:1328
msgid "Searching for package: "
msgstr "Suche nach Paket:"
#. TRANSLATORS: package was not found -- this is the end of a string ended in ...
-#: ../client/pk-console.c:1240
+#: ../client/pk-console.c:1332
msgid "not found."
msgstr "nicht gefunden."
#. TRANSLATORS: We didn't find any packages to install
-#: ../client/pk-console.c:1251
+#: ../client/pk-console.c:1343
msgid "No packages can be found to install"
msgstr "Keine Pakete zum Installieren gefunden"
#. TRANSLATORS: installing new packages from package list
-#: ../client/pk-console.c:1257
+#: ../client/pk-console.c:1349
msgid "Installing packages"
msgstr "Installiere Pakete"
#. TRANSLATORS: The package name was not found in any software sources. The detailed error follows
-#: ../client/pk-console.c:1293
+#: ../client/pk-console.c:1385
#, c-format
msgid "This tool could not find the update details for %s: %s"
msgstr "Dieses Werkzeug konnte für %s keine Aktualisierungsdetails finden: %s"
#. TRANSLATORS: There was an error getting the details about the update for the package. The detailed error follows
-#: ../client/pk-console.c:1301
+#: ../client/pk-console.c:1393
#, c-format
msgid "This tool could not get the update details for %s: %s"
msgstr "Dieses Werkzeug konnte keine Aktualisierungsdetails für %s finden: %s"
#. TRANSLATORS: This was an unhandled error, and we don't have _any_ context
-#: ../client/pk-console.c:1347
+#: ../client/pk-console.c:1439
msgid "Error:"
msgstr "Fehler:"
#. TRANSLATORS: This a list of details about the package
-#: ../client/pk-console.c:1361
+#: ../client/pk-console.c:1453
msgid "Package description"
msgstr "Paketbeschreibung"
#. TRANSLATORS: This a list files contained in the package
-#: ../client/pk-console.c:1394
+#: ../client/pk-console.c:1487
msgid "Package files"
msgstr "Paket-Dateien"
#. TRANSLATORS: This where the package has no files
-#: ../client/pk-console.c:1403
+#: ../client/pk-console.c:1495
msgid "No files"
msgstr "Keine Dateien"
#. TRANSLATORS: This a request for a GPG key signature from the backend, which the client will prompt for later
-#: ../client/pk-console.c:1426
+#: ../client/pk-console.c:1518
msgid "Repository signature required"
msgstr "Signatur der Paketquellen benötigt"
#. TRANSLATORS: This a prompt asking the user to import the security key
-#: ../client/pk-console.c:1436
+#: ../client/pk-console.c:1528
msgid "Do you accept this signature?"
msgstr "Akzeptieren Sie diese Signatur?"
#. TRANSLATORS: This is where the user declined the security key
-#: ../client/pk-console.c:1440
+#: ../client/pk-console.c:1532
msgid "The signature was not accepted."
msgstr "Diese Signatur wurde nicht akzeptiert."
#. TRANSLATORS: This a request for a EULA
-#: ../client/pk-console.c:1474
+#: ../client/pk-console.c:1566
msgid "End user license agreement required"
msgstr "Endbenutzer Lizenzvereinbarung benötigt"
#. TRANSLATORS: This a prompt asking the user to agree to the license
-#: ../client/pk-console.c:1481
+#: ../client/pk-console.c:1573
msgid "Do you agree to this license?"
msgstr "Sind Sie mit dieser Lizenz einverstanden?"
#. TRANSLATORS: This is where the user declined the license
-#: ../client/pk-console.c:1485
+#: ../client/pk-console.c:1577
msgid "The license was refused."
msgstr "Die Lizenz wurde zurückgewiesen."
#. TRANSLATORS: This is when the daemon crashed, and we are up shit creek without a paddle
-#: ../client/pk-console.c:1514
+#: ../client/pk-console.c:1606
msgid "The daemon crashed mid-transaction!"
msgstr "Der Dämon stürzte während der Transaktion ab!"
#. TRANSLATORS: This is the header to the --help menu
-#: ../client/pk-console.c:1567
+#: ../client/pk-console.c:1659
msgid "PackageKit Console Interface"
msgstr "PackageKit-Konsolen-Interface"
-#: ../client/pk-console.c:1567
+#. these are commands we can use with pkcon
+#: ../client/pk-console.c:1661
msgid "Subcommands:"
msgstr "Unterbefehle:"
-#: ../client/pk-console.c:1658
-#: ../client/pk-generate-pack.c:184
-#: ../client/pk-monitor.c:115
-#: ../src/pk-main.c:191
+#. TRANSLATORS: command line argument, if we should show debugging information
+#. TRANSLATORS: if we should show debugging data
+#: ../client/pk-console.c:1753 ../client/pk-generate-pack.c:185
+#: ../client/pk-monitor.c:125
+#: ../contrib/command-not-found/pk-command-not-found.c:510
+#: ../contrib/app-install/pk-app-install-add.c:244
+#: ../contrib/app-install/pk-app-install-create.c:48
+#: ../contrib/app-install/pk-app-install-generate.c:244
+#: ../contrib/app-install/pk-app-install-remove.c:87 ../src/pk-main.c:199
msgid "Show extra debugging information"
msgstr "Zeige extra Debug-Informationen"
-#: ../client/pk-console.c:1660
-#: ../client/pk-monitor.c:117
+#. TRANSLATORS: command line argument, just show the version string
+#: ../client/pk-console.c:1756 ../client/pk-monitor.c:127
msgid "Show the program version and exit"
msgstr "Zeige Programm-Version und beende"
-#: ../client/pk-console.c:1662
+#. TRANSLATORS: command line argument, use a filter to narrow down results
+#: ../client/pk-console.c:1759
msgid "Set the filter, e.g. installed"
msgstr "Setze den Filter, z.B. installiert"
-#: ../client/pk-console.c:1664
+#. TRANSLATORS: command line argument, work asynchronously
+#: ../client/pk-console.c:1762
msgid "Exit without waiting for actions to complete"
msgstr "Beende, ohne auf Beendigung der Aktionen zu warten"
#. TRANSLATORS: This is when we could not connect to the system bus, and is fatal
-#: ../client/pk-console.c:1691
+#: ../client/pk-console.c:1789
msgid "This tool could not connect to system DBUS."
msgstr "Dieses Werkzeug konnte nicht zum System-DBUS verbinden."
#. TRANSLATORS: The user specified an incorrect filter
-#: ../client/pk-console.c:1776
+#: ../client/pk-console.c:1876
msgid "The filter specified was invalid"
msgstr "Der angegebene Filter war ungültig"
-#: ../client/pk-console.c:1793
-msgid "You need to specify a search type, e.g. name"
-msgstr "Sie müssen einen Suchtyp angeben, z.B. einen Namen"
+#. TRANSLATORS: a search type can be name, details, file, etc
+#: ../client/pk-console.c:1894
+msgid "A search type is required, e.g. name"
+msgstr "Ein Suchtyp ist nötig, z.B. Name"
-#: ../client/pk-console.c:1798
-#: ../client/pk-console.c:1805
-#: ../client/pk-console.c:1812
-#: ../client/pk-console.c:1819
-#: ../client/pk-console.c:1930
-#: ../client/pk-console.c:1940
-#: ../client/pk-console.c:1947
-#: ../client/pk-console.c:1954
-msgid "You need to specify a search term"
-msgstr "Sie müssen einen Suchwert angeben"
+#. TRANSLATORS: the user needs to provide a search term
+#: ../client/pk-console.c:1900 ../client/pk-console.c:1908
+#: ../client/pk-console.c:1916 ../client/pk-console.c:1924
+#, fuzzy
+msgid "A search term is required"
+msgstr "Ein Neustart ist erforderlich"
-#: ../client/pk-console.c:1824
+#. TRANSLATORS: the search type was provided, but invalid
+#: ../client/pk-console.c:1930
msgid "Invalid search type"
msgstr "Ungültiger Suchtyp"
-#: ../client/pk-console.c:1829
-msgid "You need to specify a package or file to install"
-msgstr "Sie müssen ein Paket oder eine Datei zum installieren angeben"
+#. TRANSLATORS: the user did not specify what they wanted to install
+#: ../client/pk-console.c:1936
+msgid "A package name or filename to install is required"
+msgstr "Ein Paket- oder Dateiname ist zur Installation nötig"
-#: ../client/pk-console.c:1836
-msgid "You need to specify a type, key_id and package_id"
+#. TRANSLATORS: geeky error, 99.9999% of users won't see this
+#: ../client/pk-console.c:1944
+#, fuzzy
+msgid "A type, key_id and package_id are required"
msgstr "Sie müssen einen Typ, Schlüssel_id und Paket_id auswählen"
-#: ../client/pk-console.c:1843
-msgid "You need to specify a package to remove"
-msgstr "Sie müssen ein Paket zum Löschen angeben"
+#. TRANSLATORS: the user did not specify what they wanted to remove
+#: ../client/pk-console.c:1952
+#, fuzzy
+msgid "A package name to remove is required"
+msgstr "Ein Programm-Neustart wird benötigt"
-#: ../client/pk-console.c:1849
-msgid "You need to specify the destination directory and then the packages to download"
-msgstr "Sie müssen ein Zielverzeichnis und dann die Pakete zum herunterladen angeben"
+#. TRANSLATORS: the user did not specify anything about what to download or where
+#: ../client/pk-console.c:1959
+#, fuzzy
+msgid ""
+"A destination directory and then the package names to download are required"
+msgstr ""
+"Sie müssen ein Zielverzeichnis und dann die Pakete zum herunterladen angeben"
-#: ../client/pk-console.c:1854
+#. TRANSLATORS: the directory does not exist, so we can't continue
+#: ../client/pk-console.c:1965
msgid "Directory not found"
msgstr "Verzeichnis nicht gefunden"
-#: ../client/pk-console.c:1860
-msgid "You need to specify a licence identifier (eula-id)"
+#. TRANSLATORS: geeky error, 99.9999% of users won't see this
+#: ../client/pk-console.c:1972
+#, fuzzy
+msgid "A licence identifier (eula-id) is required"
msgstr "Sie müssen eine Lizenz (eula-id) angeben"
-#: ../client/pk-console.c:1876
-msgid "You need to specify a package name to resolve"
-msgstr "Sie müssen einen Paketnamen zum Auflösen angeben"
-
-#: ../client/pk-console.c:1885
-#: ../client/pk-console.c:1892
-msgid "You need to specify a repository name"
-msgstr "Sie müssen einen Repository-Namen angeben"
+#. TRANSLATORS: geeky error, 99.9999% of users won't see this
+#: ../client/pk-console.c:1981
+#, fuzzy
+msgid "A transaction identifier (tid) is required"
+msgstr "Ein Programm-Neustart wird benötigt"
-#: ../client/pk-console.c:1899
-msgid "You need to specify a repo name/parameter and value"
-msgstr "Sie müssen einen Repositorynamen/Parameter und Wert angeben"
+#. TRANSLATORS: The user did not specify a package name
+#: ../client/pk-console.c:1997
+#, fuzzy
+msgid "A package name to resolve is required"
+msgstr "Ein Programm-Neustart wird benötigt"
-#: ../client/pk-console.c:1912
-msgid "You need to specify an action, e.g. 'update-system'"
-msgstr "Sie müssen eine Aktion angeben, z.B. 'update-system'"
+#. TRANSLATORS: The user did not specify a repository (software source) name
+#: ../client/pk-console.c:2005 ../client/pk-console.c:2013
+#, fuzzy
+msgid "A repository name is required"
+msgstr "Signatur der Paketquellen benötigt"
-#: ../client/pk-console.c:1917
-msgid "You need to specify a correct role"
-msgstr "Sie müssen eine korrekte Rolle angeben"
+#. TRANSLATORS: The user didn't provide any data
+#: ../client/pk-console.c:2021
+#, fuzzy
+msgid "A repo name, parameter and value are required"
+msgstr "Sie müssen einen Repositorynamen/Parameter und Wert angeben"
-#: ../client/pk-console.c:1922
-msgid "Failed to get last time"
-msgstr "Die letzte Zeit konnte nicht herausgefunden werden"
+#. TRANSLATORS: The user didn't specify what action to use
+#: ../client/pk-console.c:2034
+#, fuzzy
+msgid "An action, e.g. 'update-system' is required"
+msgstr "Ein Programm-Neustart wird benötigt"
-#: ../client/pk-console.c:1961
-msgid "You need to specify a package to find the details for"
-msgstr "Sie müssen ein Paket, für das nach Details gesucht wird, angeben"
+#. TRANSLATORS: The user specified an invalid action
+#: ../client/pk-console.c:2040
+#, fuzzy
+msgid "A correct role is required"
+msgstr "Ein Programm-Neustart wird benötigt"
+
+#. TRANSLATORS: we keep a database updated with the time that an action was last executed
+#: ../client/pk-console.c:2046
+msgid "Failed to get the time since this action was last completed"
+msgstr "Es war nicht möglich, die Zeit seit der letzten Fertigstellung festzustellen"
+
+#. 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:2055 ../client/pk-console.c:2066
+#: ../client/pk-console.c:2074 ../client/pk-console.c:2090
+#: ../client/pk-console.c:2098 ../client/pk-generate-pack.c:241
+#, fuzzy
+msgid "A package name is required"
+msgstr "Ein Programm-Neustart wird benötigt"
-#: ../client/pk-console.c:1968
-msgid "You need to specify a package to find the files for"
-msgstr "Sie müssen ein Paket, für das nach Dateien gesucht wird, angeben"
+#. TRANSLATORS: each package "provides" certain things, e.g. mime(gstreamer-decoder-mp3), the user didn't specify it
+#: ../client/pk-console.c:2082
+#, fuzzy
+msgid "A package provide string is required"
+msgstr "Ein Programm-Neustart wird benötigt"
-#: ../client/pk-console.c:1975
-msgid "You need to specify a list file to create"
-msgstr "Sie müssen eine Dateiliste zum Erzeugen angeben"
+#. TRANSLATORS: The user didn't specify a filename to create as a list
+#: ../client/pk-console.c:2106
+#, fuzzy
+msgid "A list file name to create is required"
+msgstr "Ein Neustart ist erforderlich"
-#: ../client/pk-console.c:1983
-#: ../client/pk-console.c:1991
-msgid "You need to specify a list file to open"
-msgstr "Sie müssen eine Dateiliste zum Ãffnen angeben"
+#. TRANSLATORS: The user didn't specify a filename to open as a list
+#: ../client/pk-console.c:2115 ../client/pk-console.c:2124
+#, fuzzy
+msgid "A list file to open is required"
+msgstr "Ein Aus- und Einloggen ist erforderlich"
#. TRANSLATORS: The user tried to use an unsupported option on the command line
-#: ../client/pk-console.c:2044
+#: ../client/pk-console.c:2177
#, c-format
msgid "Option '%s' is not supported"
msgstr "Option '%s' wird nicht unterstützt"
#. TRANSLATORS: User does not have permission to do this
-#: ../client/pk-console.c:2057
-msgid "You don't have the necessary privileges for this operation"
+#: ../client/pk-console.c:2190
+#, fuzzy
+msgid "Incorrect privileges for this operation"
msgstr "Sie haben nicht die notwendigen Privilegien für diese Operation"
#. TRANSLATORS: Generic failure of what they asked to do
-#: ../client/pk-console.c:2060
+#: ../client/pk-console.c:2193
msgid "Command failed"
msgstr "Befehl fehlgeschlagen"
#. TRANSLATORS: This is the state of the transaction
-#: ../client/pk-generate-pack.c:100
+#: ../client/pk-generate-pack.c:101
msgid "Downloading"
msgstr "Lade herunter"
#. TRANSLATORS: This is when the main packages are being downloaded
-#: ../client/pk-generate-pack.c:120
+#: ../client/pk-generate-pack.c:121
msgid "Downloading packages"
msgstr "Lade Pakete herunter"
#. TRANSLATORS: This is when the dependency packages are being downloaded
-#: ../client/pk-generate-pack.c:125
+#: ../client/pk-generate-pack.c:126
msgid "Downloading dependencies"
msgstr "Lade Abhängihkeiten herunter"
-#: ../client/pk-generate-pack.c:186
+#. TRANSLATORS: we can exclude certain packages (glibc) when we know they'll exist on the target
+#: ../client/pk-generate-pack.c:188
msgid "Set the file name of dependencies to be excluded"
msgstr "Setze den Dateiname der Abhängigkeiten, die ausgeschlossen werden"
-#: ../client/pk-generate-pack.c:188
-msgid "The output directory (the current directory is used if ommitted)"
+#. TRANSLATORS: the output location
+#: ../client/pk-generate-pack.c:191
+#, fuzzy
+msgid ""
+"The output file or directory (the current directory is used if ommitted)"
msgstr "Das Ausgabe-Verzeichnis ()"
-#: ../client/pk-generate-pack.c:190
+#. TRANSLATORS: put a list of packages in the pack
+#: ../client/pk-generate-pack.c:194
#, fuzzy
msgid "The package to be put into the service pack"
msgstr "Das Paket in das Service-Pack integrieren"
-#: ../client/pk-generate-pack.c:192
+#. TRANSLATORS: put all pending updates in the pack
+#: ../client/pk-generate-pack.c:197
msgid "Put all updates available in the service pack"
msgstr "Füge alle Aktualisierungen dem Service-Pack hinzu"
#. TRANSLATORS: This is when the user fails to supply the correct arguments
-#: ../client/pk-generate-pack.c:220
+#: ../client/pk-generate-pack.c:225
msgid "Neither --package or --updates option selected."
msgstr "Weder --package noch --updates wurden als Option gewählt."
#. TRANSLATORS: This is when the user fails to supply just one argument
-#: ../client/pk-generate-pack.c:228
+#: ../client/pk-generate-pack.c:233
msgid "Both options selected."
msgstr "Beide Optionen ausgewählt."
+#. TRANSLATORS: This is when the user fails to supply the output
+#: ../client/pk-generate-pack.c:249
+#, fuzzy
+msgid "A output directory or file name is required"
+msgstr "Ein Aus- und Einloggen ist erforderlich"
+
+#. TRANSLATORS: This is when the backend doesn't have the capability to get-depends
+#. TRANSLATORS: This is when the backend doesn't have the capability to download
+#: ../client/pk-generate-pack.c:267 ../client/pk-generate-pack.c:273
+msgid "The package manager cannot perform this type of operation."
+msgstr "Der Paket-Verwalter kann diesen Typ von Aufgabe nicht ausführen."
+
+#. TRANSLATORS: the user specified an absolute path, but didn't get the extension correct
+#: ../client/pk-generate-pack.c:285
+msgid "If specifying a file, the service pack name must end with"
+msgstr "Wenn Sie eine Datei angeben, muss der Service-Pack-Name Enden mit"
+
#. TRANSLATORS: This is when file already exists
-#: ../client/pk-generate-pack.c:261
+#: ../client/pk-generate-pack.c:301
msgid "A pack with the same name already exists, do you want to overwrite it?"
-msgstr "Ein Pack mit dem selben Namen existiert bereits, möchten Sie es überschreiben?"
+msgstr ""
+"Ein Pack mit dem selben Namen existiert bereits, möchten Sie es "
+"überschreiben?"
#. TRANSLATORS: This is when the pack was not overwritten
-#: ../client/pk-generate-pack.c:264
+#: ../client/pk-generate-pack.c:304
msgid "The pack was not overwritten."
msgstr "Das Pack wurde nicht überschrieben."
#. TRANSLATORS: This is when the temporary directory cannot be created, the directory name follows
-#: ../client/pk-generate-pack.c:276
+#: ../client/pk-generate-pack.c:317
msgid "Failed to create directory:"
msgstr "Verzeichnis konnte nicht erstellt werden:"
#. TRANSLATORS: This is when the list of packages from the remote computer cannot be opened
-#: ../client/pk-generate-pack.c:285
+#: ../client/pk-generate-pack.c:327
msgid "Failed to open package list."
msgstr "Konnte Paketliste nicht öffnen."
#. TRANSLATORS: The package name is being matched up to available packages
-#: ../client/pk-generate-pack.c:295
+#: ../client/pk-generate-pack.c:338
msgid "Finding package name."
msgstr "Suche Paketname."
#. TRANSLATORS: This is when the package cannot be found in any software source. The detailed error follows
-#: ../client/pk-generate-pack.c:299
+#: ../client/pk-generate-pack.c:342
#, c-format
msgid "Failed to find package '%s': %s"
msgstr "Paket '%s' konnte nicht gefunden werden: %s"
#. TRANSLATORS: This is telling the user we are in the process of making the pack
-#: ../client/pk-generate-pack.c:315
+#: ../client/pk-generate-pack.c:359
msgid "Creating service pack..."
msgstr "Erstelle Servicepack..."
#. TRANSLATORS: we succeeded in making the file
-#: ../client/pk-generate-pack.c:322
+#: ../client/pk-generate-pack.c:366
#, c-format
msgid "Service pack created '%s'"
msgstr "Servicepack erstellt '%s'"
#. TRANSLATORS: we failed to make te file
-#: ../client/pk-generate-pack.c:326
+#: ../client/pk-generate-pack.c:371
#, c-format
msgid "Failed to create '%s': %s"
msgstr "Erzeugen von '%s' fehlgeschlagen: %s"
-#: ../client/pk-monitor.c:132
+#. TRANSLATORS: this is a program that monitors PackageKit
+#: ../client/pk-monitor.c:143
msgid "PackageKit Monitor"
msgstr "PackageKit-Monitor"
#. TRANSLATORS: The package was not found in any software sources
-#: ../client/pk-tools-common.c:114
+#: ../client/pk-tools-common.c:118
msgid "The package could not be found"
msgstr "Das Paket konnte nicht gefunden werden"
#. TRANSLATORS: more than one package could be found that matched, to follow is a list of possible packages
-#: ../client/pk-tools-common.c:125
+#: ../client/pk-tools-common.c:130
msgid "More than one package matches:"
msgstr "Es passen mehr als ein Pakete:"
#. TRANSLATORS: This finds out which package in the list to use
-#: ../client/pk-tools-common.c:132
+#: ../client/pk-tools-common.c:137
msgid "Please choose the correct package: "
msgstr "Bitte wählen Sie das korrekte Paket: "
-#: ../client/pk-tools-common.c:158
+#: ../client/pk-tools-common.c:162
#, c-format
msgid "Please enter a number from 1 to %i: "
msgstr "Bitte geben Sie eine Zahl zwischen 1 und %i ein: "
+#. TRANSLATORS: we failed to find the package, this shouldn't happen
+#: ../contrib/command-not-found/pk-command-not-found.c:361
+#, fuzzy
+msgid "Failed to search for file"
+msgstr "Speicher auf die Festplatte fehlgeschlagen"
+
+#. TRANSLATORS: we failed to launch the executable, the error follows
+#: ../contrib/command-not-found/pk-command-not-found.c:485
+#, fuzzy
+msgid "Failed to launch:"
+msgstr "Die letzte Zeit konnte nicht herausgefunden werden"
+
+#. TRANSLATORS: tool that gets called when the command is not found
+#: ../contrib/command-not-found/pk-command-not-found.c:526
+#, fuzzy
+msgid "PackageKit Command Not Found"
+msgstr "PackageKit-Monitor"
+
+#. TRANSLATORS: the prefix of all the output telling the user why it's not executing
+#: ../contrib/command-not-found/pk-command-not-found.c:548
+#, fuzzy
+msgid "Command not found."
+msgstr "nicht gefunden."
+
+#. TRANSLATORS: tell the user what we think the command is
+#: ../contrib/command-not-found/pk-command-not-found.c:555
+#, fuzzy
+msgid "Similar command is:"
+msgstr "Unterbefehle:"
+
+#. TRANSLATORS: Ask the user if we should run the similar command
+#: ../contrib/command-not-found/pk-command-not-found.c:564
+msgid "Run similar command:"
+msgstr "Ãhnlichen Befehl ausführen:"
+
+#. TRANSLATORS: show the user a list of commands that they could have meant
+#. TRANSLATORS: show the user a list of commands we could run
+#: ../contrib/command-not-found/pk-command-not-found.c:576
+#: ../contrib/command-not-found/pk-command-not-found.c:585
+#, fuzzy
+msgid "Similar commands are:"
+msgstr "Unterbefehle:"
+
+#. TRANSLATORS: ask the user to choose a file to run
+#: ../contrib/command-not-found/pk-command-not-found.c:592
+msgid "Please choose a command to run"
+msgstr "Bitte wählen Sie einen Befehl zum Ausfüühren"
+
+#. TRANSLATORS: tell the user what package provides the command
+#: ../contrib/command-not-found/pk-command-not-found.c:607
+#, fuzzy
+msgid "The package providing this file is:"
+msgstr "Das Paket %s ist bereits installiert"
+
+#. TRANSLATORS: as the user if we want to install a package to provide the command
+#: ../contrib/command-not-found/pk-command-not-found.c:612
+#, c-format
+msgid "Install package '%s' to provide command '%s'?"
+msgstr "Installiere das Paket '%s', das den Befehl '%s' anbietet?"
+
+#. TRANSLATORS: Show the user a list of packages that provide this command
+#: ../contrib/command-not-found/pk-command-not-found.c:633
+msgid "Packages providing this file are:"
+msgstr "Pakete, die diese Datei anbieten sind:"
+
+#. TRANSLATORS: Show the user a list of packages that they can install to provide this command
+#: ../contrib/command-not-found/pk-command-not-found.c:642
+msgid "Suitable packages are:"
+msgstr "Passende Pakete sind:"
+
+#. get selection
+#. TRANSLATORS: ask the user to choose a file to install
+#: ../contrib/command-not-found/pk-command-not-found.c:650
+#, fuzzy
+msgid "Please choose a package to install"
+msgstr "Bitte wählen Sie das korrekte Paket: "
+
#. TRANSLATORS: when we are getting data from the daemon
-#: ../contrib/packagekit-plugin/src/contents.cpp:294
+#: ../contrib/browser-plugin/src/contents.cpp:298
msgid "Getting package information..."
msgstr "Bekomme Paket-Informationen..."
#. TRANSLATORS: run an applicaiton
-#: ../contrib/packagekit-plugin/src/contents.cpp:300
+#: ../contrib/browser-plugin/src/contents.cpp:304
#, c-format
msgid "Run %s"
msgstr "Starte %s"
#. TRANSLATORS: show the installed version of a package
-#: ../contrib/packagekit-plugin/src/contents.cpp:306
+#: ../contrib/browser-plugin/src/contents.cpp:310
msgid "Installed version"
msgstr "Installierte Version"
#. TRANSLATORS: run the application now
-#: ../contrib/packagekit-plugin/src/contents.cpp:314
+#: ../contrib/browser-plugin/src/contents.cpp:318
#, c-format
msgid "Run version %s now"
msgstr "Starte Version %s jetzt"
-#: ../contrib/packagekit-plugin/src/contents.cpp:320
+#. TRANSLATORS: run the application now
+#: ../contrib/browser-plugin/src/contents.cpp:324
msgid "Run now"
msgstr "Starte jetzt"
#. TRANSLATORS: update to a new version of the package
-#: ../contrib/packagekit-plugin/src/contents.cpp:326
+#: ../contrib/browser-plugin/src/contents.cpp:330
#, c-format
msgid "Update to version %s"
msgstr "Aktualisiere auf Version %s"
#. TRANSLATORS: To install a package
-#: ../contrib/packagekit-plugin/src/contents.cpp:332
+#: ../contrib/browser-plugin/src/contents.cpp:336
#, c-format
msgid "Install %s now"
msgstr "Installiere %s jetzt"
#. TRANSLATORS: the version of the package
-#: ../contrib/packagekit-plugin/src/contents.cpp:335
+#: ../contrib/browser-plugin/src/contents.cpp:339
msgid "Version"
msgstr "Version"
#. TRANSLATORS: noting found, so can't install
-#: ../contrib/packagekit-plugin/src/contents.cpp:340
+#: ../contrib/browser-plugin/src/contents.cpp:344
msgid "No packages found for your system"
msgstr "Keine Pakete für Ihr System gefunden"
#. TRANSLATORS: package is being installed
-#: ../contrib/packagekit-plugin/src/contents.cpp:345
+#: ../contrib/browser-plugin/src/contents.cpp:349
msgid "Installing..."
msgstr "Installiere..."
+#. TRANSLATORS: the action is non-localised
+#: ../contrib/app-install/pk-app-install-add.c:247
+#: ../contrib/app-install/pk-app-install-generate.c:247
+msgid "The action, one of 'create', 'add', or 'remove'"
+msgstr "Aktion ('create', 'add' oder 'remove')"
+
+#. TRANSLATORS: if we are specifing a out-of-tree database
+#: ../contrib/app-install/pk-app-install-add.c:250
+#: ../contrib/app-install/pk-app-install-generate.c:250
+#: ../contrib/app-install/pk-app-install-remove.c:90
+msgid "Main cache file to use (if not specififed, default is used)"
+msgstr "Hauptzwischenspeicher-Datei (wenn nicht genannt, wird die Standarddatei benutzt)"
+""
+
+#. TRANSLATORS: the source database, typically used for adding
+#: ../contrib/app-install/pk-app-install-add.c:253
+#: ../contrib/app-install/pk-app-install-generate.c:253
+#, fuzzy
+msgid "Source cache file to add to the main database"
+msgstr "Quellen-Zwischenspeicher, der zur Hauptdatenbank hinzugefügt werden soll"
+
+#. TRANSLATORS: the icon directory
+#: ../contrib/app-install/pk-app-install-add.c:256
+#: ../contrib/app-install/pk-app-install-generate.c:256
+#: ../contrib/app-install/pk-app-install-remove.c:93
+msgid "Icon directory"
+msgstr "Symbol-Verzeichnis"
+
+#. TRANSLATORS: the repo of the software source, e.g. fedora
+#: ../contrib/app-install/pk-app-install-add.c:259
+#: ../contrib/app-install/pk-app-install-generate.c:259
+#: ../contrib/app-install/pk-app-install-remove.c:96
+msgid "Name of the remote repo"
+msgstr "Name der entfernten Quelle"
+
+#. TRANSLATORS: tool that gets called when the command is not found
+#: ../contrib/app-install/pk-app-install-add.c:270
+#: ../contrib/app-install/pk-app-install-create.c:62
+#: ../contrib/app-install/pk-app-install-generate.c:270
+#: ../contrib/app-install/pk-app-install-remove.c:107
+#, fuzzy
+msgid "PackageKit Application Database Installer"
+msgstr "PackageKit-Konsolen-Interface"
+
+#. TRANSLATORS: if we are specifing a out-of-tree database
+#: ../contrib/app-install/pk-app-install-create.c:51
+#, fuzzy
+msgid "Main database file to use (if not specififed, default is used)"
+msgstr "Hauptdatenbank-Datei (wenn nicht genannt, wird die Standard-Datei benutzt)"
+
#: ../data/packagekit-catalog.xml.in.h:1
msgid "PackageKit Catalog"
msgstr "PackageKit Katalog"
-#: ../data/packagekit-servicepack.xml.in.h:1
-msgid "PackageKit Service Pack"
-msgstr "PackageKit Service-Pack"
-
#: ../data/packagekit-package-list.xml.in.h:1
msgid "PackageKit Package List"
msgstr "PackageKit-Paketliste"
-#: ../src/pk-main.c:86
+#: ../data/packagekit-servicepack.xml.in.h:1
+msgid "PackageKit Service Pack"
+msgstr "PackageKit Service-Pack"
+
+#. TRANSLATORS: failed due to DBus security
+#: ../src/pk-main.c:87
msgid "Startup failed due to security policies on this machine."
msgstr "Startfehler wegen Sicherheitseinstellungen auf diesem Rechner"
-#: ../src/pk-main.c:87
+#. TRANSLATORS: only two ways this can fail...
+#: ../src/pk-main.c:89
msgid "This can happen for two reasons:"
msgstr "Dies kann aus zwei Gründen passieren:"
-#: ../src/pk-main.c:88
+#. TRANSLATORS: only allowed to be owned by root
+#: ../src/pk-main.c:91
msgid "The correct user is not launching the executable (usually root)"
-msgstr "Der korrekte Benutzer führt nicht das Programm aus (normalerweise root)"
+msgstr ""
+"Der korrekte Benutzer führt nicht das Programm aus (normalerweise root)"
-#: ../src/pk-main.c:89
-msgid "The org.freedesktop.PackageKit.conf file is not installed in the system directory:"
-msgstr "Die org.freedesktop.PackageKit.conf-Datei ist nicht auf Ihrem Rechner im system-Verzeichnis:"
+#. TRANSLATORS: or we are installed in a prefix
+#: ../src/pk-main.c:93
+msgid ""
+"The org.freedesktop.PackageKit.conf file is not installed in the system "
+"directory:"
+msgstr ""
+"Die org.freedesktop.PackageKit.conf-Datei ist nicht auf Ihrem Rechner im "
+"system-Verzeichnis:"
-#: ../src/pk-main.c:187
+#. TRANSLATORS: a backend is the system package tool, e.g. yum, apt
+#: ../src/pk-main.c:193
msgid "Packaging backend to use, e.g. dummy"
msgstr "Verwende Packaging-Backend z.B. dummy"
-#: ../src/pk-main.c:189
+#. TRANSLATORS: if we should run in the background
+#: ../src/pk-main.c:196
msgid "Daemonize and detach from the terminal"
msgstr "Dämonisiere und löse vom Terminal ab"
-#: ../src/pk-main.c:193
+#. TRANSLATORS: if we should not monitor how long we are inactive for
+#: ../src/pk-main.c:202
msgid "Disable the idle timer"
msgstr "Deaktiviere Idle-Timer"
-#: ../src/pk-main.c:195
+#. TRANSLATORS: show version
+#: ../src/pk-main.c:205
msgid "Show version and exit"
msgstr "Zeige Version und beende"
-#: ../src/pk-main.c:197
+#. TRANSLATORS: exit after we've started up, used for user profiling
+#: ../src/pk-main.c:208
msgid "Exit after a small delay"
msgstr "Beende nach kurzer Verzögerung"
-#: ../src/pk-main.c:199
+#. TRANSLATORS: exit straight away, used for automatic profiling
+#: ../src/pk-main.c:211
#, fuzzy
msgid "Exit after the engine has loaded"
msgstr "Beende, nachdem der Kern geladen wurde"
-#: ../src/pk-main.c:213
+#. TRANSLATORS: describing the service that is running
+#: ../src/pk-main.c:226
msgid "PackageKit service"
msgstr "PackageKit-Dienst"
-#: ../src/pk-main.c:249
+#. TRANSLATORS: fatal error, dbus is not running
+#: ../src/pk-main.c:263
msgid "Cannot connect to the system bus"
msgstr "Konnte nicht zum System-Bus verbinden"
-#: ../src/pk-main.c:298
+#. TRANSLATORS: cannot register on system bus, unknown reason
+#: ../src/pk-main.c:313
#, c-format
msgid "Error trying to start: %s\n"
msgstr "Fehler beim Starten von: %s\n"
+#~ msgid "You need to specify a search type, e.g. name"
+#~ msgstr "Sie müssen einen Suchtyp angeben, z.B. einen Namen"
+
+#~ msgid "You need to specify a search term"
+#~ msgstr "Sie müssen einen Suchwert angeben"
+
+#~ msgid "You need to specify a package or file to install"
+#~ msgstr "Sie müssen ein Paket oder eine Datei zum installieren angeben"
+
+#~ msgid "You need to specify a package to remove"
+#~ msgstr "Sie müssen ein Paket zum Löschen angeben"
+
+#~ msgid "You need to specify a package name to resolve"
+#~ msgstr "Sie müssen einen Paketnamen zum Auflösen angeben"
+
+#~ msgid "You need to specify a repository name"
+#~ msgstr "Sie müssen einen Repository-Namen angeben"
+
+#~ msgid "You need to specify an action, e.g. 'update-system'"
+#~ msgstr "Sie müssen eine Aktion angeben, z.B. 'update-system'"
+
+#~ msgid "You need to specify a correct role"
+#~ msgstr "Sie müssen eine korrekte Rolle angeben"
+
+#~ msgid "You need to specify a package to find the details for"
+#~ msgstr "Sie müssen ein Paket, für das nach Details gesucht wird, angeben"
+
+#~ msgid "You need to specify a package to find the files for"
+#~ msgstr "Sie müssen ein Paket, für das nach Dateien gesucht wird, angeben"
+
+#~ msgid "You need to specify a list file to create"
+#~ msgstr "Sie müssen eine Dateiliste zum Erzeugen angeben"
+
+#~ msgid "You need to specify a list file to open"
+#~ msgstr "Sie müssen eine Dateiliste zum Ãffnen angeben"
+
#~ msgid "This tool could not remove the packages: '%s'"
#~ msgstr "Dieser Werkzeug konnte das Paket nicht entfernen: '%s'"
-#~ msgid "Update detail"
-#~ msgstr "Details werden aktualisiert"
-#~ msgid "A system restart is required"
-#~ msgstr "Ein Neustart ist erforderlich"
-#~ msgid "A logout and login is required"
-#~ msgstr "Ein Aus- und Einloggen ist erforderlich"
-#~ msgid "An application restart is required"
-#~ msgstr "Ein Programm-Neustart wird benötigt"
+
#~ msgid "Could not find package to remove"
#~ msgstr "Packet zum Löschen konnte nicht gefunden werden"
+
#~ msgid "Cancelled!"
#~ msgstr "Abbruch!"
+
#~ msgid "Could not find package to download"
#~ msgstr "Das Packet zum Herunterladen konnte nicht gefunden werden"
+
#~ msgid "Could not find package to update"
#~ msgstr "Das Packet zum Aktualisieren konnte nicht gefunden werden"
+
#~ msgid "Could not find what packages require"
#~ msgstr "Konnte nicht herausfinden, was die Packete benötigen"
+
#~ msgid "Could not find details for"
#~ msgstr "Konnte keine Details finden für"
+
#~ msgid "Okay to import key?"
#~ msgstr "Soll der Schlüssel importiert werden?"
+
#~ msgid "Did not import key"
#~ msgstr "Schlüssel wurde nicht importiert"
+
#~ msgid "Did not agree to licence, task will fail"
#~ msgstr "Sie stimmten der Lizenz nicht zu, die Aufgabe wird fehlschlagen"
+
#~ msgid "Could not find a package match"
#~ msgstr "Es konnte kein Packet gefunden werden"
+
#~ msgid "failed to download: invalid package_id and/or directory"
#~ msgstr ""
#~ "Herunterladen fehlgeschlagen: Ungültige package_id und/oder ungültiges "
#~ "Verzeichnis"
+
#~ msgid "Could not find a valid metadata file"
#~ msgstr "Eine gültige MetadataâDatei konnte nicht gefunden werden"
+
#~ msgid "Okay to download the additional packages"
#~ msgstr "Möchten Sie die zusätzlichen Packete herunterladen"
+
#~ msgid "You need to specify the pack name and packages to be packed\n"
#~ msgstr "Sie müssen einen Packnamen und Packete zum Packen angeben\n"
+
#~ msgid ""
#~ "Invalid name for the service pack, Specify a name with .servicepack "
#~ "extension\n"
#~ msgstr ""
#~ "Ungültiger Name für ein Service Pack, geben Sie einen Namen an mit ."
#~ "servicepack als Endung\n"
+
#~ msgid "Could not set database readonly"
#~ msgstr "Datenbank konnte nicht nur-lesbar gesetzt werden"
+
#~ msgid "Could not open database: %s"
#~ msgstr "Datenbank %s konnte nicht geöffnet werden"
+
#~ msgid "You probably need to run this program as the root user"
#~ msgstr "Sie sollten dieses Programm vermutlich als Benutzer root ausführen"
+
#~ msgid "<span color='#%06x' underline='single' size='larger'>Run %s</span>"
#~ msgstr ""
#~ "<span color='#%06x' underline='single' size='larger'>%s wird ausgeführt</"
#~ "span>"
+
#~ msgid "<big>%s</big>"
#~ msgstr "<big>%s</big>"
+
#~ msgid ""
#~ "\n"
#~ "<span color='#%06x' underline='single'>Run version %s now</span>"
@@ -737,27 +1191,30 @@ msgstr "Fehler beim Starten von: %s\n"
#~ "\n"
#~ "<span color='#%06x' underline='single'>Version %s wird jetzt ausgeführt</"
#~ "span>"
+
#~ msgid ""
#~ "\n"
#~ "<span color='#%06x' underline='single'>Run now</span>"
#~ msgstr ""
#~ "\n"
#~ "<span color='#%06x' underline='single'>Wird jetzt ausgeführt</span>"
+
#~ msgid ""
#~ "\n"
#~ "<span color='#%06x' underline='single'>Upgrade to version %s</span>"
#~ msgstr ""
#~ "\n"
#~ "<span color='#%06x' underline='single'>Aktualisiere zu Version %s</span>"
+
#~ msgid ""
#~ "<span color='#%06x' underline='single' size='larger'>Install %s Now</span>"
#~ msgstr ""
#~ "<span color='#%06x' underline='single' size='larger'>%s wird jetzt "
#~ "installiert</span>"
+
#~ msgid ""
#~ "\n"
#~ "<small>Version: %s</small>"
#~ msgstr ""
#~ "\n"
#~ "<small>Version: %s</small>"
-
commit 274c8080ea3386a18b361917fbf4da829eb0d7d6
Author: Richard Hughes <richard at hughsie.com>
Date: Wed Feb 25 18:22:48 2009 +0000
trivial: disable noarch subpackages as rpm chokes on it at the moment
diff --git a/contrib/PackageKit.spec.in b/contrib/PackageKit.spec.in
index 631a28b..aadc376 100644
--- a/contrib/PackageKit.spec.in
+++ b/contrib/PackageKit.spec.in
@@ -84,7 +84,7 @@ A backend for PackageKit to enable SMART functionality.
%package docs
Summary: Documentation for PackageKit
Group: Development/Libraries
-BuildArch: noarch
+#BuildArch: noarch
Requires: %{name} = %{version}-%{release}
%description docs
@@ -93,7 +93,6 @@ API docs for PackageKit.
%package yum-plugin
Summary: Tell PackageKit to check for updates when yum exits
Group: System Environment/Base
-BuildArch: noarch
Requires: yum >= 3.0
Requires: PackageKit
Obsoletes: yum-packagekit < %{version}-%{release}
@@ -125,7 +124,6 @@ QT libraries for accessing PackageKit.
%package cron
Summary: Cron job and related utilities for PackageKit
Group: System Environment/Base
-BuildArch: noarch
Requires: cronie
Requires: %{name} = %{version}-%{release}
@@ -200,7 +198,6 @@ fonts from configured repositories using PackageKit.
%package command-not-found
Summary: Ask the user to install command line programs automatically
Group: Development/Libraries
-BuildArch: noarch
Requires: bash
Requires: PackageKit-glib = %{version}-%{release}
@@ -211,7 +208,6 @@ using PackageKit.
%package ruck
Summary: rug-like interface that uses PackageKit
Group: Development/Libraries
-BuildArch: noarch
Requires: PackageKit = %{version}-%{release}
%description ruck
commit 238ff655d29d15a5df47ecd3960a2b1a09a0e197
Author: Richard Hughes <richard at hughsie.com>
Date: Wed Feb 25 18:22:07 2009 +0000
trivial: update copyright in developer docs
diff --git a/docs/api/PackageKit-docs.sgml b/docs/api/PackageKit-docs.sgml
index 5203cc7..e724ce0 100644
--- a/docs/api/PackageKit-docs.sgml
+++ b/docs/api/PackageKit-docs.sgml
@@ -21,7 +21,7 @@
</author>
</authorgroup>
<copyright>
- <year>2008</year>
+ <year>2008-2009</year>
<holder>The PackageKit Authors</holder>
</copyright>
</bookinfo>
commit 7fdae62d7bbccca28eb53cc9a090284cd2fcb4f1
Author: Richard Hughes <richard at hughsie.com>
Date: Wed Feb 25 16:10:03 2009 +0000
bugfix: ensure we set PK_STATUS_ENUM_FINISHED when we return updates from the internal cache
diff --git a/src/pk-transaction.c b/src/pk-transaction.c
index dfedeea..89f4c04 100644
--- a/src/pk-transaction.c
+++ b/src/pk-transaction.c
@@ -2516,6 +2516,9 @@ pk_transaction_get_updates (PkTransaction *transaction, const gchar *filter, DBu
g_free (package_id);
}
+ /* set finished */
+ pk_transaction_status_changed_emit (transaction, PK_STATUS_ENUM_FINISHED);
+
/* we are done */
g_idle_add ((GSourceFunc) pk_transaction_finished_idle_cb, transaction);
commit 25034ae5d7efbe40e47c693fc4c538565fc3adb8
Author: Richard Hughes <richard at hughsie.com>
Date: Wed Feb 25 16:09:22 2009 +0000
feature: Enable ptrace() on libpackagekit, it was always a bandaid
diff --git a/lib/packagekit-glib/pk-client.c b/lib/packagekit-glib/pk-client.c
index 21c00f8..e809b1d 100644
--- a/lib/packagekit-glib/pk-client.c
+++ b/lib/packagekit-glib/pk-client.c
@@ -4637,20 +4637,6 @@ pk_client_new (void)
return PK_CLIENT (client);
}
-/**
- * init:
- *
- * Library constructor: Disable ptrace() and core dumping for applications
- * which use this library, so that local trojans cannot silently abuse PackageKit
- * privileges.
- */
-__attribute__ ((constructor))
-static void init()
-{
- /* this is a bandaid */
- prctl (PR_SET_DUMPABLE, 0);
-}
-
/***************************************************************************
*** MAKE CHECK TESTS ***
***************************************************************************/
commit 80d6fe5d1f30ab5a792f2d038d6bba5c8429c8ee
Author: Richard Hughes <richard at hughsie.com>
Date: Wed Feb 25 09:03:53 2009 +0000
trivial: make some more subpackages noarch
diff --git a/contrib/PackageKit.spec.in b/contrib/PackageKit.spec.in
index 89b2c22..631a28b 100644
--- a/contrib/PackageKit.spec.in
+++ b/contrib/PackageKit.spec.in
@@ -84,6 +84,7 @@ A backend for PackageKit to enable SMART functionality.
%package docs
Summary: Documentation for PackageKit
Group: Development/Libraries
+BuildArch: noarch
Requires: %{name} = %{version}-%{release}
%description docs
@@ -92,6 +93,7 @@ API docs for PackageKit.
%package yum-plugin
Summary: Tell PackageKit to check for updates when yum exits
Group: System Environment/Base
+BuildArch: noarch
Requires: yum >= 3.0
Requires: PackageKit
Obsoletes: yum-packagekit < %{version}-%{release}
@@ -123,6 +125,7 @@ QT libraries for accessing PackageKit.
%package cron
Summary: Cron job and related utilities for PackageKit
Group: System Environment/Base
+BuildArch: noarch
Requires: cronie
Requires: %{name} = %{version}-%{release}
@@ -197,6 +200,7 @@ fonts from configured repositories using PackageKit.
%package command-not-found
Summary: Ask the user to install command line programs automatically
Group: Development/Libraries
+BuildArch: noarch
Requires: bash
Requires: PackageKit-glib = %{version}-%{release}
@@ -207,6 +211,7 @@ using PackageKit.
%package ruck
Summary: rug-like interface that uses PackageKit
Group: Development/Libraries
+BuildArch: noarch
Requires: PackageKit = %{version}-%{release}
%description ruck
commit 97f30bbb72db685d9bf260351f8049c05df83872
Author: Richard Hughes <richard at hughsie.com>
Date: Tue Feb 24 17:19:25 2009 +0000
trivial: dummy: make the blocked updates conditional
diff --git a/backends/dummy/pk-backend-dummy.c b/backends/dummy/pk-backend-dummy.c
index 741e26b..c627f00 100644
--- a/backends/dummy/pk-backend-dummy.c
+++ b/backends/dummy/pk-backend-dummy.c
@@ -40,6 +40,7 @@ static gboolean _updated_gtkhtml = FALSE;
static gboolean _updated_kernel = FALSE;
static gboolean _updated_powertop = FALSE;
static gboolean _has_signature = FALSE;
+static gboolean _use_blocked = FALSE;
/**
* backend_initialize:
@@ -306,12 +307,6 @@ backend_get_update_detail_timeout (gpointer data)
"", "", NULL, PK_RESTART_ENUM_NONE,
"Cannot get update as update conflics with vncviewer",
"", PK_UPDATE_STATE_ENUM_UNKNOWN, "2008-07-25", NULL);
-
-
- pk_backend_package (backend, PK_INFO_ENUM_BLOCKED,
- "",
- "Remote desktop server for the desktop");
-
} else {
/* signal to UI */
pk_backend_error_code (backend, PK_ERROR_ENUM_INTERNAL_ERROR, "the package update detail was not found for %s", package_id);
@@ -341,10 +336,12 @@ backend_get_updates_timeout (gpointer data)
{
PkBackend *backend = (PkBackend *) data;
- if (!_updated_powertop && !_updated_kernel && !_updated_gtkhtml) {
- pk_backend_package (backend, PK_INFO_ENUM_BLOCKED,
- "vino;2.24.2.fc9;i386;fedora",
- "Remote desktop server for the desktop");
+ if (_use_blocked) {
+ if (!_updated_powertop && !_updated_kernel && !_updated_gtkhtml) {
+ pk_backend_package (backend, PK_INFO_ENUM_BLOCKED,
+ "vino;2.24.2.fc9;i386;fedora",
+ "Remote desktop server for the desktop");
+ }
}
if (!_updated_powertop) {
pk_backend_package (backend, PK_INFO_ENUM_NORMAL,
@@ -744,65 +741,81 @@ backend_search_name (PkBackend *backend, PkBitfield filters, const gchar *search
}
/**
- * backend_update_packages_update_timeout:
+ * backend_update_packages_download_timeout:
**/
static gboolean
-backend_update_packages_update_timeout (gpointer data)
+backend_update_packages_download_timeout (gpointer data)
{
- guint len;
PkBackend *backend = (PkBackend *) data;
- const gchar *package;
+ guint sub;
- package = _package_ids[_package_current];
- /* emit the next package */
- if (egg_strequal (package, "powertop;1.8-1.fc8;i386;fedora")) {
- pk_backend_package (backend, PK_INFO_ENUM_UPDATING, package, "Power consumption monitor");
- _updated_powertop = TRUE;
+ if (_progress_percentage == 100) {
+ pk_backend_finished (backend);
+ return FALSE;
}
- if (egg_strequal (package, "kernel;2.6.23-0.115.rc3.git1.fc8;i386;installed")) {
- pk_backend_package (backend, PK_INFO_ENUM_UPDATING, package,
- "The Linux kernel (the core of the Linux operating system)");
- _updated_kernel = TRUE;
+ if (_progress_percentage == 0 && !_updated_powertop) {
+ pk_backend_package (backend, PK_INFO_ENUM_DOWNLOADING,
+ "powertop;1.8-1.fc8;i386;fedora",
+ "Power consumption monitor");
+ pk_backend_set_sub_percentage (backend, 0);
}
- if (egg_strequal (package, "gtkhtml2;2.19.1-4.fc8;i386;fedora")) {
- pk_backend_package (backend, PK_INFO_ENUM_UPDATING, package, "An HTML widget for GTK+ 2.0");
- _updated_gtkhtml = TRUE;
+ if (_progress_percentage == 20 && !_updated_kernel) {
+ pk_backend_set_sub_percentage (backend, 100);
+ pk_backend_package (backend, PK_INFO_ENUM_DOWNLOADING,
+ "kernel;2.6.23-0.115.rc3.git1.fc8;i386;installed",
+ "The Linux kernel (the core of the Linux operating system)");
+ pk_backend_set_sub_percentage (backend, 0);
}
-
- /* are we done? */
- _package_current++;
- len = pk_package_ids_size (_package_ids);
- if (_package_current + 1 > len) {
- pk_backend_set_percentage (backend, 100);
- pk_backend_finished (backend);
- _signal_timeout = 0;
- return FALSE;
+ if (_progress_percentage == 30 && !_updated_gtkhtml) {
+ pk_backend_message (backend, PK_MESSAGE_ENUM_NEWER_PACKAGE_EXISTS, "A newer package preupgrade is available in fedora-updates-testing");
+ pk_backend_message (backend, PK_MESSAGE_ENUM_CONFIG_FILES_CHANGED, "/etc/X11/xorg.conf has been auto-merged, please check before rebooting");
+ pk_backend_message (backend, PK_MESSAGE_ENUM_BROKEN_MIRROR, "fedora-updates-testing metadata is invalid");
+ pk_backend_message (backend, PK_MESSAGE_ENUM_BROKEN_MIRROR, "fedora-updates-testing-debuginfo metadata is invalid");
+ pk_backend_message (backend, PK_MESSAGE_ENUM_BROKEN_MIRROR, "fedora-updates-testing-source metadata is invalid");
+ pk_backend_set_sub_percentage (backend, 100);
+ if (_use_blocked) {
+ pk_backend_package (backend, PK_INFO_ENUM_BLOCKED,
+ "gtkhtml2;2.19.1-4.fc8;i386;fedora",
+ "An HTML widget for GTK+ 2.0");
+ _updated_gtkhtml = FALSE;
+ } else {
+ pk_backend_package (backend, PK_INFO_ENUM_INSTALLING,
+ "gtkhtml2;2.19.1-4.fc8;i386;fedora",
+ "An HTML widget for GTK+ 2.0");
+ _updated_gtkhtml = TRUE;
+ }
+ pk_backend_set_sub_percentage (backend, 0);
}
- return TRUE;
-}
-
-/**
- * backend_update_packages_download_timeout:
- **/
-static gboolean
-backend_update_packages_download_timeout (gpointer data)
-{
- guint len;
- PkBackend *backend = (PkBackend *) data;
-
- /* emit the next package */
- pk_backend_package (backend, PK_INFO_ENUM_DOWNLOADING, _package_ids[_package_current], "The same thing");
-
- /* are we done? */
- _package_current++;
- len = pk_package_ids_size (_package_ids);
- if (_package_current + 1 > len) {
- _package_current = 0;
+ if (_progress_percentage == 40 && !_updated_powertop) {
pk_backend_set_status (backend, PK_STATUS_ENUM_UPDATE);
- pk_backend_set_percentage (backend, 50);
- _signal_timeout = g_timeout_add (2000, backend_update_packages_update_timeout, backend);
- return FALSE;
+ pk_backend_set_allow_cancel (backend, FALSE);
+ pk_backend_set_sub_percentage (backend, 100);
+ pk_backend_package (backend, PK_INFO_ENUM_INSTALLING,
+ "powertop;1.8-1.fc8;i386;fedora",
+ "Power consumption monitor");
+ _updated_powertop = TRUE;
+ pk_backend_set_sub_percentage (backend, 0);
+ }
+ if (_progress_percentage == 60 && !_updated_kernel) {
+ pk_backend_set_sub_percentage (backend, 100);
+ pk_backend_package (backend, PK_INFO_ENUM_UPDATING,
+ "kernel;2.6.23-0.115.rc3.git1.fc8;i386;installed",
+ "The Linux kernel (the core of the Linux operating system)");
+ _updated_kernel = TRUE;
+ pk_backend_set_sub_percentage (backend, 0);
+ }
+ if (_progress_percentage == 80 && !_updated_kernel) {
+ pk_backend_set_sub_percentage (backend, 100);
+ pk_backend_package (backend, PK_INFO_ENUM_CLEANUP,
+ "kernel;2.6.23-0.115.rc3.git1.fc8;i386;installed",
+ "The Linux kernel (the core of the Linux operating system)");
+ pk_backend_set_sub_percentage (backend, 0);
}
+ _progress_percentage += 1;
+ pk_backend_set_percentage (backend, _progress_percentage);
+ sub = (_progress_percentage % 10) * 10;
+ if (sub != 0)
+ pk_backend_set_sub_percentage (backend, sub);
return TRUE;
}
@@ -814,9 +827,10 @@ backend_update_packages (PkBackend *backend, gchar **package_ids)
{
_package_ids = package_ids;
_package_current = 0;
+ _progress_percentage = 0;
pk_backend_set_percentage (backend, 0);
pk_backend_set_status (backend, PK_STATUS_ENUM_DOWNLOAD);
- _signal_timeout = g_timeout_add (2000, backend_update_packages_download_timeout, backend);
+ _signal_timeout = g_timeout_add (200, backend_update_packages_download_timeout, backend);
}
static gboolean
@@ -843,10 +857,12 @@ backend_update_system_timeout (gpointer data)
pk_backend_message (backend, PK_MESSAGE_ENUM_BROKEN_MIRROR, "fedora-updates-testing metadata is invalid");
pk_backend_message (backend, PK_MESSAGE_ENUM_BROKEN_MIRROR, "fedora-updates-testing-debuginfo metadata is invalid");
pk_backend_message (backend, PK_MESSAGE_ENUM_BROKEN_MIRROR, "fedora-updates-testing-source metadata is invalid");
- pk_backend_package (backend, PK_INFO_ENUM_BLOCKED,
- "gtkhtml2;2.19.1-4.fc8;i386;fedora",
- "An HTML widget for GTK+ 2.0");
- _updated_gtkhtml = FALSE;
+ if (_use_blocked) {
+ pk_backend_package (backend, PK_INFO_ENUM_BLOCKED,
+ "gtkhtml2;2.19.1-4.fc8;i386;fedora",
+ "An HTML widget for GTK+ 2.0");
+ _updated_gtkhtml = FALSE;
+ }
}
if (_progress_percentage == 40 && !_updated_powertop) {
pk_backend_set_status (backend, PK_STATUS_ENUM_UPDATE);
@@ -867,8 +883,9 @@ backend_update_system_timeout (gpointer data)
"kernel;2.6.23-0.115.rc3.git1.fc8;i386;installed",
"The Linux kernel (the core of the Linux operating system)");
}
- _progress_percentage += 10;
+ _progress_percentage += 1;
pk_backend_set_percentage (backend, _progress_percentage);
+ pk_backend_set_sub_percentage (backend, (_progress_percentage % 10) * 10);
return TRUE;
}
@@ -882,7 +899,7 @@ backend_update_system (PkBackend *backend)
pk_backend_set_allow_cancel (backend, TRUE);
_progress_percentage = 0;
pk_backend_require_restart (backend, PK_RESTART_ENUM_SYSTEM, "kernel;2.6.23-0.115.rc3.git1.fc8;i386;installed");
- _signal_timeout = g_timeout_add (1000, backend_update_system_timeout, backend);
+ _signal_timeout = g_timeout_add (100, backend_update_system_timeout, backend);
}
/**
commit 3586adcca5c0b070f7d1175888e12a93c653b142
Author: Richard Hughes <richard at hughsie.com>
Date: Tue Feb 24 17:17:29 2009 +0000
trivial: don't already return TRUE in pk_backend_package_emulate_finished() if we didn't match
diff --git a/src/pk-backend.c b/src/pk-backend.c
index 0bdcad5..61fd404 100644
--- a/src/pk-backend.c
+++ b/src/pk-backend.c
@@ -784,6 +784,7 @@ pk_backend_package_emulate_finished (PkBackend *backend)
{
PkInfoEnum info;
gchar *package_id;
+ gboolean ret = FALSE;
/* simultaneous handles this on it's own */
if (backend->priv->simultaneous)
@@ -808,8 +809,9 @@ pk_backend_package_emulate_finished (PkBackend *backend)
package_id = pk_package_id_to_string (backend->priv->last_package->id);
pk_backend_package (backend, PK_INFO_ENUM_FINISHED, package_id, backend->priv->last_package->summary);
g_free (package_id);
+ ret = TRUE;
}
- return TRUE;
+ return ret;
}
/**
commit 7840766f0bb22fe7f79831f96410d96f8594d9f1
Author: Richard Hughes <richard at hughsie.com>
Date: Tue Feb 24 17:16:41 2009 +0000
trivial: don't add finished packages to the internal package cache
diff --git a/src/pk-transaction.c b/src/pk-transaction.c
index 9531ee8..dfedeea 100644
--- a/src/pk-transaction.c
+++ b/src/pk-transaction.c
@@ -653,7 +653,7 @@ pk_transaction_finished_cb (PkBackend *backend, PkExitEnum exit_enum, PkTransact
else if (transaction->priv->emit_eula_required)
exit_enum = PK_EXIT_ENUM_EULA_REQUIRED;
- /* invalidate some caches if we succeeded*/
+ /* invalidate some caches if we succeeded */
if (exit_enum == PK_EXIT_ENUM_SUCCESS)
pk_transaction_finish_invalidate_caches (transaction);
@@ -797,12 +797,13 @@ pk_transaction_package_cb (PkBackend *backend, const PkPackageObj *obj, PkTransa
}
/* add to package cache even if we already got a result */
- info_text = pk_info_enum_to_text (obj->info);
- pk_obj_list_add (PK_OBJ_LIST(transaction->priv->package_list), obj);
+ if (obj->info != PK_INFO_ENUM_FINISHED)
+ pk_obj_list_add (PK_OBJ_LIST(transaction->priv->package_list), obj);
/* emit */
g_free (transaction->priv->last_package_id);
transaction->priv->last_package_id = pk_package_id_to_string (obj->id);
+ info_text = pk_info_enum_to_text (obj->info);
g_signal_emit (transaction, signals [PK_TRANSACTION_PACKAGE], 0, info_text,
transaction->priv->last_package_id, obj->summary);
}
commit c42ddf939c021e9a692338659f350d2c198c8106
Author: Richard Hughes <richard at hughsie.com>
Date: Tue Feb 24 13:40:55 2009 +0000
trivial: remove some autogenerated files from git, they should never have been checked in
diff --git a/lib/packagekit-sharp/generated/.gitignore b/lib/packagekit-sharp/generated/.gitignore
new file mode 100644
index 0000000..44e69f9
--- /dev/null
+++ b/lib/packagekit-sharp/generated/.gitignore
@@ -0,0 +1,2 @@
+*.cs
+
diff --git a/lib/packagekit-sharp/generated/AllowCancelHandler.cs b/lib/packagekit-sharp/generated/AllowCancelHandler.cs
deleted file mode 100644
index 07b76f0..0000000
--- a/lib/packagekit-sharp/generated/AllowCancelHandler.cs
+++ /dev/null
@@ -1,18 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
-
- public delegate void AllowCancelHandler(object o, AllowCancelArgs args);
-
- public class AllowCancelArgs : GLib.SignalArgs {
- public bool AllowCancel{
- get {
- return (bool) Args[0];
- }
- }
-
- }
-}
diff --git a/lib/packagekit-sharp/generated/Bitfield.cs b/lib/packagekit-sharp/generated/Bitfield.cs
deleted file mode 100644
index 8d77311..0000000
--- a/lib/packagekit-sharp/generated/Bitfield.cs
+++ /dev/null
@@ -1,14 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- public class Bitfield {
-
-#endregion
- }
-}
diff --git a/lib/packagekit-sharp/generated/CallerActiveChangedHandler.cs b/lib/packagekit-sharp/generated/CallerActiveChangedHandler.cs
deleted file mode 100644
index f4639f8..0000000
--- a/lib/packagekit-sharp/generated/CallerActiveChangedHandler.cs
+++ /dev/null
@@ -1,18 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
-
- public delegate void CallerActiveChangedHandler(object o, CallerActiveChangedArgs args);
-
- public class CallerActiveChangedArgs : GLib.SignalArgs {
- public bool IsActive{
- get {
- return (bool) Args[0];
- }
- }
-
- }
-}
diff --git a/lib/packagekit-sharp/generated/Catalog.cs b/lib/packagekit-sharp/generated/Catalog.cs
deleted file mode 100644
index 231c758..0000000
--- a/lib/packagekit-sharp/generated/Catalog.cs
+++ /dev/null
@@ -1,116 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
- using System.Collections;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- public class Catalog : GLib.Object {
-
- [Obsolete]
- protected Catalog(GLib.GType gtype) : base(gtype) {}
- public Catalog(IntPtr raw) : base(raw) {}
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_catalog_new();
-
- public Catalog () : base (IntPtr.Zero)
- {
- if (GetType () != typeof (Catalog)) {
- CreateNativeObject (new string [0], new GLib.Value[0]);
- return;
- }
- Raw = pk_catalog_new();
- }
-
- [GLib.CDeclCallback]
- delegate void ProgressVMDelegate (IntPtr inst, uint p0, IntPtr p1);
-
- static ProgressVMDelegate ProgressVMCallback;
-
- static void progress_cb (IntPtr inst, uint p0, IntPtr p1)
- {
- try {
- Catalog inst_managed = GLib.Object.GetObject (inst, false) as Catalog;
- inst_managed.OnProgress (p0, GLib.Marshaller.PtrToStringGFree(p1));
- } catch (Exception e) {
- GLib.ExceptionManager.RaiseUnhandledException (e, false);
- }
- }
-
- private static void OverrideProgress (GLib.GType gtype)
- {
- if (ProgressVMCallback == null)
- ProgressVMCallback = new ProgressVMDelegate (progress_cb);
- OverrideVirtualMethod (gtype, "progress", ProgressVMCallback);
- }
-
- [GLib.DefaultSignalHandler(Type=typeof(PackageKit.Catalog), ConnectionMethod="OverrideProgress")]
- protected virtual void OnProgress (uint p0, string p1)
- {
- GLib.Value ret = GLib.Value.Empty;
- GLib.ValueArray inst_and_params = new GLib.ValueArray (3);
- GLib.Value[] vals = new GLib.Value [3];
- vals [0] = new GLib.Value (this);
- inst_and_params.Append (vals [0]);
- vals [1] = new GLib.Value (p0);
- inst_and_params.Append (vals [1]);
- vals [2] = new GLib.Value (p1);
- inst_and_params.Append (vals [2]);
- g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
- foreach (GLib.Value v in vals)
- v.Dispose ();
- }
-
- [GLib.Signal("progress")]
- public event PackageKit.ProgressHandler Progress {
- add {
- GLib.Signal sig = GLib.Signal.Lookup (this, "progress", typeof (PackageKit.ProgressArgs));
- sig.AddDelegate (value);
- }
- remove {
- GLib.Signal sig = GLib.Signal.Lookup (this, "progress", typeof (PackageKit.ProgressArgs));
- sig.RemoveDelegate (value);
- }
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_catalog_get_type();
-
- public static new GLib.GType GType {
- get {
- IntPtr raw_ret = pk_catalog_get_type();
- GLib.GType ret = new GLib.GType(raw_ret);
- return ret;
- }
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_catalog_process_files(IntPtr raw, IntPtr filenames);
-
- public PackageKit.PackageList ProcessFiles(string filenames) {
- IntPtr raw_ret = pk_catalog_process_files(Handle, GLib.Marshaller.StringToPtrGStrdup(filenames));
- PackageKit.PackageList ret = GLib.Object.GetObject(raw_ret) as PackageKit.PackageList;
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern bool pk_catalog_cancel(IntPtr raw);
-
- public bool Cancel() {
- bool raw_ret = pk_catalog_cancel(Handle);
- bool ret = raw_ret;
- return ret;
- }
-
-
- static Catalog ()
- {
- GtkSharp.PackagekitSharp.ObjectManager.Initialize ();
- }
-#endregion
- }
-}
diff --git a/lib/packagekit-sharp/generated/CatalogProgress.cs b/lib/packagekit-sharp/generated/CatalogProgress.cs
deleted file mode 100644
index 918c18d..0000000
--- a/lib/packagekit-sharp/generated/CatalogProgress.cs
+++ /dev/null
@@ -1,18 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- public enum CatalogProgress {
-
- Packages,
- Files,
- Provides,
- Last,
- }
-#endregion
-}
diff --git a/lib/packagekit-sharp/generated/CategoryHandler.cs b/lib/packagekit-sharp/generated/CategoryHandler.cs
deleted file mode 100644
index 16b038c..0000000
--- a/lib/packagekit-sharp/generated/CategoryHandler.cs
+++ /dev/null
@@ -1,18 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
-
- public delegate void CategoryHandler(object o, CategoryArgs args);
-
- public class CategoryArgs : GLib.SignalArgs {
- public PackageKit.CategoryObj Obj{
- get {
- return (PackageKit.CategoryObj) Args[0];
- }
- }
-
- }
-}
diff --git a/lib/packagekit-sharp/generated/CategoryObj.cs b/lib/packagekit-sharp/generated/CategoryObj.cs
deleted file mode 100644
index 41ec854..0000000
--- a/lib/packagekit-sharp/generated/CategoryObj.cs
+++ /dev/null
@@ -1,61 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
- using System.Collections;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- public class CategoryObj : GLib.Opaque {
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_category_obj_copy(IntPtr raw);
-
- public PackageKit.CategoryObj Copy() {
- IntPtr raw_ret = pk_category_obj_copy(Handle);
- PackageKit.CategoryObj ret = raw_ret == IntPtr.Zero ? null : (PackageKit.CategoryObj) GLib.Opaque.GetOpaque (raw_ret, typeof (PackageKit.CategoryObj), true);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern bool pk_category_obj_free(IntPtr raw);
-
- public bool Free() {
- bool raw_ret = pk_category_obj_free(Handle);
- bool ret = raw_ret;
- return ret;
- }
-
- public CategoryObj(IntPtr raw) : base(raw) {}
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_category_obj_new();
-
- public CategoryObj ()
- {
- Raw = pk_category_obj_new();
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_category_obj_new_from_data(IntPtr parent_id, IntPtr cat_id, IntPtr name, IntPtr summary, IntPtr icon);
-
- public CategoryObj (string parent_id, string cat_id, string name, string summary, string icon)
- {
- IntPtr native_parent_id = GLib.Marshaller.StringToPtrGStrdup (parent_id);
- IntPtr native_cat_id = GLib.Marshaller.StringToPtrGStrdup (cat_id);
- IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup (name);
- IntPtr native_summary = GLib.Marshaller.StringToPtrGStrdup (summary);
- IntPtr native_icon = GLib.Marshaller.StringToPtrGStrdup (icon);
- Raw = pk_category_obj_new_from_data(native_parent_id, native_cat_id, native_name, native_summary, native_icon);
- GLib.Marshaller.Free (native_parent_id);
- GLib.Marshaller.Free (native_cat_id);
- GLib.Marshaller.Free (native_name);
- GLib.Marshaller.Free (native_summary);
- GLib.Marshaller.Free (native_icon);
- }
-
-#endregion
- }
-}
diff --git a/lib/packagekit-sharp/generated/Client.cs b/lib/packagekit-sharp/generated/Client.cs
deleted file mode 100644
index 0ace7a4..0000000
--- a/lib/packagekit-sharp/generated/Client.cs
+++ /dev/null
@@ -1,1851 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
- using System.Collections;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- public class Client : GLib.Object {
-
- [Obsolete]
- protected Client(GLib.GType gtype) : base(gtype) {}
- public Client(IntPtr raw) : base(raw) {}
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_client_new();
-
- public Client () : base (IntPtr.Zero)
- {
- if (GetType () != typeof (Client)) {
- CreateNativeObject (new string [0], new GLib.Value[0]);
- return;
- }
- Raw = pk_client_new();
- }
-
- [GLib.CDeclCallback]
- delegate void MessageVMDelegate (IntPtr client, int message, IntPtr details);
-
- static MessageVMDelegate MessageVMCallback;
-
- static void message_cb (IntPtr client, int message, IntPtr details)
- {
- try {
- Client client_managed = GLib.Object.GetObject (client, false) as Client;
- client_managed.OnMessage ((PackageKit.MessageEnum) message, GLib.Marshaller.Utf8PtrToString (details));
- } catch (Exception e) {
- GLib.ExceptionManager.RaiseUnhandledException (e, false);
- }
- }
-
- private static void OverrideMessage (GLib.GType gtype)
- {
- if (MessageVMCallback == null)
- MessageVMCallback = new MessageVMDelegate (message_cb);
- OverrideVirtualMethod (gtype, "message", MessageVMCallback);
- }
-
- [GLib.DefaultSignalHandler(Type=typeof(PackageKit.Client), ConnectionMethod="OverrideMessage")]
- protected virtual void OnMessage (PackageKit.MessageEnum message, string details)
- {
- GLib.Value ret = GLib.Value.Empty;
- GLib.ValueArray inst_and_params = new GLib.ValueArray (3);
- GLib.Value[] vals = new GLib.Value [3];
- vals [0] = new GLib.Value (this);
- inst_and_params.Append (vals [0]);
- vals [1] = new GLib.Value (message);
- inst_and_params.Append (vals [1]);
- vals [2] = new GLib.Value (details);
- inst_and_params.Append (vals [2]);
- g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
- foreach (GLib.Value v in vals)
- v.Dispose ();
- }
-
- [GLib.Signal("message")]
- public event PackageKit.MessageHandler Message {
- add {
- GLib.Signal sig = GLib.Signal.Lookup (this, "message", typeof (PackageKit.MessageArgs));
- sig.AddDelegate (value);
- }
- remove {
- GLib.Signal sig = GLib.Signal.Lookup (this, "message", typeof (PackageKit.MessageArgs));
- sig.RemoveDelegate (value);
- }
- }
-
- [GLib.CDeclCallback]
- delegate void DetailsVMDelegate (IntPtr client, IntPtr package_detail);
-
- static DetailsVMDelegate DetailsVMCallback;
-
- static void details_cb (IntPtr client, IntPtr package_detail)
- {
- try {
- Client client_managed = GLib.Object.GetObject (client, false) as Client;
- client_managed.OnDetails (package_detail == IntPtr.Zero ? null : (PackageKit.DetailsObj) GLib.Opaque.GetOpaque (package_detail, typeof (PackageKit.DetailsObj), false));
- } catch (Exception e) {
- GLib.ExceptionManager.RaiseUnhandledException (e, false);
- }
- }
-
- private static void OverrideDetails (GLib.GType gtype)
- {
- if (DetailsVMCallback == null)
- DetailsVMCallback = new DetailsVMDelegate (details_cb);
- OverrideVirtualMethod (gtype, "details", DetailsVMCallback);
- }
-
- [GLib.DefaultSignalHandler(Type=typeof(PackageKit.Client), ConnectionMethod="OverrideDetails")]
- protected virtual void OnDetails (PackageKit.DetailsObj package_detail)
- {
- GLib.Value ret = GLib.Value.Empty;
- GLib.ValueArray inst_and_params = new GLib.ValueArray (2);
- GLib.Value[] vals = new GLib.Value [2];
- vals [0] = new GLib.Value (this);
- inst_and_params.Append (vals [0]);
- vals [1] = new GLib.Value (package_detail);
- inst_and_params.Append (vals [1]);
- g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
- foreach (GLib.Value v in vals)
- v.Dispose ();
- }
-
- [GLib.CDeclCallback]
- delegate void DetailsSignalDelegate (IntPtr arg0, IntPtr arg1, IntPtr gch);
-
- static void DetailsSignalCallback (IntPtr arg0, IntPtr arg1, IntPtr gch)
- {
- PackageKit.DetailsArgs args = new PackageKit.DetailsArgs ();
- try {
- GLib.Signal sig = ((GCHandle) gch).Target as GLib.Signal;
- if (sig == null)
- throw new Exception("Unknown signal GC handle received " + gch);
-
- args.Args = new object[1];
- args.Args[0] = arg1 == IntPtr.Zero ? null : (PackageKit.DetailsObj) GLib.Opaque.GetOpaque (arg1, typeof (PackageKit.DetailsObj), false);
- PackageKit.DetailsHandler handler = (PackageKit.DetailsHandler) sig.Handler;
- handler (GLib.Object.GetObject (arg0), args);
- } catch (Exception e) {
- GLib.ExceptionManager.RaiseUnhandledException (e, false);
- }
- }
-
- [GLib.Signal("details")]
- public event PackageKit.DetailsHandler Details {
- add {
- GLib.Signal sig = GLib.Signal.Lookup (this, "details", new DetailsSignalDelegate(DetailsSignalCallback));
- sig.AddDelegate (value);
- }
- remove {
- GLib.Signal sig = GLib.Signal.Lookup (this, "details", new DetailsSignalDelegate(DetailsSignalCallback));
- sig.RemoveDelegate (value);
- }
- }
-
- [GLib.CDeclCallback]
- delegate void CallerActiveChangedVMDelegate (IntPtr client, bool is_active);
-
- static CallerActiveChangedVMDelegate CallerActiveChangedVMCallback;
-
- static void calleractivechanged_cb (IntPtr client, bool is_active)
- {
- try {
- Client client_managed = GLib.Object.GetObject (client, false) as Client;
- client_managed.OnCallerActiveChanged (is_active);
- } catch (Exception e) {
- GLib.ExceptionManager.RaiseUnhandledException (e, false);
- }
- }
-
- private static void OverrideCallerActiveChanged (GLib.GType gtype)
- {
- if (CallerActiveChangedVMCallback == null)
- CallerActiveChangedVMCallback = new CallerActiveChangedVMDelegate (calleractivechanged_cb);
- OverrideVirtualMethod (gtype, "caller-active-changed", CallerActiveChangedVMCallback);
- }
-
- [GLib.DefaultSignalHandler(Type=typeof(PackageKit.Client), ConnectionMethod="OverrideCallerActiveChanged")]
- protected virtual void OnCallerActiveChanged (bool is_active)
- {
- GLib.Value ret = GLib.Value.Empty;
- GLib.ValueArray inst_and_params = new GLib.ValueArray (2);
- GLib.Value[] vals = new GLib.Value [2];
- vals [0] = new GLib.Value (this);
- inst_and_params.Append (vals [0]);
- vals [1] = new GLib.Value (is_active);
- inst_and_params.Append (vals [1]);
- g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
- foreach (GLib.Value v in vals)
- v.Dispose ();
- }
-
- [GLib.Signal("caller-active-changed")]
- public event PackageKit.CallerActiveChangedHandler CallerActiveChanged {
- add {
- GLib.Signal sig = GLib.Signal.Lookup (this, "caller-active-changed", typeof (PackageKit.CallerActiveChangedArgs));
- sig.AddDelegate (value);
- }
- remove {
- GLib.Signal sig = GLib.Signal.Lookup (this, "caller-active-changed", typeof (PackageKit.CallerActiveChangedArgs));
- sig.RemoveDelegate (value);
- }
- }
-
- [GLib.CDeclCallback]
- delegate void ErrorCodeVMDelegate (IntPtr client, int code, IntPtr details);
-
- static ErrorCodeVMDelegate ErrorCodeVMCallback;
-
- static void errorcode_cb (IntPtr client, int code, IntPtr details)
- {
- try {
- Client client_managed = GLib.Object.GetObject (client, false) as Client;
- client_managed.OnErrorCode ((PackageKit.ErrorCodeEnum) code, GLib.Marshaller.Utf8PtrToString (details));
- } catch (Exception e) {
- GLib.ExceptionManager.RaiseUnhandledException (e, false);
- }
- }
-
- private static void OverrideErrorCode (GLib.GType gtype)
- {
- if (ErrorCodeVMCallback == null)
- ErrorCodeVMCallback = new ErrorCodeVMDelegate (errorcode_cb);
- OverrideVirtualMethod (gtype, "error-code", ErrorCodeVMCallback);
- }
-
- [GLib.DefaultSignalHandler(Type=typeof(PackageKit.Client), ConnectionMethod="OverrideErrorCode")]
- protected virtual void OnErrorCode (PackageKit.ErrorCodeEnum code, string details)
- {
- GLib.Value ret = GLib.Value.Empty;
- GLib.ValueArray inst_and_params = new GLib.ValueArray (3);
- GLib.Value[] vals = new GLib.Value [3];
- vals [0] = new GLib.Value (this);
- inst_and_params.Append (vals [0]);
- vals [1] = new GLib.Value (code);
- inst_and_params.Append (vals [1]);
- vals [2] = new GLib.Value (details);
- inst_and_params.Append (vals [2]);
- g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
- foreach (GLib.Value v in vals)
- v.Dispose ();
- }
-
- [GLib.Signal("error-code")]
- public event PackageKit.ErrorCodeHandler ErrorCode {
- add {
- GLib.Signal sig = GLib.Signal.Lookup (this, "error-code", typeof (PackageKit.ErrorCodeArgs));
- sig.AddDelegate (value);
- }
- remove {
- GLib.Signal sig = GLib.Signal.Lookup (this, "error-code", typeof (PackageKit.ErrorCodeArgs));
- sig.RemoveDelegate (value);
- }
- }
-
- [GLib.CDeclCallback]
- delegate void ProgressChangedVMDelegate (IntPtr client, uint percentage, uint subpercentage, uint elapsed, uint remaining);
-
- static ProgressChangedVMDelegate ProgressChangedVMCallback;
-
- static void progresschanged_cb (IntPtr client, uint percentage, uint subpercentage, uint elapsed, uint remaining)
- {
- try {
- Client client_managed = GLib.Object.GetObject (client, false) as Client;
- client_managed.OnProgressChanged (percentage, subpercentage, elapsed, remaining);
- } catch (Exception e) {
- GLib.ExceptionManager.RaiseUnhandledException (e, false);
- }
- }
-
- private static void OverrideProgressChanged (GLib.GType gtype)
- {
- if (ProgressChangedVMCallback == null)
- ProgressChangedVMCallback = new ProgressChangedVMDelegate (progresschanged_cb);
- OverrideVirtualMethod (gtype, "progress-changed", ProgressChangedVMCallback);
- }
-
- [GLib.DefaultSignalHandler(Type=typeof(PackageKit.Client), ConnectionMethod="OverrideProgressChanged")]
- protected virtual void OnProgressChanged (uint percentage, uint subpercentage, uint elapsed, uint remaining)
- {
- GLib.Value ret = GLib.Value.Empty;
- GLib.ValueArray inst_and_params = new GLib.ValueArray (5);
- GLib.Value[] vals = new GLib.Value [5];
- vals [0] = new GLib.Value (this);
- inst_and_params.Append (vals [0]);
- vals [1] = new GLib.Value (percentage);
- inst_and_params.Append (vals [1]);
- vals [2] = new GLib.Value (subpercentage);
- inst_and_params.Append (vals [2]);
- vals [3] = new GLib.Value (elapsed);
- inst_and_params.Append (vals [3]);
- vals [4] = new GLib.Value (remaining);
- inst_and_params.Append (vals [4]);
- g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
- foreach (GLib.Value v in vals)
- v.Dispose ();
- }
-
- [GLib.Signal("progress-changed")]
- public event PackageKit.ProgressChangedHandler ProgressChanged {
- add {
- GLib.Signal sig = GLib.Signal.Lookup (this, "progress-changed", typeof (PackageKit.ProgressChangedArgs));
- sig.AddDelegate (value);
- }
- remove {
- GLib.Signal sig = GLib.Signal.Lookup (this, "progress-changed", typeof (PackageKit.ProgressChangedArgs));
- sig.RemoveDelegate (value);
- }
- }
-
- [GLib.CDeclCallback]
- delegate void PackageVMDelegate (IntPtr client, IntPtr obj);
-
- static PackageVMDelegate PackageVMCallback;
-
- static void package_cb (IntPtr client, IntPtr obj)
- {
- try {
- Client client_managed = GLib.Object.GetObject (client, false) as Client;
- client_managed.OnPackage (obj == IntPtr.Zero ? null : (PackageKit.PackageObj) GLib.Opaque.GetOpaque (obj, typeof (PackageKit.PackageObj), false));
- } catch (Exception e) {
- GLib.ExceptionManager.RaiseUnhandledException (e, false);
- }
- }
-
- private static void OverridePackage (GLib.GType gtype)
- {
- if (PackageVMCallback == null)
- PackageVMCallback = new PackageVMDelegate (package_cb);
- OverrideVirtualMethod (gtype, "package", PackageVMCallback);
- }
-
- [GLib.DefaultSignalHandler(Type=typeof(PackageKit.Client), ConnectionMethod="OverridePackage")]
- protected virtual void OnPackage (PackageKit.PackageObj obj)
- {
- GLib.Value ret = GLib.Value.Empty;
- GLib.ValueArray inst_and_params = new GLib.ValueArray (2);
- GLib.Value[] vals = new GLib.Value [2];
- vals [0] = new GLib.Value (this);
- inst_and_params.Append (vals [0]);
- vals [1] = new GLib.Value (obj);
- inst_and_params.Append (vals [1]);
- g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
- foreach (GLib.Value v in vals)
- v.Dispose ();
- }
-
- [GLib.CDeclCallback]
- delegate void PackageSignalDelegate (IntPtr arg0, IntPtr arg1, IntPtr gch);
-
- static void PackageSignalCallback (IntPtr arg0, IntPtr arg1, IntPtr gch)
- {
- PackageKit.PackageArgs args = new PackageKit.PackageArgs ();
- try {
- GLib.Signal sig = ((GCHandle) gch).Target as GLib.Signal;
- if (sig == null)
- throw new Exception("Unknown signal GC handle received " + gch);
-
- args.Args = new object[1];
- args.Args[0] = arg1 == IntPtr.Zero ? null : (PackageKit.PackageObj) GLib.Opaque.GetOpaque (arg1, typeof (PackageKit.PackageObj), false);
- PackageKit.PackageHandler handler = (PackageKit.PackageHandler) sig.Handler;
- handler (GLib.Object.GetObject (arg0), args);
- } catch (Exception e) {
- GLib.ExceptionManager.RaiseUnhandledException (e, false);
- }
- }
-
- [GLib.Signal("package")]
- public event PackageKit.PackageHandler Package {
- add {
- GLib.Signal sig = GLib.Signal.Lookup (this, "package", new PackageSignalDelegate(PackageSignalCallback));
- sig.AddDelegate (value);
- }
- remove {
- GLib.Signal sig = GLib.Signal.Lookup (this, "package", new PackageSignalDelegate(PackageSignalCallback));
- sig.RemoveDelegate (value);
- }
- }
-
- [GLib.CDeclCallback]
- delegate void AllowCancelVMDelegate (IntPtr client, bool allow_cancel);
-
- static AllowCancelVMDelegate AllowCancelVMCallback;
-
- static void allowcancel_cb (IntPtr client, bool allow_cancel)
- {
- try {
- Client client_managed = GLib.Object.GetObject (client, false) as Client;
- client_managed.OnAllowCancel (allow_cancel);
- } catch (Exception e) {
- GLib.ExceptionManager.RaiseUnhandledException (e, false);
- }
- }
-
- private static void OverrideAllowCancel (GLib.GType gtype)
- {
- if (AllowCancelVMCallback == null)
- AllowCancelVMCallback = new AllowCancelVMDelegate (allowcancel_cb);
- OverrideVirtualMethod (gtype, "allow-cancel", AllowCancelVMCallback);
- }
-
- [GLib.DefaultSignalHandler(Type=typeof(PackageKit.Client), ConnectionMethod="OverrideAllowCancel")]
- protected virtual void OnAllowCancel (bool allow_cancel)
- {
- GLib.Value ret = GLib.Value.Empty;
- GLib.ValueArray inst_and_params = new GLib.ValueArray (2);
- GLib.Value[] vals = new GLib.Value [2];
- vals [0] = new GLib.Value (this);
- inst_and_params.Append (vals [0]);
- vals [1] = new GLib.Value (allow_cancel);
- inst_and_params.Append (vals [1]);
- g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
- foreach (GLib.Value v in vals)
- v.Dispose ();
- }
-
- [GLib.Signal("allow-cancel")]
- public event PackageKit.AllowCancelHandler AllowCancel {
- add {
- GLib.Signal sig = GLib.Signal.Lookup (this, "allow-cancel", typeof (PackageKit.AllowCancelArgs));
- sig.AddDelegate (value);
- }
- remove {
- GLib.Signal sig = GLib.Signal.Lookup (this, "allow-cancel", typeof (PackageKit.AllowCancelArgs));
- sig.RemoveDelegate (value);
- }
- }
-
- [GLib.CDeclCallback]
- delegate void TransactionVMDelegate (IntPtr client, IntPtr obj);
-
- static TransactionVMDelegate TransactionVMCallback;
-
- static void transaction_cb (IntPtr client, IntPtr obj)
- {
- try {
- Client client_managed = GLib.Object.GetObject (client, false) as Client;
- client_managed.OnTransaction (obj == IntPtr.Zero ? null : (PackageKit.TransactionObj) GLib.Opaque.GetOpaque (obj, typeof (PackageKit.TransactionObj), false));
- } catch (Exception e) {
- GLib.ExceptionManager.RaiseUnhandledException (e, false);
- }
- }
-
- private static void OverrideTransaction (GLib.GType gtype)
- {
- if (TransactionVMCallback == null)
- TransactionVMCallback = new TransactionVMDelegate (transaction_cb);
- OverrideVirtualMethod (gtype, "transaction", TransactionVMCallback);
- }
-
- [GLib.DefaultSignalHandler(Type=typeof(PackageKit.Client), ConnectionMethod="OverrideTransaction")]
- protected virtual void OnTransaction (PackageKit.TransactionObj obj)
- {
- GLib.Value ret = GLib.Value.Empty;
- GLib.ValueArray inst_and_params = new GLib.ValueArray (2);
- GLib.Value[] vals = new GLib.Value [2];
- vals [0] = new GLib.Value (this);
- inst_and_params.Append (vals [0]);
- vals [1] = new GLib.Value (obj);
- inst_and_params.Append (vals [1]);
- g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
- foreach (GLib.Value v in vals)
- v.Dispose ();
- }
-
- [GLib.CDeclCallback]
- delegate void TransactionSignalDelegate (IntPtr arg0, IntPtr arg1, IntPtr gch);
-
- static void TransactionSignalCallback (IntPtr arg0, IntPtr arg1, IntPtr gch)
- {
- PackageKit.TransactionArgs args = new PackageKit.TransactionArgs ();
- try {
- GLib.Signal sig = ((GCHandle) gch).Target as GLib.Signal;
- if (sig == null)
- throw new Exception("Unknown signal GC handle received " + gch);
-
- args.Args = new object[1];
- args.Args[0] = arg1 == IntPtr.Zero ? null : (PackageKit.TransactionObj) GLib.Opaque.GetOpaque (arg1, typeof (PackageKit.TransactionObj), false);
- PackageKit.TransactionHandler handler = (PackageKit.TransactionHandler) sig.Handler;
- handler (GLib.Object.GetObject (arg0), args);
- } catch (Exception e) {
- GLib.ExceptionManager.RaiseUnhandledException (e, false);
- }
- }
-
- [GLib.Signal("transaction")]
- public event PackageKit.TransactionHandler Transaction {
- add {
- GLib.Signal sig = GLib.Signal.Lookup (this, "transaction", new TransactionSignalDelegate(TransactionSignalCallback));
- sig.AddDelegate (value);
- }
- remove {
- GLib.Signal sig = GLib.Signal.Lookup (this, "transaction", new TransactionSignalDelegate(TransactionSignalCallback));
- sig.RemoveDelegate (value);
- }
- }
-
- [GLib.CDeclCallback]
- delegate void RepoSignatureRequiredVMDelegate (IntPtr client, IntPtr package_id, IntPtr repository_name, IntPtr key_url, IntPtr key_userid, IntPtr key_id, IntPtr key_fingerprint, IntPtr key_timestamp, int type);
-
- static RepoSignatureRequiredVMDelegate RepoSignatureRequiredVMCallback;
-
- static void reposignaturerequired_cb (IntPtr client, IntPtr package_id, IntPtr repository_name, IntPtr key_url, IntPtr key_userid, IntPtr key_id, IntPtr key_fingerprint, IntPtr key_timestamp, int type)
- {
- try {
- Client client_managed = GLib.Object.GetObject (client, false) as Client;
- client_managed.OnRepoSignatureRequired (GLib.Marshaller.Utf8PtrToString (package_id), GLib.Marshaller.Utf8PtrToString (repository_name), GLib.Marshaller.Utf8PtrToString (key_url), GLib.Marshaller.Utf8PtrToString (key_userid), GLib.Marshaller.Utf8PtrToString (key_id), GLib.Marshaller.Utf8PtrToString (key_fingerprint), GLib.Marshaller.Utf8PtrToString (key_timestamp), (PackageKit.SigTypeEnum) type);
- } catch (Exception e) {
- GLib.ExceptionManager.RaiseUnhandledException (e, false);
- }
- }
-
- private static void OverrideRepoSignatureRequired (GLib.GType gtype)
- {
- if (RepoSignatureRequiredVMCallback == null)
- RepoSignatureRequiredVMCallback = new RepoSignatureRequiredVMDelegate (reposignaturerequired_cb);
- OverrideVirtualMethod (gtype, "repo-signature-required", RepoSignatureRequiredVMCallback);
- }
-
- [GLib.DefaultSignalHandler(Type=typeof(PackageKit.Client), ConnectionMethod="OverrideRepoSignatureRequired")]
- protected virtual void OnRepoSignatureRequired (string package_id, string repository_name, string key_url, string key_userid, string key_id, string key_fingerprint, string key_timestamp, PackageKit.SigTypeEnum type)
- {
- GLib.Value ret = GLib.Value.Empty;
- GLib.ValueArray inst_and_params = new GLib.ValueArray (9);
- GLib.Value[] vals = new GLib.Value [9];
- vals [0] = new GLib.Value (this);
- inst_and_params.Append (vals [0]);
- vals [1] = new GLib.Value (package_id);
- inst_and_params.Append (vals [1]);
- vals [2] = new GLib.Value (repository_name);
- inst_and_params.Append (vals [2]);
- vals [3] = new GLib.Value (key_url);
- inst_and_params.Append (vals [3]);
- vals [4] = new GLib.Value (key_userid);
- inst_and_params.Append (vals [4]);
- vals [5] = new GLib.Value (key_id);
- inst_and_params.Append (vals [5]);
- vals [6] = new GLib.Value (key_fingerprint);
- inst_and_params.Append (vals [6]);
- vals [7] = new GLib.Value (key_timestamp);
- inst_and_params.Append (vals [7]);
- vals [8] = new GLib.Value (type);
- inst_and_params.Append (vals [8]);
- g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
- foreach (GLib.Value v in vals)
- v.Dispose ();
- }
-
- [GLib.Signal("repo-signature-required")]
- public event PackageKit.RepoSignatureRequiredHandler RepoSignatureRequired {
- add {
- GLib.Signal sig = GLib.Signal.Lookup (this, "repo-signature-required", typeof (PackageKit.RepoSignatureRequiredArgs));
- sig.AddDelegate (value);
- }
- remove {
- GLib.Signal sig = GLib.Signal.Lookup (this, "repo-signature-required", typeof (PackageKit.RepoSignatureRequiredArgs));
- sig.RemoveDelegate (value);
- }
- }
-
- [GLib.CDeclCallback]
- delegate void CategoryVMDelegate (IntPtr client, IntPtr obj);
-
- static CategoryVMDelegate CategoryVMCallback;
-
- static void category_cb (IntPtr client, IntPtr obj)
- {
- try {
- Client client_managed = GLib.Object.GetObject (client, false) as Client;
- client_managed.OnCategory (obj == IntPtr.Zero ? null : (PackageKit.CategoryObj) GLib.Opaque.GetOpaque (obj, typeof (PackageKit.CategoryObj), false));
- } catch (Exception e) {
- GLib.ExceptionManager.RaiseUnhandledException (e, false);
- }
- }
-
- private static void OverrideCategory (GLib.GType gtype)
- {
- if (CategoryVMCallback == null)
- CategoryVMCallback = new CategoryVMDelegate (category_cb);
- OverrideVirtualMethod (gtype, "category", CategoryVMCallback);
- }
-
- [GLib.DefaultSignalHandler(Type=typeof(PackageKit.Client), ConnectionMethod="OverrideCategory")]
- protected virtual void OnCategory (PackageKit.CategoryObj obj)
- {
- GLib.Value ret = GLib.Value.Empty;
- GLib.ValueArray inst_and_params = new GLib.ValueArray (2);
- GLib.Value[] vals = new GLib.Value [2];
- vals [0] = new GLib.Value (this);
- inst_and_params.Append (vals [0]);
- vals [1] = new GLib.Value (obj);
- inst_and_params.Append (vals [1]);
- g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
- foreach (GLib.Value v in vals)
- v.Dispose ();
- }
-
- [GLib.CDeclCallback]
- delegate void CategorySignalDelegate (IntPtr arg0, IntPtr arg1, IntPtr gch);
-
- static void CategorySignalCallback (IntPtr arg0, IntPtr arg1, IntPtr gch)
- {
- PackageKit.CategoryArgs args = new PackageKit.CategoryArgs ();
- try {
- GLib.Signal sig = ((GCHandle) gch).Target as GLib.Signal;
- if (sig == null)
- throw new Exception("Unknown signal GC handle received " + gch);
-
- args.Args = new object[1];
- args.Args[0] = arg1 == IntPtr.Zero ? null : (PackageKit.CategoryObj) GLib.Opaque.GetOpaque (arg1, typeof (PackageKit.CategoryObj), false);
- PackageKit.CategoryHandler handler = (PackageKit.CategoryHandler) sig.Handler;
- handler (GLib.Object.GetObject (arg0), args);
- } catch (Exception e) {
- GLib.ExceptionManager.RaiseUnhandledException (e, false);
- }
- }
-
- [GLib.Signal("category")]
- public event PackageKit.CategoryHandler Category {
- add {
- GLib.Signal sig = GLib.Signal.Lookup (this, "category", new CategorySignalDelegate(CategorySignalCallback));
- sig.AddDelegate (value);
- }
- remove {
- GLib.Signal sig = GLib.Signal.Lookup (this, "category", new CategorySignalDelegate(CategorySignalCallback));
- sig.RemoveDelegate (value);
- }
- }
-
- [GLib.CDeclCallback]
- delegate void EulaRequiredVMDelegate (IntPtr client, IntPtr eula_id, IntPtr package_id, IntPtr vendor_name, IntPtr license_agreement);
-
- static EulaRequiredVMDelegate EulaRequiredVMCallback;
-
- static void eularequired_cb (IntPtr client, IntPtr eula_id, IntPtr package_id, IntPtr vendor_name, IntPtr license_agreement)
- {
- try {
- Client client_managed = GLib.Object.GetObject (client, false) as Client;
- client_managed.OnEulaRequired (GLib.Marshaller.Utf8PtrToString (eula_id), GLib.Marshaller.Utf8PtrToString (package_id), GLib.Marshaller.Utf8PtrToString (vendor_name), GLib.Marshaller.Utf8PtrToString (license_agreement));
- } catch (Exception e) {
- GLib.ExceptionManager.RaiseUnhandledException (e, false);
- }
- }
-
- private static void OverrideEulaRequired (GLib.GType gtype)
- {
- if (EulaRequiredVMCallback == null)
- EulaRequiredVMCallback = new EulaRequiredVMDelegate (eularequired_cb);
- OverrideVirtualMethod (gtype, "eula-required", EulaRequiredVMCallback);
- }
-
- [GLib.DefaultSignalHandler(Type=typeof(PackageKit.Client), ConnectionMethod="OverrideEulaRequired")]
- protected virtual void OnEulaRequired (string eula_id, string package_id, string vendor_name, string license_agreement)
- {
- GLib.Value ret = GLib.Value.Empty;
- GLib.ValueArray inst_and_params = new GLib.ValueArray (5);
- GLib.Value[] vals = new GLib.Value [5];
- vals [0] = new GLib.Value (this);
- inst_and_params.Append (vals [0]);
- vals [1] = new GLib.Value (eula_id);
- inst_and_params.Append (vals [1]);
- vals [2] = new GLib.Value (package_id);
- inst_and_params.Append (vals [2]);
- vals [3] = new GLib.Value (vendor_name);
- inst_and_params.Append (vals [3]);
- vals [4] = new GLib.Value (license_agreement);
- inst_and_params.Append (vals [4]);
- g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
- foreach (GLib.Value v in vals)
- v.Dispose ();
- }
-
- [GLib.Signal("eula-required")]
- public event PackageKit.EulaRequiredHandler EulaRequired {
- add {
- GLib.Signal sig = GLib.Signal.Lookup (this, "eula-required", typeof (PackageKit.EulaRequiredArgs));
- sig.AddDelegate (value);
- }
- remove {
- GLib.Signal sig = GLib.Signal.Lookup (this, "eula-required", typeof (PackageKit.EulaRequiredArgs));
- sig.RemoveDelegate (value);
- }
- }
-
- [GLib.CDeclCallback]
- delegate void FinishedVMDelegate (IntPtr client, int exit, uint runtime);
-
- static FinishedVMDelegate FinishedVMCallback;
-
- static void finished_cb (IntPtr client, int exit, uint runtime)
- {
- try {
- Client client_managed = GLib.Object.GetObject (client, false) as Client;
- client_managed.OnFinished ((PackageKit.ExitEnum) exit, runtime);
- } catch (Exception e) {
- GLib.ExceptionManager.RaiseUnhandledException (e, false);
- }
- }
-
- private static void OverrideFinished (GLib.GType gtype)
- {
- if (FinishedVMCallback == null)
- FinishedVMCallback = new FinishedVMDelegate (finished_cb);
- OverrideVirtualMethod (gtype, "finished", FinishedVMCallback);
- }
-
- [GLib.DefaultSignalHandler(Type=typeof(PackageKit.Client), ConnectionMethod="OverrideFinished")]
- protected virtual void OnFinished (PackageKit.ExitEnum exit, uint runtime)
- {
- GLib.Value ret = GLib.Value.Empty;
- GLib.ValueArray inst_and_params = new GLib.ValueArray (3);
- GLib.Value[] vals = new GLib.Value [3];
- vals [0] = new GLib.Value (this);
- inst_and_params.Append (vals [0]);
- vals [1] = new GLib.Value (exit);
- inst_and_params.Append (vals [1]);
- vals [2] = new GLib.Value (runtime);
- inst_and_params.Append (vals [2]);
- g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
- foreach (GLib.Value v in vals)
- v.Dispose ();
- }
-
- [GLib.CDeclCallback]
- delegate void FinishedSignalDelegate (IntPtr arg0, int arg1, uint arg2, IntPtr gch);
-
- static void FinishedSignalCallback (IntPtr arg0, int arg1, uint arg2, IntPtr gch)
- {
- PackageKit.FinishedArgs args = new PackageKit.FinishedArgs ();
- try {
- GLib.Signal sig = ((GCHandle) gch).Target as GLib.Signal;
- if (sig == null)
- throw new Exception("Unknown signal GC handle received " + gch);
-
- args.Args = new object[2];
- args.Args[0] = (PackageKit.ExitEnum) arg1;
- args.Args[1] = arg2;
- PackageKit.FinishedHandler handler = (PackageKit.FinishedHandler) sig.Handler;
- handler (GLib.Object.GetObject (arg0), args);
- } catch (Exception e) {
- GLib.ExceptionManager.RaiseUnhandledException (e, false);
- }
- }
-
- [GLib.Signal("finished")]
- public event PackageKit.FinishedHandler Finished {
- add {
- GLib.Signal sig = GLib.Signal.Lookup (this, "finished", new FinishedSignalDelegate(FinishedSignalCallback));
- sig.AddDelegate (value);
- }
- remove {
- GLib.Signal sig = GLib.Signal.Lookup (this, "finished", new FinishedSignalDelegate(FinishedSignalCallback));
- sig.RemoveDelegate (value);
- }
- }
-
- [GLib.CDeclCallback]
- delegate void DestroyVMDelegate (IntPtr client, int exit, uint runtime);
-
- static DestroyVMDelegate DestroyVMCallback;
-
- static void destroy_cb (IntPtr client, int exit, uint runtime)
- {
- try {
- Client client_managed = GLib.Object.GetObject (client, false) as Client;
- client_managed.OnDestroy ((PackageKit.ExitEnum) exit, runtime);
- } catch (Exception e) {
- GLib.ExceptionManager.RaiseUnhandledException (e, false);
- }
- }
-
- private static void OverrideDestroy (GLib.GType gtype)
- {
- if (DestroyVMCallback == null)
- DestroyVMCallback = new DestroyVMDelegate (destroy_cb);
- OverrideVirtualMethod (gtype, "destroy", DestroyVMCallback);
- }
-
- [GLib.DefaultSignalHandler(Type=typeof(PackageKit.Client), ConnectionMethod="OverrideDestroy")]
- protected virtual void OnDestroy (PackageKit.ExitEnum exit, uint runtime)
- {
- GLib.Value ret = GLib.Value.Empty;
- GLib.ValueArray inst_and_params = new GLib.ValueArray (3);
- GLib.Value[] vals = new GLib.Value [3];
- vals [0] = new GLib.Value (this);
- inst_and_params.Append (vals [0]);
- vals [1] = new GLib.Value (exit);
- inst_and_params.Append (vals [1]);
- vals [2] = new GLib.Value (runtime);
- inst_and_params.Append (vals [2]);
- g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
- foreach (GLib.Value v in vals)
- v.Dispose ();
- }
-
- [GLib.Signal("destroy")]
- public event PackageKit.DestroyHandler Destroy {
- add {
- GLib.Signal sig = GLib.Signal.Lookup (this, "destroy", typeof (PackageKit.DestroyArgs));
- sig.AddDelegate (value);
- }
- remove {
- GLib.Signal sig = GLib.Signal.Lookup (this, "destroy", typeof (PackageKit.DestroyArgs));
- sig.RemoveDelegate (value);
- }
- }
-
- [GLib.CDeclCallback]
- delegate void FilesVMDelegate (IntPtr client, IntPtr package_id, IntPtr filelist);
-
- static FilesVMDelegate FilesVMCallback;
-
- static void files_cb (IntPtr client, IntPtr package_id, IntPtr filelist)
- {
- try {
- Client client_managed = GLib.Object.GetObject (client, false) as Client;
- client_managed.OnFiles (GLib.Marshaller.Utf8PtrToString (package_id), GLib.Marshaller.Utf8PtrToString (filelist));
- } catch (Exception e) {
- GLib.ExceptionManager.RaiseUnhandledException (e, false);
- }
- }
-
- private static void OverrideFiles (GLib.GType gtype)
- {
- if (FilesVMCallback == null)
- FilesVMCallback = new FilesVMDelegate (files_cb);
- OverrideVirtualMethod (gtype, "files", FilesVMCallback);
- }
-
- [GLib.DefaultSignalHandler(Type=typeof(PackageKit.Client), ConnectionMethod="OverrideFiles")]
- protected virtual void OnFiles (string package_id, string filelist)
- {
- GLib.Value ret = GLib.Value.Empty;
- GLib.ValueArray inst_and_params = new GLib.ValueArray (3);
- GLib.Value[] vals = new GLib.Value [3];
- vals [0] = new GLib.Value (this);
- inst_and_params.Append (vals [0]);
- vals [1] = new GLib.Value (package_id);
- inst_and_params.Append (vals [1]);
- vals [2] = new GLib.Value (filelist);
- inst_and_params.Append (vals [2]);
- g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
- foreach (GLib.Value v in vals)
- v.Dispose ();
- }
-
- [GLib.Signal("files")]
- public event PackageKit.FilesHandler Files {
- add {
- GLib.Signal sig = GLib.Signal.Lookup (this, "files", typeof (PackageKit.FilesArgs));
- sig.AddDelegate (value);
- }
- remove {
- GLib.Signal sig = GLib.Signal.Lookup (this, "files", typeof (PackageKit.FilesArgs));
- sig.RemoveDelegate (value);
- }
- }
-
- [GLib.CDeclCallback]
- delegate void DistroUpgradeVMDelegate (IntPtr client, int type, IntPtr name, IntPtr summary);
-
- static DistroUpgradeVMDelegate DistroUpgradeVMCallback;
-
- static void distroupgrade_cb (IntPtr client, int type, IntPtr name, IntPtr summary)
- {
- try {
- Client client_managed = GLib.Object.GetObject (client, false) as Client;
- client_managed.OnDistroUpgrade ((PackageKit.UpdateStateEnum) type, GLib.Marshaller.Utf8PtrToString (name), GLib.Marshaller.Utf8PtrToString (summary));
- } catch (Exception e) {
- GLib.ExceptionManager.RaiseUnhandledException (e, false);
- }
- }
-
- private static void OverrideDistroUpgrade (GLib.GType gtype)
- {
- if (DistroUpgradeVMCallback == null)
- DistroUpgradeVMCallback = new DistroUpgradeVMDelegate (distroupgrade_cb);
- OverrideVirtualMethod (gtype, "distro-upgrade", DistroUpgradeVMCallback);
- }
-
- [GLib.DefaultSignalHandler(Type=typeof(PackageKit.Client), ConnectionMethod="OverrideDistroUpgrade")]
- protected virtual void OnDistroUpgrade (PackageKit.UpdateStateEnum type, string name, string summary)
- {
- GLib.Value ret = GLib.Value.Empty;
- GLib.ValueArray inst_and_params = new GLib.ValueArray (4);
- GLib.Value[] vals = new GLib.Value [4];
- vals [0] = new GLib.Value (this);
- inst_and_params.Append (vals [0]);
- vals [1] = new GLib.Value (type);
- inst_and_params.Append (vals [1]);
- vals [2] = new GLib.Value (name);
- inst_and_params.Append (vals [2]);
- vals [3] = new GLib.Value (summary);
- inst_and_params.Append (vals [3]);
- g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
- foreach (GLib.Value v in vals)
- v.Dispose ();
- }
-
- [GLib.CDeclCallback]
- delegate void DistroUpgradeSignalDelegate (IntPtr arg0, int arg1, IntPtr arg2, IntPtr arg3, IntPtr gch);
-
- static void DistroUpgradeSignalCallback (IntPtr arg0, int arg1, IntPtr arg2, IntPtr arg3, IntPtr gch)
- {
- PackageKit.DistroUpgradeArgs args = new PackageKit.DistroUpgradeArgs ();
- try {
- GLib.Signal sig = ((GCHandle) gch).Target as GLib.Signal;
- if (sig == null)
- throw new Exception("Unknown signal GC handle received " + gch);
-
- args.Args = new object[3];
- args.Args[0] = (PackageKit.UpdateStateEnum) arg1;
- args.Args[1] = GLib.Marshaller.Utf8PtrToString (arg2);
- args.Args[2] = GLib.Marshaller.Utf8PtrToString (arg3);
- PackageKit.DistroUpgradeHandler handler = (PackageKit.DistroUpgradeHandler) sig.Handler;
- handler (GLib.Object.GetObject (arg0), args);
- } catch (Exception e) {
- GLib.ExceptionManager.RaiseUnhandledException (e, false);
- }
- }
-
- [GLib.Signal("distro-upgrade")]
- public event PackageKit.DistroUpgradeHandler DistroUpgrade {
- add {
- GLib.Signal sig = GLib.Signal.Lookup (this, "distro-upgrade", new DistroUpgradeSignalDelegate(DistroUpgradeSignalCallback));
- sig.AddDelegate (value);
- }
- remove {
- GLib.Signal sig = GLib.Signal.Lookup (this, "distro-upgrade", new DistroUpgradeSignalDelegate(DistroUpgradeSignalCallback));
- sig.RemoveDelegate (value);
- }
- }
-
- [GLib.CDeclCallback]
- delegate void RepoDetailVMDelegate (IntPtr client, IntPtr repo_id, IntPtr description, bool enabled);
-
- static RepoDetailVMDelegate RepoDetailVMCallback;
-
- static void repodetail_cb (IntPtr client, IntPtr repo_id, IntPtr description, bool enabled)
- {
- try {
- Client client_managed = GLib.Object.GetObject (client, false) as Client;
- client_managed.OnRepoDetail (GLib.Marshaller.Utf8PtrToString (repo_id), GLib.Marshaller.Utf8PtrToString (description), enabled);
- } catch (Exception e) {
- GLib.ExceptionManager.RaiseUnhandledException (e, false);
- }
- }
-
- private static void OverrideRepoDetail (GLib.GType gtype)
- {
- if (RepoDetailVMCallback == null)
- RepoDetailVMCallback = new RepoDetailVMDelegate (repodetail_cb);
- OverrideVirtualMethod (gtype, "repo-detail", RepoDetailVMCallback);
- }
-
- [GLib.DefaultSignalHandler(Type=typeof(PackageKit.Client), ConnectionMethod="OverrideRepoDetail")]
- protected virtual void OnRepoDetail (string repo_id, string description, bool enabled)
- {
- GLib.Value ret = GLib.Value.Empty;
- GLib.ValueArray inst_and_params = new GLib.ValueArray (4);
- GLib.Value[] vals = new GLib.Value [4];
- vals [0] = new GLib.Value (this);
- inst_and_params.Append (vals [0]);
- vals [1] = new GLib.Value (repo_id);
- inst_and_params.Append (vals [1]);
- vals [2] = new GLib.Value (description);
- inst_and_params.Append (vals [2]);
- vals [3] = new GLib.Value (enabled);
- inst_and_params.Append (vals [3]);
- g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
- foreach (GLib.Value v in vals)
- v.Dispose ();
- }
-
- [GLib.Signal("repo-detail")]
- public event PackageKit.RepoDetailHandler RepoDetail {
- add {
- GLib.Signal sig = GLib.Signal.Lookup (this, "repo-detail", typeof (PackageKit.RepoDetailArgs));
- sig.AddDelegate (value);
- }
- remove {
- GLib.Signal sig = GLib.Signal.Lookup (this, "repo-detail", typeof (PackageKit.RepoDetailArgs));
- sig.RemoveDelegate (value);
- }
- }
-
- [GLib.CDeclCallback]
- delegate void RequireRestartVMDelegate (IntPtr client, int restart, IntPtr id);
-
- static RequireRestartVMDelegate RequireRestartVMCallback;
-
- static void requirerestart_cb (IntPtr client, int restart, IntPtr id)
- {
- try {
- Client client_managed = GLib.Object.GetObject (client, false) as Client;
- client_managed.OnRequireRestart ((PackageKit.RestartEnum) restart, id == IntPtr.Zero ? null : (PackageKit.PackageId) GLib.Opaque.GetOpaque (id, typeof (PackageKit.PackageId), false));
- } catch (Exception e) {
- GLib.ExceptionManager.RaiseUnhandledException (e, false);
- }
- }
-
- private static void OverrideRequireRestart (GLib.GType gtype)
- {
- if (RequireRestartVMCallback == null)
- RequireRestartVMCallback = new RequireRestartVMDelegate (requirerestart_cb);
- OverrideVirtualMethod (gtype, "require-restart", RequireRestartVMCallback);
- }
-
- [GLib.DefaultSignalHandler(Type=typeof(PackageKit.Client), ConnectionMethod="OverrideRequireRestart")]
- protected virtual void OnRequireRestart (PackageKit.RestartEnum restart, PackageKit.PackageId id)
- {
- GLib.Value ret = GLib.Value.Empty;
- GLib.ValueArray inst_and_params = new GLib.ValueArray (3);
- GLib.Value[] vals = new GLib.Value [3];
- vals [0] = new GLib.Value (this);
- inst_and_params.Append (vals [0]);
- vals [1] = new GLib.Value (restart);
- inst_and_params.Append (vals [1]);
- vals [2] = new GLib.Value (id);
- inst_and_params.Append (vals [2]);
- g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
- foreach (GLib.Value v in vals)
- v.Dispose ();
- }
-
- [GLib.CDeclCallback]
- delegate void RequireRestartSignalDelegate (IntPtr arg0, int arg1, IntPtr arg2, IntPtr gch);
-
- static void RequireRestartSignalCallback (IntPtr arg0, int arg1, IntPtr arg2, IntPtr gch)
- {
- PackageKit.RequireRestartArgs args = new PackageKit.RequireRestartArgs ();
- try {
- GLib.Signal sig = ((GCHandle) gch).Target as GLib.Signal;
- if (sig == null)
- throw new Exception("Unknown signal GC handle received " + gch);
-
- args.Args = new object[2];
- args.Args[0] = (PackageKit.RestartEnum) arg1;
- args.Args[1] = arg2 == IntPtr.Zero ? null : (PackageKit.PackageId) GLib.Opaque.GetOpaque (arg2, typeof (PackageKit.PackageId), false);
- PackageKit.RequireRestartHandler handler = (PackageKit.RequireRestartHandler) sig.Handler;
- handler (GLib.Object.GetObject (arg0), args);
- } catch (Exception e) {
- GLib.ExceptionManager.RaiseUnhandledException (e, false);
- }
- }
-
- [GLib.Signal("require-restart")]
- public event PackageKit.RequireRestartHandler RequireRestart {
- add {
- GLib.Signal sig = GLib.Signal.Lookup (this, "require-restart", new RequireRestartSignalDelegate(RequireRestartSignalCallback));
- sig.AddDelegate (value);
- }
- remove {
- GLib.Signal sig = GLib.Signal.Lookup (this, "require-restart", new RequireRestartSignalDelegate(RequireRestartSignalCallback));
- sig.RemoveDelegate (value);
- }
- }
-
- [GLib.CDeclCallback]
- delegate void UpdateDetailVMDelegate (IntPtr client, IntPtr update_detail);
-
- static UpdateDetailVMDelegate UpdateDetailVMCallback;
-
- static void updatedetail_cb (IntPtr client, IntPtr update_detail)
- {
- try {
- Client client_managed = GLib.Object.GetObject (client, false) as Client;
- client_managed.OnUpdateDetail (update_detail == IntPtr.Zero ? null : (PackageKit.UpdateDetailObj) GLib.Opaque.GetOpaque (update_detail, typeof (PackageKit.UpdateDetailObj), false));
- } catch (Exception e) {
- GLib.ExceptionManager.RaiseUnhandledException (e, false);
- }
- }
-
- private static void OverrideUpdateDetail (GLib.GType gtype)
- {
- if (UpdateDetailVMCallback == null)
- UpdateDetailVMCallback = new UpdateDetailVMDelegate (updatedetail_cb);
- OverrideVirtualMethod (gtype, "update-detail", UpdateDetailVMCallback);
- }
-
- [GLib.DefaultSignalHandler(Type=typeof(PackageKit.Client), ConnectionMethod="OverrideUpdateDetail")]
- protected virtual void OnUpdateDetail (PackageKit.UpdateDetailObj update_detail)
- {
- GLib.Value ret = GLib.Value.Empty;
- GLib.ValueArray inst_and_params = new GLib.ValueArray (2);
- GLib.Value[] vals = new GLib.Value [2];
- vals [0] = new GLib.Value (this);
- inst_and_params.Append (vals [0]);
- vals [1] = new GLib.Value (update_detail);
- inst_and_params.Append (vals [1]);
- g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
- foreach (GLib.Value v in vals)
- v.Dispose ();
- }
-
- [GLib.CDeclCallback]
- delegate void UpdateDetailSignalDelegate (IntPtr arg0, IntPtr arg1, IntPtr gch);
-
- static void UpdateDetailSignalCallback (IntPtr arg0, IntPtr arg1, IntPtr gch)
- {
- PackageKit.UpdateDetailArgs args = new PackageKit.UpdateDetailArgs ();
- try {
- GLib.Signal sig = ((GCHandle) gch).Target as GLib.Signal;
- if (sig == null)
- throw new Exception("Unknown signal GC handle received " + gch);
-
- args.Args = new object[1];
- args.Args[0] = arg1 == IntPtr.Zero ? null : (PackageKit.UpdateDetailObj) GLib.Opaque.GetOpaque (arg1, typeof (PackageKit.UpdateDetailObj), false);
- PackageKit.UpdateDetailHandler handler = (PackageKit.UpdateDetailHandler) sig.Handler;
- handler (GLib.Object.GetObject (arg0), args);
- } catch (Exception e) {
- GLib.ExceptionManager.RaiseUnhandledException (e, false);
- }
- }
-
- [GLib.Signal("update-detail")]
- public event PackageKit.UpdateDetailHandler UpdateDetail {
- add {
- GLib.Signal sig = GLib.Signal.Lookup (this, "update-detail", new UpdateDetailSignalDelegate(UpdateDetailSignalCallback));
- sig.AddDelegate (value);
- }
- remove {
- GLib.Signal sig = GLib.Signal.Lookup (this, "update-detail", new UpdateDetailSignalDelegate(UpdateDetailSignalCallback));
- sig.RemoveDelegate (value);
- }
- }
-
- [GLib.CDeclCallback]
- delegate void StatusChangedVMDelegate (IntPtr client, int status);
-
- static StatusChangedVMDelegate StatusChangedVMCallback;
-
- static void statuschanged_cb (IntPtr client, int status)
- {
- try {
- Client client_managed = GLib.Object.GetObject (client, false) as Client;
- client_managed.OnStatusChanged ((PackageKit.StatusEnum) status);
- } catch (Exception e) {
- GLib.ExceptionManager.RaiseUnhandledException (e, false);
- }
- }
-
- private static void OverrideStatusChanged (GLib.GType gtype)
- {
- if (StatusChangedVMCallback == null)
- StatusChangedVMCallback = new StatusChangedVMDelegate (statuschanged_cb);
- OverrideVirtualMethod (gtype, "status-changed", StatusChangedVMCallback);
- }
-
- [GLib.DefaultSignalHandler(Type=typeof(PackageKit.Client), ConnectionMethod="OverrideStatusChanged")]
- protected virtual void OnStatusChanged (PackageKit.StatusEnum status)
- {
- GLib.Value ret = GLib.Value.Empty;
- GLib.ValueArray inst_and_params = new GLib.ValueArray (2);
- GLib.Value[] vals = new GLib.Value [2];
- vals [0] = new GLib.Value (this);
- inst_and_params.Append (vals [0]);
- vals [1] = new GLib.Value (status);
- inst_and_params.Append (vals [1]);
- g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
- foreach (GLib.Value v in vals)
- v.Dispose ();
- }
-
- [GLib.Signal("status-changed")]
- public event PackageKit.StatusChangedHandler StatusChanged {
- add {
- GLib.Signal sig = GLib.Signal.Lookup (this, "status-changed", typeof (PackageKit.StatusChangedArgs));
- sig.AddDelegate (value);
- }
- remove {
- GLib.Signal sig = GLib.Signal.Lookup (this, "status-changed", typeof (PackageKit.StatusChangedArgs));
- sig.RemoveDelegate (value);
- }
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe bool pk_client_get_depends(IntPtr raw, ulong filters, IntPtr package_ids, bool recursive, out IntPtr error);
-
- public unsafe bool GetDepends(ulong filters, string package_ids, bool recursive) {
- IntPtr error = IntPtr.Zero;
- bool raw_ret = pk_client_get_depends(Handle, filters, GLib.Marshaller.StringToPtrGStrdup(package_ids), recursive, out error);
- bool ret = raw_ret;
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe bool pk_client_get_packages(IntPtr raw, ulong filters, out IntPtr error);
-
- public unsafe bool GetPackages(ulong filters) {
- IntPtr error = IntPtr.Zero;
- bool raw_ret = pk_client_get_packages(Handle, filters, out error);
- bool ret = raw_ret;
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe bool pk_client_get_requires(IntPtr raw, ulong filters, IntPtr[] package_ids, bool recursive, out IntPtr error);
-
- public unsafe bool GetRequires(ulong filters, string[] package_ids, bool recursive) {
- int cnt_package_ids = package_ids == null ? 0 : package_ids.Length;
- IntPtr[] native_package_ids = new IntPtr [cnt_package_ids + 1];
- for (int i = 0; i < cnt_package_ids; i++)
- native_package_ids [i] = GLib.Marshaller.StringToPtrGStrdup(package_ids[i]);
- native_package_ids [cnt_package_ids] = IntPtr.Zero;
- IntPtr error = IntPtr.Zero;
- bool raw_ret = pk_client_get_requires(Handle, filters, native_package_ids, recursive, out error);
- bool ret = raw_ret;
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_client_get_type();
-
- public static new GLib.GType GType {
- get {
- IntPtr raw_ret = pk_client_get_type();
- GLib.GType ret = new GLib.GType(raw_ret);
- return ret;
- }
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe bool pk_client_remove_packages(IntPtr raw, IntPtr package_ids, bool allow_deps, bool autoremove, out IntPtr error);
-
- public unsafe bool RemovePackages(string package_ids, bool allow_deps, bool autoremove) {
- IntPtr error = IntPtr.Zero;
- bool raw_ret = pk_client_remove_packages(Handle, GLib.Marshaller.StringToPtrGStrdup(package_ids), allow_deps, autoremove, out error);
- bool ret = raw_ret;
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe bool pk_client_get_update_detail(IntPtr raw, IntPtr[] package_ids, out IntPtr error);
-
- public unsafe bool GetUpdateDetail(string[] package_ids) {
- int cnt_package_ids = package_ids == null ? 0 : package_ids.Length;
- IntPtr[] native_package_ids = new IntPtr [cnt_package_ids + 1];
- for (int i = 0; i < cnt_package_ids; i++)
- native_package_ids [i] = GLib.Marshaller.StringToPtrGStrdup(package_ids[i]);
- native_package_ids [cnt_package_ids] = IntPtr.Zero;
- IntPtr error = IntPtr.Zero;
- bool raw_ret = pk_client_get_update_detail(Handle, native_package_ids, out error);
- bool ret = raw_ret;
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe bool pk_client_what_provides(IntPtr raw, ulong filters, int provides, IntPtr search, out IntPtr error);
-
- public unsafe bool WhatProvides(ulong filters, PackageKit.ProvidesEnum provides, string search) {
- IntPtr native_search = GLib.Marshaller.StringToPtrGStrdup (search);
- IntPtr error = IntPtr.Zero;
- bool raw_ret = pk_client_what_provides(Handle, filters, (int) provides, native_search, out error);
- bool ret = raw_ret;
- GLib.Marshaller.Free (native_search);
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe bool pk_client_reset(IntPtr raw, out IntPtr error);
-
- public unsafe bool Reset() {
- IntPtr error = IntPtr.Zero;
- bool raw_ret = pk_client_reset(Handle, out error);
- bool ret = raw_ret;
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe bool pk_client_get_role(IntPtr raw, out int role, IntPtr text, out IntPtr error);
-
- public unsafe bool GetRole(out PackageKit.RoleEnum role, string text) {
- int native_role;
- IntPtr error = IntPtr.Zero;
- bool raw_ret = pk_client_get_role(Handle, out native_role, GLib.Marshaller.StringToPtrGStrdup(text), out error);
- bool ret = raw_ret;
- role = (PackageKit.RoleEnum) native_role;
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe bool pk_client_install_files(IntPtr raw, bool trusted, IntPtr[] files_rel, out IntPtr error);
-
- public unsafe bool InstallFiles(bool trusted, string[] files_rel) {
- int cnt_files_rel = files_rel == null ? 0 : files_rel.Length;
- IntPtr[] native_files_rel = new IntPtr [cnt_files_rel + 1];
- for (int i = 0; i < cnt_files_rel; i++)
- native_files_rel [i] = GLib.Marshaller.StringToPtrGStrdup(files_rel[i]);
- native_files_rel [cnt_files_rel] = IntPtr.Zero;
- IntPtr error = IntPtr.Zero;
- bool raw_ret = pk_client_install_files(Handle, trusted, native_files_rel, out error);
- bool ret = raw_ret;
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe bool pk_client_download_packages(IntPtr raw, IntPtr[] package_ids, IntPtr directory, out IntPtr error);
-
- public unsafe bool DownloadPackages(string[] package_ids, string directory) {
- int cnt_package_ids = package_ids == null ? 0 : package_ids.Length;
- IntPtr[] native_package_ids = new IntPtr [cnt_package_ids + 1];
- for (int i = 0; i < cnt_package_ids; i++)
- native_package_ids [i] = GLib.Marshaller.StringToPtrGStrdup(package_ids[i]);
- native_package_ids [cnt_package_ids] = IntPtr.Zero;
- IntPtr native_directory = GLib.Marshaller.StringToPtrGStrdup (directory);
- IntPtr error = IntPtr.Zero;
- bool raw_ret = pk_client_download_packages(Handle, native_package_ids, native_directory, out error);
- bool ret = raw_ret;
- GLib.Marshaller.Free (native_directory);
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe bool pk_client_search_file(IntPtr raw, ulong filters, IntPtr search, out IntPtr error);
-
- public unsafe bool SearchFile(ulong filters, string search) {
- IntPtr native_search = GLib.Marshaller.StringToPtrGStrdup (search);
- IntPtr error = IntPtr.Zero;
- bool raw_ret = pk_client_search_file(Handle, filters, native_search, out error);
- bool ret = raw_ret;
- GLib.Marshaller.Free (native_search);
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe bool pk_client_set_timeout(IntPtr raw, int timeout, out IntPtr error);
-
- public unsafe bool SetTimeout(int timeout) {
- IntPtr error = IntPtr.Zero;
- bool raw_ret = pk_client_set_timeout(Handle, timeout, out error);
- bool ret = raw_ret;
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_client_get_cached_objects(IntPtr raw);
-
- public PackageKit.ObjList CachedObjects {
- get {
- IntPtr raw_ret = pk_client_get_cached_objects(Handle);
- PackageKit.ObjList ret = GLib.Object.GetObject(raw_ret) as PackageKit.ObjList;
- return ret;
- }
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe bool pk_client_repo_set_data(IntPtr raw, IntPtr repo_id, IntPtr parameter, IntPtr value, out IntPtr error);
-
- public unsafe bool RepoSetData(string repo_id, string parameter, string value) {
- IntPtr native_repo_id = GLib.Marshaller.StringToPtrGStrdup (repo_id);
- IntPtr native_parameter = GLib.Marshaller.StringToPtrGStrdup (parameter);
- IntPtr native_value = GLib.Marshaller.StringToPtrGStrdup (value);
- IntPtr error = IntPtr.Zero;
- bool raw_ret = pk_client_repo_set_data(Handle, native_repo_id, native_parameter, native_value, out error);
- bool ret = raw_ret;
- GLib.Marshaller.Free (native_repo_id);
- GLib.Marshaller.Free (native_parameter);
- GLib.Marshaller.Free (native_value);
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe bool pk_client_get_allow_cancel(IntPtr raw, out bool allow_cancel, out IntPtr error);
-
- public unsafe bool GetAllowCancel(out bool allow_cancel) {
- IntPtr error = IntPtr.Zero;
- bool raw_ret = pk_client_get_allow_cancel(Handle, out allow_cancel, out error);
- bool ret = raw_ret;
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe bool pk_client_get_files(IntPtr raw, IntPtr package_ids, out IntPtr error);
-
- public unsafe bool GetFiles(string package_ids) {
- IntPtr error = IntPtr.Zero;
- bool raw_ret = pk_client_get_files(Handle, GLib.Marshaller.StringToPtrGStrdup(package_ids), out error);
- bool ret = raw_ret;
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe bool pk_client_get_package(IntPtr raw, IntPtr package, out IntPtr error);
-
- public unsafe bool GetPackage(string package) {
- IntPtr error = IntPtr.Zero;
- bool raw_ret = pk_client_get_package(Handle, GLib.Marshaller.StringToPtrGStrdup(package), out error);
- bool ret = raw_ret;
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe bool pk_client_is_caller_active(IntPtr raw, out bool is_active, out IntPtr error);
-
- public unsafe bool IsCallerActive(out bool is_active) {
- IntPtr error = IntPtr.Zero;
- bool raw_ret = pk_client_is_caller_active(Handle, out is_active, out error);
- bool ret = raw_ret;
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe bool pk_client_resolve(IntPtr raw, ulong filters, IntPtr packages, out IntPtr error);
-
- public unsafe bool Resolve(ulong filters, string packages) {
- IntPtr error = IntPtr.Zero;
- bool raw_ret = pk_client_resolve(Handle, filters, GLib.Marshaller.StringToPtrGStrdup(packages), out error);
- bool ret = raw_ret;
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe bool pk_client_install_signature(IntPtr raw, int type, IntPtr key_id, IntPtr package_id, out IntPtr error);
-
- public unsafe bool InstallSignature(PackageKit.SigTypeEnum type, string key_id, string package_id) {
- IntPtr native_key_id = GLib.Marshaller.StringToPtrGStrdup (key_id);
- IntPtr native_package_id = GLib.Marshaller.StringToPtrGStrdup (package_id);
- IntPtr error = IntPtr.Zero;
- bool raw_ret = pk_client_install_signature(Handle, (int) type, native_key_id, native_package_id, out error);
- bool ret = raw_ret;
- GLib.Marshaller.Free (native_key_id);
- GLib.Marshaller.Free (native_package_id);
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe bool pk_client_install_packages(IntPtr raw, IntPtr[] package_ids, out IntPtr error);
-
- public unsafe bool InstallPackages(string[] package_ids) {
- int cnt_package_ids = package_ids == null ? 0 : package_ids.Length;
- IntPtr[] native_package_ids = new IntPtr [cnt_package_ids + 1];
- for (int i = 0; i < cnt_package_ids; i++)
- native_package_ids [i] = GLib.Marshaller.StringToPtrGStrdup(package_ids[i]);
- native_package_ids [cnt_package_ids] = IntPtr.Zero;
- IntPtr error = IntPtr.Zero;
- bool raw_ret = pk_client_install_packages(Handle, native_package_ids, out error);
- bool ret = raw_ret;
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe bool pk_client_search_name(IntPtr raw, ulong filters, IntPtr search, out IntPtr error);
-
- public unsafe bool SearchName(ulong filters, string search) {
- IntPtr native_search = GLib.Marshaller.StringToPtrGStrdup (search);
- IntPtr error = IntPtr.Zero;
- bool raw_ret = pk_client_search_name(Handle, filters, native_search, out error);
- bool ret = raw_ret;
- GLib.Marshaller.Free (native_search);
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern int pk_client_get_require_restart(IntPtr raw);
-
- public PackageKit.RestartEnum RequireRestartStatus {
- get {
- int raw_ret = pk_client_get_require_restart(Handle);
- PackageKit.RestartEnum ret = (PackageKit.RestartEnum) raw_ret;
- return ret;
- }
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe bool pk_client_set_synchronous(IntPtr raw, bool synchronous, out IntPtr error);
-
- public unsafe bool SetSynchronous(bool synchronous) {
- IntPtr error = IntPtr.Zero;
- bool raw_ret = pk_client_set_synchronous(Handle, synchronous, out error);
- bool ret = raw_ret;
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe bool pk_client_update_packages(IntPtr raw, IntPtr[] package_ids, out IntPtr error);
-
- public unsafe bool UpdatePackages(string[] package_ids) {
- int cnt_package_ids = package_ids == null ? 0 : package_ids.Length;
- IntPtr[] native_package_ids = new IntPtr [cnt_package_ids + 1];
- for (int i = 0; i < cnt_package_ids; i++)
- native_package_ids [i] = GLib.Marshaller.StringToPtrGStrdup(package_ids[i]);
- native_package_ids [cnt_package_ids] = IntPtr.Zero;
- IntPtr error = IntPtr.Zero;
- bool raw_ret = pk_client_update_packages(Handle, native_package_ids, out error);
- bool ret = raw_ret;
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_client_get_package_list(IntPtr raw);
-
- public PackageKit.PackageList PackageList {
- get {
- IntPtr raw_ret = pk_client_get_package_list(Handle);
- PackageKit.PackageList ret = GLib.Object.GetObject(raw_ret) as PackageKit.PackageList;
- return ret;
- }
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe bool pk_client_accept_eula(IntPtr raw, IntPtr eula_id, out IntPtr error);
-
- public unsafe bool AcceptEula(string eula_id) {
- IntPtr native_eula_id = GLib.Marshaller.StringToPtrGStrdup (eula_id);
- IntPtr error = IntPtr.Zero;
- bool raw_ret = pk_client_accept_eula(Handle, native_eula_id, out error);
- bool ret = raw_ret;
- GLib.Marshaller.Free (native_eula_id);
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe bool pk_client_get_progress(IntPtr raw, out uint percentage, out uint subpercentage, out uint elapsed, out uint remaining, out IntPtr error);
-
- public unsafe bool GetProgress(out uint percentage, out uint subpercentage, out uint elapsed, out uint remaining) {
- IntPtr error = IntPtr.Zero;
- bool raw_ret = pk_client_get_progress(Handle, out percentage, out subpercentage, out elapsed, out remaining, out error);
- bool ret = raw_ret;
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe bool pk_client_set_locale(IntPtr raw, IntPtr code, out IntPtr error);
-
- public unsafe bool SetLocale(string code) {
- IntPtr native_code = GLib.Marshaller.StringToPtrGStrdup (code);
- IntPtr error = IntPtr.Zero;
- bool raw_ret = pk_client_set_locale(Handle, native_code, out error);
- bool ret = raw_ret;
- GLib.Marshaller.Free (native_code);
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe bool pk_client_get_details(IntPtr raw, IntPtr[] package_ids, out IntPtr error);
-
- public unsafe bool GetDetails(string[] package_ids) {
- int cnt_package_ids = package_ids == null ? 0 : package_ids.Length;
- IntPtr[] native_package_ids = new IntPtr [cnt_package_ids + 1];
- for (int i = 0; i < cnt_package_ids; i++)
- native_package_ids [i] = GLib.Marshaller.StringToPtrGStrdup(package_ids[i]);
- native_package_ids [cnt_package_ids] = IntPtr.Zero;
- IntPtr error = IntPtr.Zero;
- bool raw_ret = pk_client_get_details(Handle, native_package_ids, out error);
- bool ret = raw_ret;
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe bool pk_client_get_updates(IntPtr raw, ulong filters, out IntPtr error);
-
- public unsafe bool GetUpdates(ulong filters) {
- IntPtr error = IntPtr.Zero;
- bool raw_ret = pk_client_get_updates(Handle, filters, out error);
- bool ret = raw_ret;
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe bool pk_client_install_file(IntPtr raw, bool trusted, IntPtr file_rel, out IntPtr error);
-
- public unsafe bool InstallFile(bool trusted, string file_rel) {
- IntPtr native_file_rel = GLib.Marshaller.StringToPtrGStrdup (file_rel);
- IntPtr error = IntPtr.Zero;
- bool raw_ret = pk_client_install_file(Handle, trusted, native_file_rel, out error);
- bool ret = raw_ret;
- GLib.Marshaller.Free (native_file_rel);
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe bool pk_client_refresh_cache(IntPtr raw, bool force, out IntPtr error);
-
- public unsafe bool RefreshCache(bool force) {
- IntPtr error = IntPtr.Zero;
- bool raw_ret = pk_client_refresh_cache(Handle, force, out error);
- bool ret = raw_ret;
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe bool pk_client_search_group(IntPtr raw, ulong filters, IntPtr search, out IntPtr error);
-
- public unsafe bool SearchGroup(ulong filters, string search) {
- IntPtr native_search = GLib.Marshaller.StringToPtrGStrdup (search);
- IntPtr error = IntPtr.Zero;
- bool raw_ret = pk_client_search_group(Handle, filters, native_search, out error);
- bool ret = raw_ret;
- GLib.Marshaller.Free (native_search);
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe bool pk_client_search_details(IntPtr raw, ulong filters, IntPtr search, out IntPtr error);
-
- public unsafe bool SearchDetails(ulong filters, string search) {
- IntPtr native_search = GLib.Marshaller.StringToPtrGStrdup (search);
- IntPtr error = IntPtr.Zero;
- bool raw_ret = pk_client_search_details(Handle, filters, native_search, out error);
- bool ret = raw_ret;
- GLib.Marshaller.Free (native_search);
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe bool pk_client_update_system(IntPtr raw, out IntPtr error);
-
- public unsafe bool UpdateSystem() {
- IntPtr error = IntPtr.Zero;
- bool raw_ret = pk_client_update_system(Handle, out error);
- bool ret = raw_ret;
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe bool pk_client_get_categories(IntPtr raw, out IntPtr error);
-
- public unsafe bool GetCategories() {
- IntPtr error = IntPtr.Zero;
- bool raw_ret = pk_client_get_categories(Handle, out error);
- bool ret = raw_ret;
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe bool pk_client_get_status(IntPtr raw, out int status, out IntPtr error);
-
- public unsafe bool GetStatus(out PackageKit.StatusEnum status) {
- int native_status;
- IntPtr error = IntPtr.Zero;
- bool raw_ret = pk_client_get_status(Handle, out native_status, out error);
- bool ret = raw_ret;
- status = (PackageKit.StatusEnum) native_status;
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe bool pk_client_repo_enable(IntPtr raw, IntPtr repo_id, bool enabled, out IntPtr error);
-
- public unsafe bool RepoEnable(string repo_id, bool enabled) {
- IntPtr native_repo_id = GLib.Marshaller.StringToPtrGStrdup (repo_id);
- IntPtr error = IntPtr.Zero;
- bool raw_ret = pk_client_repo_enable(Handle, native_repo_id, enabled, out error);
- bool ret = raw_ret;
- GLib.Marshaller.Free (native_repo_id);
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe bool pk_client_cancel(IntPtr raw, out IntPtr error);
-
- public unsafe bool Cancel() {
- IntPtr error = IntPtr.Zero;
- bool raw_ret = pk_client_cancel(Handle, out error);
- bool ret = raw_ret;
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe bool pk_client_get_repo_list(IntPtr raw, ulong filters, out IntPtr error);
-
- public unsafe bool GetRepoList(ulong filters) {
- IntPtr error = IntPtr.Zero;
- bool raw_ret = pk_client_get_repo_list(Handle, filters, out error);
- bool ret = raw_ret;
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe bool pk_client_requeue(IntPtr raw, out IntPtr error);
-
- public unsafe bool Requeue() {
- IntPtr error = IntPtr.Zero;
- bool raw_ret = pk_client_requeue(Handle, out error);
- bool ret = raw_ret;
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern int pk_client_error_quark();
-
- public static int ErrorQuark() {
- int raw_ret = pk_client_error_quark();
- int ret = raw_ret;
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe bool pk_client_get_distro_upgrades(IntPtr raw, out IntPtr error);
-
- public unsafe bool GetDistroUpgrades() {
- IntPtr error = IntPtr.Zero;
- bool raw_ret = pk_client_get_distro_upgrades(Handle, out error);
- bool ret = raw_ret;
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_client_get_require_restart_list(IntPtr raw);
-
- public GLib.PtrArray RequireRestartList {
- get {
- IntPtr raw_ret = pk_client_get_require_restart_list(Handle);
- GLib.PtrArray ret = new GLib.PtrArray(raw_ret);
- return ret;
- }
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe bool pk_client_get_old_transactions(IntPtr raw, uint number, out IntPtr error);
-
- public unsafe bool GetOldTransactions(uint number) {
- IntPtr error = IntPtr.Zero;
- bool raw_ret = pk_client_get_old_transactions(Handle, number, out error);
- bool ret = raw_ret;
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe bool pk_client_rollback(IntPtr raw, IntPtr transaction_id, out IntPtr error);
-
- public unsafe bool Rollback(string transaction_id) {
- IntPtr native_transaction_id = GLib.Marshaller.StringToPtrGStrdup (transaction_id);
- IntPtr error = IntPtr.Zero;
- bool raw_ret = pk_client_rollback(Handle, native_transaction_id, out error);
- bool ret = raw_ret;
- GLib.Marshaller.Free (native_transaction_id);
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- return ret;
- }
-
-
- static Client ()
- {
- GtkSharp.PackagekitSharp.ObjectManager.Initialize ();
- }
-#endregion
-#region Customized extensions
-#line 1 "Client.custom"
-/*
- * Client.custom: customization code for Client.cs
- *
- * Author(s):
- * Stephane Delcroix (stephane at delcroix.org)
- *
- * Copyright (c) 2009 Novell, Inc.
- *
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to
- * permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- *
- * The above copyright notice and this permission notice shall be
- * included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
- * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
- * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
- * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- *
- */
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe bool pk_client_set_tid(IntPtr raw, IntPtr tid, out IntPtr error);
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_client_get_tid(IntPtr raw);
-
- public string Tid {
- get {
- IntPtr raw_ret = pk_client_get_tid(Handle);
- string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
- return ret;
- }
- set {
- IntPtr native_tid = GLib.Marshaller.StringToPtrGStrdup (value);
- IntPtr error = IntPtr.Zero;
- pk_client_set_tid(Handle, native_tid, out error);
- GLib.Marshaller.Free (native_tid);
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- }
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe bool pk_client_set_use_buffer(IntPtr raw, bool use_buffer, out IntPtr error);
-
- [DllImport("libpackagekit-glib.dll")]
- static extern bool pk_client_get_use_buffer(IntPtr raw);
-
- public bool UseBuffer {
- get {
- bool raw_ret = pk_client_get_use_buffer(Handle);
- bool ret = raw_ret;
- return ret;
- }
- set {
- IntPtr error = IntPtr.Zero;
- pk_client_set_use_buffer(Handle, value, out error);
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- }
- }
-
-
-
-
-
-#endregion
- }
-}
diff --git a/lib/packagekit-sharp/generated/ClientError.cs b/lib/packagekit-sharp/generated/ClientError.cs
deleted file mode 100644
index 850d033..0000000
--- a/lib/packagekit-sharp/generated/ClientError.cs
+++ /dev/null
@@ -1,35 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- [GLib.GType (typeof (PackageKit.ClientErrorGType))]
- public enum ClientError {
-
- Failed,
- FailedAuth,
- NoTid,
- AlreadyTid,
- RoleUnknown,
- CannotStartDaemon,
- InvalidInput,
- InvalidFile,
- NotSupported,
- }
-
- internal class ClientErrorGType {
- [DllImport ("libpackagekit-glib.dll")]
- static extern IntPtr pk_client_error_get_type ();
-
- public static GLib.GType GType {
- get {
- return new GLib.GType (pk_client_error_get_type ());
- }
- }
- }
-#endregion
-}
diff --git a/lib/packagekit-sharp/generated/Connection.cs b/lib/packagekit-sharp/generated/Connection.cs
deleted file mode 100644
index fd33e22..0000000
--- a/lib/packagekit-sharp/generated/Connection.cs
+++ /dev/null
@@ -1,105 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
- using System.Collections;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- public class Connection : GLib.Object {
-
- [Obsolete]
- protected Connection(GLib.GType gtype) : base(gtype) {}
- public Connection(IntPtr raw) : base(raw) {}
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_connection_new();
-
- public Connection () : base (IntPtr.Zero)
- {
- if (GetType () != typeof (Connection)) {
- CreateNativeObject (new string [0], new GLib.Value[0]);
- return;
- }
- Raw = pk_connection_new();
- }
-
- [GLib.CDeclCallback]
- delegate void ConnectionChangedVMDelegate (IntPtr connection, bool connected);
-
- static ConnectionChangedVMDelegate ConnectionChangedVMCallback;
-
- static void connectionchanged_cb (IntPtr connection, bool connected)
- {
- try {
- Connection connection_managed = GLib.Object.GetObject (connection, false) as Connection;
- connection_managed.OnConnectionChanged (connected);
- } catch (Exception e) {
- GLib.ExceptionManager.RaiseUnhandledException (e, false);
- }
- }
-
- private static void OverrideConnectionChanged (GLib.GType gtype)
- {
- if (ConnectionChangedVMCallback == null)
- ConnectionChangedVMCallback = new ConnectionChangedVMDelegate (connectionchanged_cb);
- OverrideVirtualMethod (gtype, "connection-changed", ConnectionChangedVMCallback);
- }
-
- [GLib.DefaultSignalHandler(Type=typeof(PackageKit.Connection), ConnectionMethod="OverrideConnectionChanged")]
- protected virtual void OnConnectionChanged (bool connected)
- {
- GLib.Value ret = GLib.Value.Empty;
- GLib.ValueArray inst_and_params = new GLib.ValueArray (2);
- GLib.Value[] vals = new GLib.Value [2];
- vals [0] = new GLib.Value (this);
- inst_and_params.Append (vals [0]);
- vals [1] = new GLib.Value (connected);
- inst_and_params.Append (vals [1]);
- g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
- foreach (GLib.Value v in vals)
- v.Dispose ();
- }
-
- [GLib.Signal("connection-changed")]
- public event PackageKit.ConnectionChangedHandler ConnectionChanged {
- add {
- GLib.Signal sig = GLib.Signal.Lookup (this, "connection-changed", typeof (PackageKit.ConnectionChangedArgs));
- sig.AddDelegate (value);
- }
- remove {
- GLib.Signal sig = GLib.Signal.Lookup (this, "connection-changed", typeof (PackageKit.ConnectionChangedArgs));
- sig.RemoveDelegate (value);
- }
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_connection_get_type();
-
- public static new GLib.GType GType {
- get {
- IntPtr raw_ret = pk_connection_get_type();
- GLib.GType ret = new GLib.GType(raw_ret);
- return ret;
- }
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern bool pk_connection_valid(IntPtr raw);
-
- public bool Valid() {
- bool raw_ret = pk_connection_valid(Handle);
- bool ret = raw_ret;
- return ret;
- }
-
-
- static Connection ()
- {
- GtkSharp.PackagekitSharp.ObjectManager.Initialize ();
- }
-#endregion
- }
-}
diff --git a/lib/packagekit-sharp/generated/ConnectionChangedHandler.cs b/lib/packagekit-sharp/generated/ConnectionChangedHandler.cs
deleted file mode 100644
index 21403f1..0000000
--- a/lib/packagekit-sharp/generated/ConnectionChangedHandler.cs
+++ /dev/null
@@ -1,18 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
-
- public delegate void ConnectionChangedHandler(object o, ConnectionChangedArgs args);
-
- public class ConnectionChangedArgs : GLib.SignalArgs {
- public bool Connected{
- get {
- return (bool) Args[0];
- }
- }
-
- }
-}
diff --git a/lib/packagekit-sharp/generated/Control.cs b/lib/packagekit-sharp/generated/Control.cs
deleted file mode 100644
index cc9cb5c..0000000
--- a/lib/packagekit-sharp/generated/Control.cs
+++ /dev/null
@@ -1,461 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
- using System.Collections;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- public class Control : GLib.Object {
-
- [Obsolete]
- protected Control(GLib.GType gtype) : base(gtype) {}
- public Control(IntPtr raw) : base(raw) {}
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_control_new();
-
- public Control () : base (IntPtr.Zero)
- {
- if (GetType () != typeof (Control)) {
- CreateNativeObject (new string [0], new GLib.Value[0]);
- return;
- }
- Raw = pk_control_new();
- }
-
- [GLib.CDeclCallback]
- delegate void UpdatesChangedVMDelegate (IntPtr control);
-
- static UpdatesChangedVMDelegate UpdatesChangedVMCallback;
-
- static void updateschanged_cb (IntPtr control)
- {
- try {
- Control control_managed = GLib.Object.GetObject (control, false) as Control;
- control_managed.OnUpdatesChanged ();
- } catch (Exception e) {
- GLib.ExceptionManager.RaiseUnhandledException (e, false);
- }
- }
-
- private static void OverrideUpdatesChanged (GLib.GType gtype)
- {
- if (UpdatesChangedVMCallback == null)
- UpdatesChangedVMCallback = new UpdatesChangedVMDelegate (updateschanged_cb);
- OverrideVirtualMethod (gtype, "updates-changed", UpdatesChangedVMCallback);
- }
-
- [GLib.DefaultSignalHandler(Type=typeof(PackageKit.Control), ConnectionMethod="OverrideUpdatesChanged")]
- protected virtual void OnUpdatesChanged ()
- {
- GLib.Value ret = GLib.Value.Empty;
- GLib.ValueArray inst_and_params = new GLib.ValueArray (1);
- GLib.Value[] vals = new GLib.Value [1];
- vals [0] = new GLib.Value (this);
- inst_and_params.Append (vals [0]);
- g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
- foreach (GLib.Value v in vals)
- v.Dispose ();
- }
-
- [GLib.Signal("updates-changed")]
- public event System.EventHandler UpdatesChanged {
- add {
- GLib.Signal sig = GLib.Signal.Lookup (this, "updates-changed");
- sig.AddDelegate (value);
- }
- remove {
- GLib.Signal sig = GLib.Signal.Lookup (this, "updates-changed");
- sig.RemoveDelegate (value);
- }
- }
-
- [GLib.CDeclCallback]
- delegate void RestartScheduleVMDelegate (IntPtr control);
-
- static RestartScheduleVMDelegate RestartScheduleVMCallback;
-
- static void restartschedule_cb (IntPtr control)
- {
- try {
- Control control_managed = GLib.Object.GetObject (control, false) as Control;
- control_managed.OnRestartSchedule ();
- } catch (Exception e) {
- GLib.ExceptionManager.RaiseUnhandledException (e, false);
- }
- }
-
- private static void OverrideRestartSchedule (GLib.GType gtype)
- {
- if (RestartScheduleVMCallback == null)
- RestartScheduleVMCallback = new RestartScheduleVMDelegate (restartschedule_cb);
- OverrideVirtualMethod (gtype, "restart-schedule", RestartScheduleVMCallback);
- }
-
- [GLib.DefaultSignalHandler(Type=typeof(PackageKit.Control), ConnectionMethod="OverrideRestartSchedule")]
- protected virtual void OnRestartSchedule ()
- {
- GLib.Value ret = GLib.Value.Empty;
- GLib.ValueArray inst_and_params = new GLib.ValueArray (1);
- GLib.Value[] vals = new GLib.Value [1];
- vals [0] = new GLib.Value (this);
- inst_and_params.Append (vals [0]);
- g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
- foreach (GLib.Value v in vals)
- v.Dispose ();
- }
-
- [GLib.Signal("restart-schedule")]
- public event System.EventHandler RestartSchedule {
- add {
- GLib.Signal sig = GLib.Signal.Lookup (this, "restart-schedule");
- sig.AddDelegate (value);
- }
- remove {
- GLib.Signal sig = GLib.Signal.Lookup (this, "restart-schedule");
- sig.RemoveDelegate (value);
- }
- }
-
- [GLib.CDeclCallback]
- delegate void NetworkStateChangedVMDelegate (IntPtr control);
-
- static NetworkStateChangedVMDelegate NetworkStateChangedVMCallback;
-
- static void networkstatechanged_cb (IntPtr control)
- {
- try {
- Control control_managed = GLib.Object.GetObject (control, false) as Control;
- control_managed.OnNetworkStateChanged ();
- } catch (Exception e) {
- GLib.ExceptionManager.RaiseUnhandledException (e, false);
- }
- }
-
- private static void OverrideNetworkStateChanged (GLib.GType gtype)
- {
- if (NetworkStateChangedVMCallback == null)
- NetworkStateChangedVMCallback = new NetworkStateChangedVMDelegate (networkstatechanged_cb);
- OverrideVirtualMethod (gtype, "network-state-changed", NetworkStateChangedVMCallback);
- }
-
- [GLib.DefaultSignalHandler(Type=typeof(PackageKit.Control), ConnectionMethod="OverrideNetworkStateChanged")]
- protected virtual void OnNetworkStateChanged ()
- {
- GLib.Value ret = GLib.Value.Empty;
- GLib.ValueArray inst_and_params = new GLib.ValueArray (1);
- GLib.Value[] vals = new GLib.Value [1];
- vals [0] = new GLib.Value (this);
- inst_and_params.Append (vals [0]);
- g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
- foreach (GLib.Value v in vals)
- v.Dispose ();
- }
-
- [GLib.Signal("network-state-changed")]
- public event System.EventHandler NetworkStateChanged {
- add {
- GLib.Signal sig = GLib.Signal.Lookup (this, "network-state-changed");
- sig.AddDelegate (value);
- }
- remove {
- GLib.Signal sig = GLib.Signal.Lookup (this, "network-state-changed");
- sig.RemoveDelegate (value);
- }
- }
-
- [GLib.CDeclCallback]
- delegate void TransactionListChangedVMDelegate (IntPtr control);
-
- static TransactionListChangedVMDelegate TransactionListChangedVMCallback;
-
- static void transactionlistchanged_cb (IntPtr control)
- {
- try {
- Control control_managed = GLib.Object.GetObject (control, false) as Control;
- control_managed.OnTransactionListChanged ();
- } catch (Exception e) {
- GLib.ExceptionManager.RaiseUnhandledException (e, false);
- }
- }
-
- private static void OverrideTransactionListChanged (GLib.GType gtype)
- {
- if (TransactionListChangedVMCallback == null)
- TransactionListChangedVMCallback = new TransactionListChangedVMDelegate (transactionlistchanged_cb);
- OverrideVirtualMethod (gtype, "transaction-list-changed", TransactionListChangedVMCallback);
- }
-
- [GLib.DefaultSignalHandler(Type=typeof(PackageKit.Control), ConnectionMethod="OverrideTransactionListChanged")]
- protected virtual void OnTransactionListChanged ()
- {
- GLib.Value ret = GLib.Value.Empty;
- GLib.ValueArray inst_and_params = new GLib.ValueArray (1);
- GLib.Value[] vals = new GLib.Value [1];
- vals [0] = new GLib.Value (this);
- inst_and_params.Append (vals [0]);
- g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
- foreach (GLib.Value v in vals)
- v.Dispose ();
- }
-
- [GLib.Signal("transaction-list-changed")]
- public event System.EventHandler TransactionListChanged {
- add {
- GLib.Signal sig = GLib.Signal.Lookup (this, "transaction-list-changed");
- sig.AddDelegate (value);
- }
- remove {
- GLib.Signal sig = GLib.Signal.Lookup (this, "transaction-list-changed");
- sig.RemoveDelegate (value);
- }
- }
-
- [GLib.CDeclCallback]
- delegate void RepoListChangedVMDelegate (IntPtr control);
-
- static RepoListChangedVMDelegate RepoListChangedVMCallback;
-
- static void repolistchanged_cb (IntPtr control)
- {
- try {
- Control control_managed = GLib.Object.GetObject (control, false) as Control;
- control_managed.OnRepoListChanged ();
- } catch (Exception e) {
- GLib.ExceptionManager.RaiseUnhandledException (e, false);
- }
- }
-
- private static void OverrideRepoListChanged (GLib.GType gtype)
- {
- if (RepoListChangedVMCallback == null)
- RepoListChangedVMCallback = new RepoListChangedVMDelegate (repolistchanged_cb);
- OverrideVirtualMethod (gtype, "repo-list-changed", RepoListChangedVMCallback);
- }
-
- [GLib.DefaultSignalHandler(Type=typeof(PackageKit.Control), ConnectionMethod="OverrideRepoListChanged")]
- protected virtual void OnRepoListChanged ()
- {
- GLib.Value ret = GLib.Value.Empty;
- GLib.ValueArray inst_and_params = new GLib.ValueArray (1);
- GLib.Value[] vals = new GLib.Value [1];
- vals [0] = new GLib.Value (this);
- inst_and_params.Append (vals [0]);
- g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
- foreach (GLib.Value v in vals)
- v.Dispose ();
- }
-
- [GLib.Signal("repo-list-changed")]
- public event System.EventHandler RepoListChanged {
- add {
- GLib.Signal sig = GLib.Signal.Lookup (this, "repo-list-changed");
- sig.AddDelegate (value);
- }
- remove {
- GLib.Signal sig = GLib.Signal.Lookup (this, "repo-list-changed");
- sig.RemoveDelegate (value);
- }
- }
-
- [GLib.CDeclCallback]
- delegate void LockedVMDelegate (IntPtr control, bool is_locked);
-
- static LockedVMDelegate LockedVMCallback;
-
- static void locked_cb (IntPtr control, bool is_locked)
- {
- try {
- Control control_managed = GLib.Object.GetObject (control, false) as Control;
- control_managed.OnLocked (is_locked);
- } catch (Exception e) {
- GLib.ExceptionManager.RaiseUnhandledException (e, false);
- }
- }
-
- private static void OverrideLocked (GLib.GType gtype)
- {
- if (LockedVMCallback == null)
- LockedVMCallback = new LockedVMDelegate (locked_cb);
- OverrideVirtualMethod (gtype, "locked", LockedVMCallback);
- }
-
- [GLib.DefaultSignalHandler(Type=typeof(PackageKit.Control), ConnectionMethod="OverrideLocked")]
- protected virtual void OnLocked (bool is_locked)
- {
- GLib.Value ret = GLib.Value.Empty;
- GLib.ValueArray inst_and_params = new GLib.ValueArray (2);
- GLib.Value[] vals = new GLib.Value [2];
- vals [0] = new GLib.Value (this);
- inst_and_params.Append (vals [0]);
- vals [1] = new GLib.Value (is_locked);
- inst_and_params.Append (vals [1]);
- g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
- foreach (GLib.Value v in vals)
- v.Dispose ();
- }
-
- [GLib.Signal("locked")]
- public event PackageKit.LockedHandler Locked {
- add {
- GLib.Signal sig = GLib.Signal.Lookup (this, "locked", typeof (PackageKit.LockedArgs));
- sig.AddDelegate (value);
- }
- remove {
- GLib.Signal sig = GLib.Signal.Lookup (this, "locked", typeof (PackageKit.LockedArgs));
- sig.RemoveDelegate (value);
- }
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe IntPtr pk_control_get_mime_types(IntPtr raw, out IntPtr error);
-
- public unsafe string GetMimeTypes() {
- IntPtr error = IntPtr.Zero;
- IntPtr raw_ret = pk_control_get_mime_types(Handle, out error);
- string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe bool pk_control_get_time_since_action(IntPtr raw, int role, out uint seconds, out IntPtr error);
-
- public unsafe bool GetTimeSinceAction(PackageKit.RoleEnum role, out uint seconds) {
- IntPtr error = IntPtr.Zero;
- bool raw_ret = pk_control_get_time_since_action(Handle, (int) role, out seconds, out error);
- bool ret = raw_ret;
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe ulong pk_control_get_actions(IntPtr raw, out IntPtr error);
-
- public unsafe ulong GetActions() {
- IntPtr error = IntPtr.Zero;
- ulong raw_ret = pk_control_get_actions(Handle, out error);
- ulong ret = raw_ret;
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe bool pk_control_allocate_transaction_id(IntPtr raw, IntPtr tid, out IntPtr error);
-
- public unsafe bool AllocateTransactionId(string tid) {
- IntPtr error = IntPtr.Zero;
- bool raw_ret = pk_control_allocate_transaction_id(Handle, GLib.Marshaller.StringToPtrGStrdup(tid), out error);
- bool ret = raw_ret;
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe int pk_control_get_network_state(IntPtr raw, out IntPtr error);
-
- public unsafe PackageKit.NetworkEnum GetNetworkState() {
- IntPtr error = IntPtr.Zero;
- int raw_ret = pk_control_get_network_state(Handle, out error);
- PackageKit.NetworkEnum ret = (PackageKit.NetworkEnum) raw_ret;
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe bool pk_control_get_backend_detail(IntPtr raw, IntPtr name, IntPtr author, out IntPtr error);
-
- public unsafe bool GetBackendDetail(string name, string author) {
- IntPtr error = IntPtr.Zero;
- bool raw_ret = pk_control_get_backend_detail(Handle, GLib.Marshaller.StringToPtrGStrdup(name), GLib.Marshaller.StringToPtrGStrdup(author), out error);
- bool ret = raw_ret;
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern int pk_control_error_quark();
-
- public static int ErrorQuark() {
- int raw_ret = pk_control_error_quark();
- int ret = raw_ret;
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe bool pk_control_set_proxy(IntPtr raw, IntPtr proxy_http, IntPtr proxy_ftp, out IntPtr error);
-
- public unsafe bool SetProxy(string proxy_http, string proxy_ftp) {
- IntPtr native_proxy_http = GLib.Marshaller.StringToPtrGStrdup (proxy_http);
- IntPtr native_proxy_ftp = GLib.Marshaller.StringToPtrGStrdup (proxy_ftp);
- IntPtr error = IntPtr.Zero;
- bool raw_ret = pk_control_set_proxy(Handle, native_proxy_http, native_proxy_ftp, out error);
- bool ret = raw_ret;
- GLib.Marshaller.Free (native_proxy_http);
- GLib.Marshaller.Free (native_proxy_ftp);
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_control_transaction_list_get(IntPtr raw);
-
- public string TransactionListGet() {
- IntPtr raw_ret = pk_control_transaction_list_get(Handle);
- string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern bool pk_control_transaction_list_print(IntPtr raw);
-
- public bool TransactionListPrint() {
- bool raw_ret = pk_control_transaction_list_print(Handle);
- bool ret = raw_ret;
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe ulong pk_control_get_filters(IntPtr raw, out IntPtr error);
-
- public unsafe ulong GetFilters() {
- IntPtr error = IntPtr.Zero;
- ulong raw_ret = pk_control_get_filters(Handle, out error);
- ulong ret = raw_ret;
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe ulong pk_control_get_groups(IntPtr raw, out IntPtr error);
-
- public unsafe ulong GetGroups() {
- IntPtr error = IntPtr.Zero;
- ulong raw_ret = pk_control_get_groups(Handle, out error);
- ulong ret = raw_ret;
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_control_get_type();
-
- public static new GLib.GType GType {
- get {
- IntPtr raw_ret = pk_control_get_type();
- GLib.GType ret = new GLib.GType(raw_ret);
- return ret;
- }
- }
-
-
- static Control ()
- {
- GtkSharp.PackagekitSharp.ObjectManager.Initialize ();
- }
-#endregion
- }
-}
diff --git a/lib/packagekit-sharp/generated/ControlError.cs b/lib/packagekit-sharp/generated/ControlError.cs
deleted file mode 100644
index 85ea7a7..0000000
--- a/lib/packagekit-sharp/generated/ControlError.cs
+++ /dev/null
@@ -1,16 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- public enum ControlError {
-
- Failed,
- CannotStartDaemon,
- }
-#endregion
-}
diff --git a/lib/packagekit-sharp/generated/Desktop.cs b/lib/packagekit-sharp/generated/Desktop.cs
deleted file mode 100644
index 1448167..0000000
--- a/lib/packagekit-sharp/generated/Desktop.cs
+++ /dev/null
@@ -1,97 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
- using System.Collections;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- public class Desktop : GLib.Object {
-
- [Obsolete]
- protected Desktop(GLib.GType gtype) : base(gtype) {}
- public Desktop(IntPtr raw) : base(raw) {}
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_desktop_new();
-
- public Desktop () : base (IntPtr.Zero)
- {
- if (GetType () != typeof (Desktop)) {
- CreateNativeObject (new string [0], new GLib.Value[0]);
- return;
- }
- Raw = pk_desktop_new();
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe IntPtr pk_desktop_get_files_for_package(IntPtr raw, IntPtr package, out IntPtr error);
-
- public unsafe GLib.PtrArray GetFilesForPackage(string package) {
- IntPtr native_package = GLib.Marshaller.StringToPtrGStrdup (package);
- IntPtr error = IntPtr.Zero;
- IntPtr raw_ret = pk_desktop_get_files_for_package(Handle, native_package, out error);
- GLib.PtrArray ret = new GLib.PtrArray(raw_ret);
- GLib.Marshaller.Free (native_package);
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe IntPtr pk_desktop_get_shown_for_package(IntPtr raw, IntPtr package, out IntPtr error);
-
- public unsafe GLib.PtrArray GetShownForPackage(string package) {
- IntPtr native_package = GLib.Marshaller.StringToPtrGStrdup (package);
- IntPtr error = IntPtr.Zero;
- IntPtr raw_ret = pk_desktop_get_shown_for_package(Handle, native_package, out error);
- GLib.PtrArray ret = new GLib.PtrArray(raw_ret);
- GLib.Marshaller.Free (native_package);
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_desktop_get_type();
-
- public static new GLib.GType GType {
- get {
- IntPtr raw_ret = pk_desktop_get_type();
- GLib.GType ret = new GLib.GType(raw_ret);
- return ret;
- }
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe IntPtr pk_desktop_get_package_for_file(IntPtr raw, IntPtr filename, out IntPtr error);
-
- public unsafe string GetPackageForFile(string filename) {
- IntPtr native_filename = GLib.Marshaller.StringToPtrGStrdup (filename);
- IntPtr error = IntPtr.Zero;
- IntPtr raw_ret = pk_desktop_get_package_for_file(Handle, native_filename, out error);
- string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
- GLib.Marshaller.Free (native_filename);
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe bool pk_desktop_open_database(IntPtr raw, out IntPtr error);
-
- public unsafe bool OpenDatabase() {
- IntPtr error = IntPtr.Zero;
- bool raw_ret = pk_desktop_open_database(Handle, out error);
- bool ret = raw_ret;
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- return ret;
- }
-
-
- static Desktop ()
- {
- GtkSharp.PackagekitSharp.ObjectManager.Initialize ();
- }
-#endregion
- }
-}
diff --git a/lib/packagekit-sharp/generated/DestroyHandler.cs b/lib/packagekit-sharp/generated/DestroyHandler.cs
deleted file mode 100644
index d30ae5d..0000000
--- a/lib/packagekit-sharp/generated/DestroyHandler.cs
+++ /dev/null
@@ -1,24 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
-
- public delegate void DestroyHandler(object o, DestroyArgs args);
-
- public class DestroyArgs : GLib.SignalArgs {
- public PackageKit.ExitEnum Exit{
- get {
- return (PackageKit.ExitEnum) Args[0];
- }
- }
-
- public uint Runtime{
- get {
- return (uint) Args[1];
- }
- }
-
- }
-}
diff --git a/lib/packagekit-sharp/generated/DetailsHandler.cs b/lib/packagekit-sharp/generated/DetailsHandler.cs
deleted file mode 100644
index a62443b..0000000
--- a/lib/packagekit-sharp/generated/DetailsHandler.cs
+++ /dev/null
@@ -1,18 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
-
- public delegate void DetailsHandler(object o, DetailsArgs args);
-
- public class DetailsArgs : GLib.SignalArgs {
- public PackageKit.DetailsObj PackageDetail{
- get {
- return (PackageKit.DetailsObj) Args[0];
- }
- }
-
- }
-}
diff --git a/lib/packagekit-sharp/generated/DetailsObj.cs b/lib/packagekit-sharp/generated/DetailsObj.cs
deleted file mode 100644
index 4d8fd10..0000000
--- a/lib/packagekit-sharp/generated/DetailsObj.cs
+++ /dev/null
@@ -1,57 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
- using System.Collections;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- public class DetailsObj : GLib.Opaque {
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_details_obj_copy(IntPtr raw);
-
- public PackageKit.DetailsObj Copy() {
- IntPtr raw_ret = pk_details_obj_copy(Handle);
- PackageKit.DetailsObj ret = raw_ret == IntPtr.Zero ? null : (PackageKit.DetailsObj) GLib.Opaque.GetOpaque (raw_ret, typeof (PackageKit.DetailsObj), true);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern bool pk_details_obj_free(IntPtr raw);
-
- public bool Free() {
- bool raw_ret = pk_details_obj_free(Handle);
- bool ret = raw_ret;
- return ret;
- }
-
- public DetailsObj(IntPtr raw) : base(raw) {}
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_details_obj_new();
-
- public DetailsObj ()
- {
- Raw = pk_details_obj_new();
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_details_obj_new_from_data(IntPtr id, IntPtr license, int group, IntPtr description, IntPtr url, ulong size);
-
- public DetailsObj (PackageKit.PackageId id, string license, PackageKit.GroupEnum group, string description, string url, ulong size)
- {
- IntPtr native_license = GLib.Marshaller.StringToPtrGStrdup (license);
- IntPtr native_description = GLib.Marshaller.StringToPtrGStrdup (description);
- IntPtr native_url = GLib.Marshaller.StringToPtrGStrdup (url);
- Raw = pk_details_obj_new_from_data(id == null ? IntPtr.Zero : id.Handle, native_license, (int) group, native_description, native_url, size);
- GLib.Marshaller.Free (native_license);
- GLib.Marshaller.Free (native_description);
- GLib.Marshaller.Free (native_url);
- }
-
-#endregion
- }
-}
diff --git a/lib/packagekit-sharp/generated/Distro.cs b/lib/packagekit-sharp/generated/Distro.cs
deleted file mode 100644
index 9bd49f6..0000000
--- a/lib/packagekit-sharp/generated/Distro.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- public class Distro {
-
- [DllImport("libpackagekit-glib.dll")]
- static extern int pk_distro_upgrade_enum_from_text(IntPtr upgrade);
-
- public static PackageKit.DistroUpgradeEnum UpgradeEnumFromText(string upgrade) {
- IntPtr native_upgrade = GLib.Marshaller.StringToPtrGStrdup (upgrade);
- int raw_ret = pk_distro_upgrade_enum_from_text(native_upgrade);
- PackageKit.DistroUpgradeEnum ret = (PackageKit.DistroUpgradeEnum) raw_ret;
- GLib.Marshaller.Free (native_upgrade);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_distro_upgrade_enum_to_text(int upgrade);
-
- public static string UpgradeEnumToText(PackageKit.DistroUpgradeEnum upgrade) {
- IntPtr raw_ret = pk_distro_upgrade_enum_to_text((int) upgrade);
- string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
- return ret;
- }
-
-#endregion
- }
-}
diff --git a/lib/packagekit-sharp/generated/DistroUpgradeEnum.cs b/lib/packagekit-sharp/generated/DistroUpgradeEnum.cs
deleted file mode 100644
index cad1efa..0000000
--- a/lib/packagekit-sharp/generated/DistroUpgradeEnum.cs
+++ /dev/null
@@ -1,17 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- public enum DistroUpgradeEnum {
-
- Stable,
- Unstable,
- Unknown,
- }
-#endregion
-}
diff --git a/lib/packagekit-sharp/generated/DistroUpgradeHandler.cs b/lib/packagekit-sharp/generated/DistroUpgradeHandler.cs
deleted file mode 100644
index 91d9027..0000000
--- a/lib/packagekit-sharp/generated/DistroUpgradeHandler.cs
+++ /dev/null
@@ -1,30 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
-
- public delegate void DistroUpgradeHandler(object o, DistroUpgradeArgs args);
-
- public class DistroUpgradeArgs : GLib.SignalArgs {
- public PackageKit.UpdateStateEnum Type{
- get {
- return (PackageKit.UpdateStateEnum) Args[0];
- }
- }
-
- public string Name{
- get {
- return (string) Args[1];
- }
- }
-
- public string Summary{
- get {
- return (string) Args[2];
- }
- }
-
- }
-}
diff --git a/lib/packagekit-sharp/generated/DistroUpgradeObj.cs b/lib/packagekit-sharp/generated/DistroUpgradeObj.cs
deleted file mode 100644
index 7254551..0000000
--- a/lib/packagekit-sharp/generated/DistroUpgradeObj.cs
+++ /dev/null
@@ -1,55 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
- using System.Collections;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- public class DistroUpgradeObj : GLib.Opaque {
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_distro_upgrade_obj_copy(IntPtr raw);
-
- public PackageKit.DistroUpgradeObj Copy() {
- IntPtr raw_ret = pk_distro_upgrade_obj_copy(Handle);
- PackageKit.DistroUpgradeObj ret = raw_ret == IntPtr.Zero ? null : (PackageKit.DistroUpgradeObj) GLib.Opaque.GetOpaque (raw_ret, typeof (PackageKit.DistroUpgradeObj), true);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern bool pk_distro_upgrade_obj_free(IntPtr raw);
-
- public bool Free() {
- bool raw_ret = pk_distro_upgrade_obj_free(Handle);
- bool ret = raw_ret;
- return ret;
- }
-
- public DistroUpgradeObj(IntPtr raw) : base(raw) {}
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_distro_upgrade_obj_new();
-
- public DistroUpgradeObj ()
- {
- Raw = pk_distro_upgrade_obj_new();
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_distro_upgrade_obj_new_from_data(int state, IntPtr name, IntPtr summary);
-
- public DistroUpgradeObj (PackageKit.UpdateStateEnum state, string name, string summary)
- {
- IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup (name);
- IntPtr native_summary = GLib.Marshaller.StringToPtrGStrdup (summary);
- Raw = pk_distro_upgrade_obj_new_from_data((int) state, native_name, native_summary);
- GLib.Marshaller.Free (native_name);
- GLib.Marshaller.Free (native_summary);
- }
-
-#endregion
- }
-}
diff --git a/lib/packagekit-sharp/generated/Enum.cs b/lib/packagekit-sharp/generated/Enum.cs
deleted file mode 100644
index eeb169a..0000000
--- a/lib/packagekit-sharp/generated/Enum.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- public class Enum {
-
- [DllImport("libpackagekit-glib.dll")]
- static extern uint pk_enum_find_value(IntPtr table, IntPtr str1ng);
-
- public static uint FindValue(PackageKit.EnumMatch table, string str1ng) {
- IntPtr native_table = GLib.Marshaller.StructureToPtrAlloc (table);
- IntPtr native_str1ng = GLib.Marshaller.StringToPtrGStrdup (str1ng);
- uint raw_ret = pk_enum_find_value(native_table, native_str1ng);
- uint ret = raw_ret;
- table = PackageKit.EnumMatch.New (native_table);
- Marshal.FreeHGlobal (native_table);
- GLib.Marshaller.Free (native_str1ng);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_enum_find_string(IntPtr table, uint value);
-
- public static string FindString(PackageKit.EnumMatch table, uint value) {
- IntPtr native_table = GLib.Marshaller.StructureToPtrAlloc (table);
- IntPtr raw_ret = pk_enum_find_string(native_table, value);
- string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
- table = PackageKit.EnumMatch.New (native_table);
- Marshal.FreeHGlobal (native_table);
- return ret;
- }
-
-#endregion
- }
-}
diff --git a/lib/packagekit-sharp/generated/EnumMatch.cs b/lib/packagekit-sharp/generated/EnumMatch.cs
deleted file mode 100644
index 8e462d1..0000000
--- a/lib/packagekit-sharp/generated/EnumMatch.cs
+++ /dev/null
@@ -1,30 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
- using System.Collections;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- [StructLayout(LayoutKind.Sequential)]
- public struct EnumMatch {
-
- public uint Value;
- public string String;
-
- public static PackageKit.EnumMatch Zero = new PackageKit.EnumMatch ();
-
- public static PackageKit.EnumMatch New(IntPtr raw) {
- if (raw == IntPtr.Zero)
- return PackageKit.EnumMatch.Zero;
- return (PackageKit.EnumMatch) Marshal.PtrToStructure (raw, typeof (PackageKit.EnumMatch));
- }
-
- private static GLib.GType GType {
- get { return GLib.GType.Pointer; }
- }
-#endregion
- }
-}
diff --git a/lib/packagekit-sharp/generated/Error.cs b/lib/packagekit-sharp/generated/Error.cs
deleted file mode 100644
index bba63f8..0000000
--- a/lib/packagekit-sharp/generated/Error.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- public class Error {
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_error_enum_to_text(int code);
-
- public static string EnumToText(PackageKit.ErrorCodeEnum code) {
- IntPtr raw_ret = pk_error_enum_to_text((int) code);
- string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern int pk_error_enum_from_text(IntPtr code);
-
- public static PackageKit.ErrorCodeEnum EnumFromText(string code) {
- IntPtr native_code = GLib.Marshaller.StringToPtrGStrdup (code);
- int raw_ret = pk_error_enum_from_text(native_code);
- PackageKit.ErrorCodeEnum ret = (PackageKit.ErrorCodeEnum) raw_ret;
- GLib.Marshaller.Free (native_code);
- return ret;
- }
-
-#endregion
- }
-}
diff --git a/lib/packagekit-sharp/generated/ErrorCodeEnum.cs b/lib/packagekit-sharp/generated/ErrorCodeEnum.cs
deleted file mode 100644
index cc2fa5a..0000000
--- a/lib/packagekit-sharp/generated/ErrorCodeEnum.cs
+++ /dev/null
@@ -1,61 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- public enum ErrorCodeEnum {
-
- Oom,
- NoNetwork,
- NotSupported,
- InternalError,
- GpgFailure,
- PackageIdInvalid,
- PackageNotInstalled,
- PackageNotFound,
- PackageAlreadyInstalled,
- PackageDownloadFailed,
- GroupNotFound,
- GroupListInvalid,
- DepResolutionFailed,
- FilterInvalid,
- CreateThreadFailed,
- TransactionError,
- TransactionCancelled,
- NoCache,
- RepoNotFound,
- CannotRemoveSystemPackage,
- ProcessKill,
- FailedInitialization,
- FailedFinalise,
- FailedConfigParsing,
- CannotCancel,
- CannotGetLock,
- NoPackagesToUpdate,
- CannotWriteRepoConfig,
- LocalInstallFailed,
- BadGpgSignature,
- MissingGpgSignature,
- CannotInstallSourcePackage,
- RepoConfigurationError,
- NoLicenseAgreement,
- FileConflicts,
- PackageConflicts,
- RepoNotAvailable,
- InvalidPackageFile,
- PackageInstallBlocked,
- PackageCorrupt,
- AllPackagesAlreadyInstalled,
- FileNotFound,
- NoMoreMirrorsToTry,
- NoDistroUpgradeData,
- IncompatibleArchitecture,
- NoSpaceOnDevice,
- Unknown,
- }
-#endregion
-}
diff --git a/lib/packagekit-sharp/generated/ErrorCodeHandler.cs b/lib/packagekit-sharp/generated/ErrorCodeHandler.cs
deleted file mode 100644
index 179de23..0000000
--- a/lib/packagekit-sharp/generated/ErrorCodeHandler.cs
+++ /dev/null
@@ -1,30 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
-
- public delegate void ErrorCodeHandler(object o, ErrorCodeArgs args);
-
- public class ErrorCodeArgs : GLib.SignalArgs {
- public PackageKit.Client Client{
- get {
- return (PackageKit.Client) Args[0];
- }
- }
-
- public PackageKit.ErrorCodeEnum Code{
- get {
- return (PackageKit.ErrorCodeEnum) Args[1];
- }
- }
-
- public string Details{
- get {
- return (string) Args[2];
- }
- }
-
- }
-}
diff --git a/lib/packagekit-sharp/generated/EulaRequiredHandler.cs b/lib/packagekit-sharp/generated/EulaRequiredHandler.cs
deleted file mode 100644
index 41c5c24..0000000
--- a/lib/packagekit-sharp/generated/EulaRequiredHandler.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
-
- public delegate void EulaRequiredHandler(object o, EulaRequiredArgs args);
-
- public class EulaRequiredArgs : GLib.SignalArgs {
- public string EulaId{
- get {
- return (string) Args[0];
- }
- }
-
- public string PackageId{
- get {
- return (string) Args[1];
- }
- }
-
- public string VendorName{
- get {
- return (string) Args[2];
- }
- }
-
- public string LicenseAgreement{
- get {
- return (string) Args[3];
- }
- }
-
- }
-}
diff --git a/lib/packagekit-sharp/generated/Exit.cs b/lib/packagekit-sharp/generated/Exit.cs
deleted file mode 100644
index b9870fd..0000000
--- a/lib/packagekit-sharp/generated/Exit.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- public class Exit {
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_exit_enum_to_text(int exit);
-
- public static string EnumToText(PackageKit.ExitEnum exit) {
- IntPtr raw_ret = pk_exit_enum_to_text((int) exit);
- string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern int pk_exit_enum_from_text(IntPtr exit);
-
- public static PackageKit.ExitEnum EnumFromText(string exit) {
- IntPtr native_exit = GLib.Marshaller.StringToPtrGStrdup (exit);
- int raw_ret = pk_exit_enum_from_text(native_exit);
- PackageKit.ExitEnum ret = (PackageKit.ExitEnum) raw_ret;
- GLib.Marshaller.Free (native_exit);
- return ret;
- }
-
-#endregion
- }
-}
diff --git a/lib/packagekit-sharp/generated/ExitEnum.cs b/lib/packagekit-sharp/generated/ExitEnum.cs
deleted file mode 100644
index 4264d40..0000000
--- a/lib/packagekit-sharp/generated/ExitEnum.cs
+++ /dev/null
@@ -1,21 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- public enum ExitEnum {
-
- Success,
- Failed,
- Cancelled,
- KeyRequired,
- EulaRequired,
- Killed,
- Unknown,
- }
-#endregion
-}
diff --git a/lib/packagekit-sharp/generated/FilesHandler.cs b/lib/packagekit-sharp/generated/FilesHandler.cs
deleted file mode 100644
index 0b26f01..0000000
--- a/lib/packagekit-sharp/generated/FilesHandler.cs
+++ /dev/null
@@ -1,24 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
-
- public delegate void FilesHandler(object o, FilesArgs args);
-
- public class FilesArgs : GLib.SignalArgs {
- public string PackageId{
- get {
- return (string) Args[0];
- }
- }
-
- public string Filelist{
- get {
- return (string) Args[1];
- }
- }
-
- }
-}
diff --git a/lib/packagekit-sharp/generated/Filter.cs b/lib/packagekit-sharp/generated/Filter.cs
deleted file mode 100644
index f7cb5f5..0000000
--- a/lib/packagekit-sharp/generated/Filter.cs
+++ /dev/null
@@ -1,54 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- public class Filter {
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_filter_enum_to_text(int filter);
-
- public static string EnumToText(PackageKit.FilterEnum filter) {
- IntPtr raw_ret = pk_filter_enum_to_text((int) filter);
- string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern ulong pk_filter_bitfield_from_text(IntPtr filters);
-
- public static ulong BitfieldFromText(string filters) {
- IntPtr native_filters = GLib.Marshaller.StringToPtrGStrdup (filters);
- ulong raw_ret = pk_filter_bitfield_from_text(native_filters);
- ulong ret = raw_ret;
- GLib.Marshaller.Free (native_filters);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern int pk_filter_enum_from_text(IntPtr filter);
-
- public static PackageKit.FilterEnum EnumFromText(string filter) {
- IntPtr native_filter = GLib.Marshaller.StringToPtrGStrdup (filter);
- int raw_ret = pk_filter_enum_from_text(native_filter);
- PackageKit.FilterEnum ret = (PackageKit.FilterEnum) raw_ret;
- GLib.Marshaller.Free (native_filter);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_filter_bitfield_to_text(ulong filters);
-
- public static string BitfieldToText(ulong filters) {
- IntPtr raw_ret = pk_filter_bitfield_to_text(filters);
- string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
- return ret;
- }
-
-#endregion
- }
-}
diff --git a/lib/packagekit-sharp/generated/FilterEnum.cs b/lib/packagekit-sharp/generated/FilterEnum.cs
deleted file mode 100644
index 2b380f7..0000000
--- a/lib/packagekit-sharp/generated/FilterEnum.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- public enum FilterEnum {
-
- None,
- Installed,
- NotInstalled,
- Development,
- NotDevelopment,
- Gui,
- NotGui,
- Free,
- NotFree,
- Visible,
- NotVisible,
- Supported,
- NotSupported,
- Basename,
- NotBasename,
- Newest,
- NotNewest,
- Arch,
- NotArch,
- Source,
- NotSource,
- Collections,
- NotCollections,
- Unknown,
- }
-#endregion
-}
diff --git a/lib/packagekit-sharp/generated/FinishedHandler.cs b/lib/packagekit-sharp/generated/FinishedHandler.cs
deleted file mode 100644
index 2688198..0000000
--- a/lib/packagekit-sharp/generated/FinishedHandler.cs
+++ /dev/null
@@ -1,30 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
-
- public delegate void FinishedHandler(object o, FinishedArgs args);
-
- public class FinishedArgs : GLib.SignalArgs {
- public PackageKit.Client Client{
- get {
- return (PackageKit.Client) Args[0];
- }
- }
-
- public PackageKit.ExitEnum Exit{
- get {
- return (PackageKit.ExitEnum) Args[1];
- }
- }
-
- public uint Runtime{
- get {
- return (uint) Args[2];
- }
- }
-
- }
-}
diff --git a/lib/packagekit-sharp/generated/Global.cs b/lib/packagekit-sharp/generated/Global.cs
deleted file mode 100644
index 9542fd2..0000000
--- a/lib/packagekit-sharp/generated/Global.cs
+++ /dev/null
@@ -1,54 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- public class Global {
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_strv_to_ptr_array(IntPtr array);
-
- public static GLib.PtrArray StrvToPtrArray(string array) {
- IntPtr raw_ret = pk_strv_to_ptr_array(GLib.Marshaller.StringToPtrGStrdup(array));
- GLib.PtrArray ret = new GLib.PtrArray(raw_ret);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_va_list_to_argv(IntPtr string_first, IntPtr args);
-
- public static string VaListToArgv(string string_first, IntPtr args) {
- IntPtr native_string_first = GLib.Marshaller.StringToPtrGStrdup (string_first);
- IntPtr raw_ret = pk_va_list_to_argv(native_string_first, args);
- string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
- GLib.Marshaller.Free (native_string_first);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_ptr_array_to_strv(IntPtr array);
-
- public static string PtrArrayToStrv(GLib.PtrArray array) {
- IntPtr raw_ret = pk_ptr_array_to_strv(array == null ? IntPtr.Zero : array.Handle);
- string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_get_distro_id();
-
- public static string DistroId {
- get {
- IntPtr raw_ret = pk_get_distro_id();
- string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
- return ret;
- }
- }
-
-#endregion
- }
-}
diff --git a/lib/packagekit-sharp/generated/Group.cs b/lib/packagekit-sharp/generated/Group.cs
deleted file mode 100644
index 621eecd..0000000
--- a/lib/packagekit-sharp/generated/Group.cs
+++ /dev/null
@@ -1,54 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- public class Group {
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_group_enum_to_text(int group);
-
- public static string EnumToText(PackageKit.GroupEnum group) {
- IntPtr raw_ret = pk_group_enum_to_text((int) group);
- string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern ulong pk_group_bitfield_from_text(IntPtr groups);
-
- public static ulong BitfieldFromText(string groups) {
- IntPtr native_groups = GLib.Marshaller.StringToPtrGStrdup (groups);
- ulong raw_ret = pk_group_bitfield_from_text(native_groups);
- ulong ret = raw_ret;
- GLib.Marshaller.Free (native_groups);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern int pk_group_enum_from_text(IntPtr group);
-
- public static PackageKit.GroupEnum EnumFromText(string group) {
- IntPtr native_group = GLib.Marshaller.StringToPtrGStrdup (group);
- int raw_ret = pk_group_enum_from_text(native_group);
- PackageKit.GroupEnum ret = (PackageKit.GroupEnum) raw_ret;
- GLib.Marshaller.Free (native_group);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_group_bitfield_to_text(ulong groups);
-
- public static string BitfieldToText(ulong groups) {
- IntPtr raw_ret = pk_group_bitfield_to_text(groups);
- string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
- return ret;
- }
-
-#endregion
- }
-}
diff --git a/lib/packagekit-sharp/generated/GroupEnum.cs b/lib/packagekit-sharp/generated/GroupEnum.cs
deleted file mode 100644
index 8dd41c9..0000000
--- a/lib/packagekit-sharp/generated/GroupEnum.cs
+++ /dev/null
@@ -1,49 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- public enum GroupEnum {
-
- Accessibility,
- Accessories,
- AdminTools,
- Communication,
- DesktopGnome,
- DesktopKde,
- DesktopOther,
- DesktopXfce,
- Education,
- Fonts,
- Games,
- Graphics,
- Internet,
- Legacy,
- Localization,
- Maps,
- Multimedia,
- Network,
- Office,
- Other,
- PowerManagement,
- Programming,
- Publishing,
- Repos,
- Security,
- Servers,
- System,
- Virtualization,
- Science,
- Documentation,
- Electronics,
- Collections,
- Vendor,
- Newest,
- Unknown,
- }
-#endregion
-}
diff --git a/lib/packagekit-sharp/generated/Info.cs b/lib/packagekit-sharp/generated/Info.cs
deleted file mode 100644
index 8c58d3d..0000000
--- a/lib/packagekit-sharp/generated/Info.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- public class Info {
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_info_enum_to_text(int info);
-
- public static string EnumToText(PackageKit.InfoEnum info) {
- IntPtr raw_ret = pk_info_enum_to_text((int) info);
- string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern int pk_info_enum_from_text(IntPtr info);
-
- public static PackageKit.InfoEnum EnumFromText(string info) {
- IntPtr native_info = GLib.Marshaller.StringToPtrGStrdup (info);
- int raw_ret = pk_info_enum_from_text(native_info);
- PackageKit.InfoEnum ret = (PackageKit.InfoEnum) raw_ret;
- GLib.Marshaller.Free (native_info);
- return ret;
- }
-
-#endregion
- }
-}
diff --git a/lib/packagekit-sharp/generated/InfoEnum.cs b/lib/packagekit-sharp/generated/InfoEnum.cs
deleted file mode 100644
index 6daa649..0000000
--- a/lib/packagekit-sharp/generated/InfoEnum.cs
+++ /dev/null
@@ -1,32 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- public enum InfoEnum {
-
- Installed,
- Available,
- Low,
- Enhancement,
- Normal,
- Bugfix,
- Important,
- Security,
- Blocked,
- Downloading,
- Updating,
- Installing,
- Removing,
- Cleanup,
- Obsoleting,
- CollectionInstalled,
- CollectionAvailable,
- Unknown,
- }
-#endregion
-}
diff --git a/lib/packagekit-sharp/generated/License.cs b/lib/packagekit-sharp/generated/License.cs
deleted file mode 100644
index 2dd9bd3..0000000
--- a/lib/packagekit-sharp/generated/License.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- public class License {
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_license_enum_to_text(int license);
-
- public static string EnumToText(PackageKit.LicenseEnum license) {
- IntPtr raw_ret = pk_license_enum_to_text((int) license);
- string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern int pk_license_enum_from_text(IntPtr license);
-
- public static PackageKit.LicenseEnum EnumFromText(string license) {
- IntPtr native_license = GLib.Marshaller.StringToPtrGStrdup (license);
- int raw_ret = pk_license_enum_from_text(native_license);
- PackageKit.LicenseEnum ret = (PackageKit.LicenseEnum) raw_ret;
- GLib.Marshaller.Free (native_license);
- return ret;
- }
-
-#endregion
- }
-}
diff --git a/lib/packagekit-sharp/generated/LicenseEnum.cs b/lib/packagekit-sharp/generated/LicenseEnum.cs
deleted file mode 100644
index e7d8dc9..0000000
--- a/lib/packagekit-sharp/generated/LicenseEnum.cs
+++ /dev/null
@@ -1,140 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- public enum LicenseEnum {
-
- Glide,
- Afl,
- AmpasBsd,
- AmazonDsl,
- Adobe,
- Agplv1,
- Agplv3,
- Asl1Dot0,
- Asl1Dot1,
- Asl2Dot0,
- Apsl2Dot0,
- ArtisticClarified,
- Artistic2Dot0,
- Arl,
- Bittorrent,
- Boost,
- BsdWithAdvertising,
- Bsd,
- Cecill,
- Cddl,
- Cpl,
- Condor,
- CopyrightOnly,
- Cryptix,
- CrystalStacker,
- Doc,
- Wtfpl,
- Epl,
- Ecos,
- Efl2Dot0,
- EuDatagrid,
- Lgplv2WithExceptions,
- Ftl,
- Giftware,
- Gplv2,
- Gplv2WithExceptions,
- Gplv2PlusWithExceptions,
- Gplv3,
- Gplv3WithExceptions,
- Gplv3PlusWithExceptions,
- Lgplv2,
- Lgplv3,
- Gnuplot,
- Ibm,
- Imatix,
- Imagemagick,
- Imlib2,
- Ijg,
- IntelAcpi,
- Interbase,
- Isc,
- Jabber,
- Jasper,
- Lppl,
- Libtiff,
- Lpl,
- MecabIpadic,
- Mit,
- MitWithAdvertising,
- Mplv1Dot0,
- Mplv1Dot1,
- Ncsa,
- Ngpl,
- Nosl,
- Netcdf,
- Netscape,
- Nokia,
- Openldap,
- Openpbs,
- Osl1Dot0,
- Osl1Dot1,
- Osl2Dot0,
- Osl3Dot0,
- Openssl,
- Oreilly,
- Phorum,
- Php,
- PublicDomain,
- Python,
- Qpl,
- Rpsl,
- Ruby,
- Sendmail,
- Sleepycat,
- Slib,
- Sissl,
- Spl,
- Tcl,
- Ucd,
- Vim,
- Vnlsl,
- Vsl,
- W3c,
- Wxwidgets,
- Xinetd,
- Zend,
- Zplv1Dot0,
- Zplv2Dot0,
- Zplv2Dot1,
- Zlib,
- ZlibWithAck,
- Cdl,
- Fbsddl,
- Gfdl,
- Ieee,
- Ofsfdl,
- OpenPublication,
- CcBy,
- CcBySa,
- CcByNd,
- Dsl,
- FreeArt,
- Ofl,
- Utopia,
- Arphic,
- Baekmuk,
- BitstreamVera,
- Lucida,
- Mplus,
- Stix,
- Xano,
- Vostrom,
- Xerox,
- Ricebsd,
- Qhull,
- Unknown,
- }
-#endregion
-}
diff --git a/lib/packagekit-sharp/generated/LockedHandler.cs b/lib/packagekit-sharp/generated/LockedHandler.cs
deleted file mode 100644
index 392de9a..0000000
--- a/lib/packagekit-sharp/generated/LockedHandler.cs
+++ /dev/null
@@ -1,18 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
-
- public delegate void LockedHandler(object o, LockedArgs args);
-
- public class LockedArgs : GLib.SignalArgs {
- public bool IsLocked{
- get {
- return (bool) Args[0];
- }
- }
-
- }
-}
diff --git a/lib/packagekit-sharp/generated/Message.cs b/lib/packagekit-sharp/generated/Message.cs
deleted file mode 100644
index 89d1b60..0000000
--- a/lib/packagekit-sharp/generated/Message.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- public class Message {
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_message_enum_to_text(int message);
-
- public static string EnumToText(PackageKit.MessageEnum message) {
- IntPtr raw_ret = pk_message_enum_to_text((int) message);
- string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern int pk_message_enum_from_text(IntPtr message);
-
- public static PackageKit.MessageEnum EnumFromText(string message) {
- IntPtr native_message = GLib.Marshaller.StringToPtrGStrdup (message);
- int raw_ret = pk_message_enum_from_text(native_message);
- PackageKit.MessageEnum ret = (PackageKit.MessageEnum) raw_ret;
- GLib.Marshaller.Free (native_message);
- return ret;
- }
-
-#endregion
- }
-}
diff --git a/lib/packagekit-sharp/generated/MessageEnum.cs b/lib/packagekit-sharp/generated/MessageEnum.cs
deleted file mode 100644
index 8265a70..0000000
--- a/lib/packagekit-sharp/generated/MessageEnum.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- public enum MessageEnum {
-
- BrokenMirror,
- ConnectionRefused,
- ParameterInvalid,
- PriorityInvalid,
- BackendError,
- DaemonError,
- CacheBeingRebuilt,
- UntrustedPackage,
- NewerPackageExists,
- CouldNotFindPackage,
- ConfigFilesChanged,
- PackageAlreadyInstalled,
- Unknown,
- }
-#endregion
-}
diff --git a/lib/packagekit-sharp/generated/MessageHandler.cs b/lib/packagekit-sharp/generated/MessageHandler.cs
deleted file mode 100644
index 3564adc..0000000
--- a/lib/packagekit-sharp/generated/MessageHandler.cs
+++ /dev/null
@@ -1,30 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
-
- public delegate void MessageHandler(object o, MessageArgs args);
-
- public class MessageArgs : GLib.SignalArgs {
- public PackageKit.Client Client{
- get {
- return (PackageKit.Client) Args[0];
- }
- }
-
- public PackageKit.MessageEnum Message{
- get {
- return (PackageKit.MessageEnum) Args[1];
- }
- }
-
- public string Details{
- get {
- return (string) Args[2];
- }
- }
-
- }
-}
diff --git a/lib/packagekit-sharp/generated/Network.cs b/lib/packagekit-sharp/generated/Network.cs
deleted file mode 100644
index 4af846c..0000000
--- a/lib/packagekit-sharp/generated/Network.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- public class Network {
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_network_enum_to_text(int network);
-
- public static string EnumToText(PackageKit.NetworkEnum network) {
- IntPtr raw_ret = pk_network_enum_to_text((int) network);
- string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern int pk_network_enum_from_text(IntPtr network);
-
- public static PackageKit.NetworkEnum EnumFromText(string network) {
- IntPtr native_network = GLib.Marshaller.StringToPtrGStrdup (network);
- int raw_ret = pk_network_enum_from_text(native_network);
- PackageKit.NetworkEnum ret = (PackageKit.NetworkEnum) raw_ret;
- GLib.Marshaller.Free (native_network);
- return ret;
- }
-
-#endregion
- }
-}
diff --git a/lib/packagekit-sharp/generated/NetworkEnum.cs b/lib/packagekit-sharp/generated/NetworkEnum.cs
deleted file mode 100644
index 6fee028..0000000
--- a/lib/packagekit-sharp/generated/NetworkEnum.cs
+++ /dev/null
@@ -1,20 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- public enum NetworkEnum {
-
- Offline,
- Online,
- Wired,
- Wifi,
- Mobile,
- Unknown,
- }
-#endregion
-}
diff --git a/lib/packagekit-sharp/generated/ObjList.cs b/lib/packagekit-sharp/generated/ObjList.cs
deleted file mode 100644
index 4be48bd..0000000
--- a/lib/packagekit-sharp/generated/ObjList.cs
+++ /dev/null
@@ -1,242 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
- using System.Collections;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- public class ObjList : GLib.Object {
-
- [Obsolete]
- protected ObjList(GLib.GType gtype) : base(gtype) {}
- public ObjList(IntPtr raw) : base(raw) {}
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_obj_list_new();
-
- public ObjList () : base (IntPtr.Zero)
- {
- if (GetType () != typeof (ObjList)) {
- CreateNativeObject (new string [0], new GLib.Value[0]);
- return;
- }
- Raw = pk_obj_list_new();
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern bool pk_obj_list_remove_index(IntPtr raw, uint index);
-
- public bool RemoveIndex(uint index) {
- bool raw_ret = pk_obj_list_remove_index(Handle, index);
- bool ret = raw_ret;
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern void pk_obj_list_add_list(IntPtr raw, IntPtr data);
-
- public void AddList(PackageKit.ObjList data) {
- pk_obj_list_add_list(Handle, data == null ? IntPtr.Zero : data.Handle);
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern void pk_obj_list_add_strv(IntPtr raw, IntPtr data);
-
- public void AddStrv(IntPtr data) {
- pk_obj_list_add_strv(Handle, data);
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern void pk_obj_list_set_compare(IntPtr raw, PackageKitSharp.ObjListCompareFuncNative func);
-
- public PackageKit.ObjListCompareFunc Compare {
- set {
- PackageKitSharp.ObjListCompareFuncWrapper value_wrapper = new PackageKitSharp.ObjListCompareFuncWrapper (value);
- pk_obj_list_set_compare(Handle, value_wrapper.NativeDelegate);
- }
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_obj_list_to_string(IntPtr raw);
-
- public override string ToString() {
- IntPtr raw_ret = pk_obj_list_to_string(Handle);
- string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern bool pk_obj_list_from_file(IntPtr raw, IntPtr filename);
-
- public bool FromFile(string filename) {
- IntPtr native_filename = GLib.Marshaller.StringToPtrGStrdup (filename);
- bool raw_ret = pk_obj_list_from_file(Handle, native_filename);
- bool ret = raw_ret;
- GLib.Marshaller.Free (native_filename);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern void pk_obj_list_set_copy(IntPtr raw, PackageKitSharp.ObjListCopyFuncNative func);
-
- public PackageKit.ObjListCopyFunc Copy {
- set {
- PackageKitSharp.ObjListCopyFuncWrapper value_wrapper = new PackageKitSharp.ObjListCopyFuncWrapper (value);
- pk_obj_list_set_copy(Handle, value_wrapper.NativeDelegate);
- }
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern bool pk_obj_list_exists(IntPtr raw, IntPtr data);
-
- public bool Exists(IntPtr data) {
- bool raw_ret = pk_obj_list_exists(Handle, data);
- bool ret = raw_ret;
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern void pk_obj_list_set_free(IntPtr raw, PackageKitSharp.ObjListFreeFuncNative func);
-
- public PackageKit.ObjListFreeFunc Free {
- set {
- PackageKitSharp.ObjListFreeFuncWrapper value_wrapper = new PackageKitSharp.ObjListFreeFuncWrapper (value);
- pk_obj_list_set_free(Handle, value_wrapper.NativeDelegate);
- }
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern void pk_obj_list_remove_duplicate(IntPtr raw);
-
- public void RemoveDuplicate() {
- pk_obj_list_remove_duplicate(Handle);
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern void pk_obj_list_print(IntPtr raw);
-
- public void Print() {
- pk_obj_list_print(Handle);
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern void pk_obj_list_set_new(IntPtr raw, PackageKitSharp.ObjListNewFuncNative func);
-
- public PackageKit.ObjListNewFunc New {
- set {
- PackageKitSharp.ObjListNewFuncWrapper value_wrapper = new PackageKitSharp.ObjListNewFuncWrapper (value);
- pk_obj_list_set_new(Handle, value_wrapper.NativeDelegate);
- }
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern void pk_obj_list_set_equal(IntPtr raw, PackageKitSharp.ObjListEqualFuncNative func);
-
- public PackageKit.ObjListEqualFunc Equal {
- set {
- PackageKitSharp.ObjListEqualFuncWrapper value_wrapper = new PackageKitSharp.ObjListEqualFuncWrapper (value);
- pk_obj_list_set_equal(Handle, value_wrapper.NativeDelegate);
- }
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern bool pk_obj_list_to_file(IntPtr raw, IntPtr filename);
-
- public bool ToFile(string filename) {
- IntPtr native_filename = GLib.Marshaller.StringToPtrGStrdup (filename);
- bool raw_ret = pk_obj_list_to_file(Handle, native_filename);
- bool ret = raw_ret;
- GLib.Marshaller.Free (native_filename);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_obj_list_get_array(IntPtr raw);
-
- public GLib.PtrArray Array {
- get {
- IntPtr raw_ret = pk_obj_list_get_array(Handle);
- GLib.PtrArray ret = new GLib.PtrArray(raw_ret);
- return ret;
- }
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern void pk_obj_list_set_from_string(IntPtr raw, PackageKitSharp.ObjListFromStringFuncNative func);
-
- public PackageKit.ObjListFromStringFunc FromString {
- set {
- PackageKitSharp.ObjListFromStringFuncWrapper value_wrapper = new PackageKitSharp.ObjListFromStringFuncWrapper (value);
- pk_obj_list_set_from_string(Handle, value_wrapper.NativeDelegate);
- }
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern void pk_obj_list_remove_list(IntPtr raw, IntPtr data);
-
- public void RemoveList(PackageKit.ObjList data) {
- pk_obj_list_remove_list(Handle, data == null ? IntPtr.Zero : data.Handle);
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern void pk_obj_list_add(IntPtr raw, IntPtr data);
-
- public void Add(IntPtr data) {
- pk_obj_list_add(Handle, data);
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern void pk_obj_list_set_to_string(IntPtr raw, PackageKitSharp.ObjListToStringFuncNative func);
-
- public PackageKit.ObjListToStringFunc ToStringFunc {
- set {
- PackageKitSharp.ObjListToStringFuncWrapper value_wrapper = new PackageKitSharp.ObjListToStringFuncWrapper (value);
- pk_obj_list_set_to_string(Handle, value_wrapper.NativeDelegate);
- }
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern bool pk_obj_list_remove(IntPtr raw, IntPtr data);
-
- public bool Remove(IntPtr data) {
- bool raw_ret = pk_obj_list_remove(Handle, data);
- bool ret = raw_ret;
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern void pk_obj_list_add_array(IntPtr raw, IntPtr data);
-
- public void AddArray(GLib.PtrArray data) {
- pk_obj_list_add_array(Handle, data == null ? IntPtr.Zero : data.Handle);
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_obj_list_get_type();
-
- public static new GLib.GType GType {
- get {
- IntPtr raw_ret = pk_obj_list_get_type();
- GLib.GType ret = new GLib.GType(raw_ret);
- return ret;
- }
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern void pk_obj_list_clear(IntPtr raw);
-
- public void Clear() {
- pk_obj_list_clear(Handle);
- }
-
-
- static ObjList ()
- {
- GtkSharp.PackagekitSharp.ObjectManager.Initialize ();
- }
-#endregion
- }
-}
diff --git a/lib/packagekit-sharp/generated/ObjListCompareFunc.cs b/lib/packagekit-sharp/generated/ObjListCompareFunc.cs
deleted file mode 100644
index 7e66e25..0000000
--- a/lib/packagekit-sharp/generated/ObjListCompareFunc.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
-
- public delegate int ObjListCompareFunc(IntPtr data1, IntPtr data2);
-
-}
diff --git a/lib/packagekit-sharp/generated/ObjListCopyFunc.cs b/lib/packagekit-sharp/generated/ObjListCopyFunc.cs
deleted file mode 100644
index 2c589dc..0000000
--- a/lib/packagekit-sharp/generated/ObjListCopyFunc.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
-
- public delegate IntPtr ObjListCopyFunc();
-
-}
diff --git a/lib/packagekit-sharp/generated/ObjListEqualFunc.cs b/lib/packagekit-sharp/generated/ObjListEqualFunc.cs
deleted file mode 100644
index f0776dc..0000000
--- a/lib/packagekit-sharp/generated/ObjListEqualFunc.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
-
- public delegate bool ObjListEqualFunc(IntPtr data1, IntPtr data2);
-
-}
diff --git a/lib/packagekit-sharp/generated/ObjListFreeFunc.cs b/lib/packagekit-sharp/generated/ObjListFreeFunc.cs
deleted file mode 100644
index 98e6e3c..0000000
--- a/lib/packagekit-sharp/generated/ObjListFreeFunc.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
-
- public delegate void ObjListFreeFunc();
-
-}
diff --git a/lib/packagekit-sharp/generated/ObjListFromStringFunc.cs b/lib/packagekit-sharp/generated/ObjListFromStringFunc.cs
deleted file mode 100644
index c11ae5a..0000000
--- a/lib/packagekit-sharp/generated/ObjListFromStringFunc.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
-
- public delegate IntPtr ObjListFromStringFunc(string data);
-
-}
diff --git a/lib/packagekit-sharp/generated/ObjListNewFunc.cs b/lib/packagekit-sharp/generated/ObjListNewFunc.cs
deleted file mode 100644
index 13579f4..0000000
--- a/lib/packagekit-sharp/generated/ObjListNewFunc.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
-
- public delegate IntPtr ObjListNewFunc();
-
-}
diff --git a/lib/packagekit-sharp/generated/ObjListToStringFunc.cs b/lib/packagekit-sharp/generated/ObjListToStringFunc.cs
deleted file mode 100644
index 7da795b..0000000
--- a/lib/packagekit-sharp/generated/ObjListToStringFunc.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
-
- public delegate string ObjListToStringFunc();
-
-}
diff --git a/lib/packagekit-sharp/generated/ObjectManager.cs b/lib/packagekit-sharp/generated/ObjectManager.cs
deleted file mode 100644
index 884a6ec..0000000
--- a/lib/packagekit-sharp/generated/ObjectManager.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace GtkSharp.PackagekitSharp {
-
- public class ObjectManager {
-
- static bool initialized = false;
- // Call this method from the appropriate module init function.
- public static void Initialize ()
- {
- if (initialized)
- return;
-
- initialized = true;
- GLib.GType.Register (PackageKit.Desktop.GType, typeof (PackageKit.Desktop));
- GLib.GType.Register (PackageKit.PackageList.GType, typeof (PackageKit.PackageList));
- GLib.GType.Register (PackageKit.TaskList.GType, typeof (PackageKit.TaskList));
- GLib.GType.Register (PackageKit.Control.GType, typeof (PackageKit.Control));
- GLib.GType.Register (PackageKit.ObjList.GType, typeof (PackageKit.ObjList));
- GLib.GType.Register (PackageKit.Client.GType, typeof (PackageKit.Client));
- GLib.GType.Register (PackageKit.ServicePack.GType, typeof (PackageKit.ServicePack));
- GLib.GType.Register (PackageKit.Connection.GType, typeof (PackageKit.Connection));
- GLib.GType.Register (PackageKit.Catalog.GType, typeof (PackageKit.Catalog));
- }
- }
-}
diff --git a/lib/packagekit-sharp/generated/Package.cs b/lib/packagekit-sharp/generated/Package.cs
deleted file mode 100644
index e011536..0000000
--- a/lib/packagekit-sharp/generated/Package.cs
+++ /dev/null
@@ -1,92 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- public class Package {
-
- [DllImport("libpackagekit-glib.dll")]
- static extern uint pk_package_ids_size(IntPtr package_ids);
-
- public static uint IdsSize(string package_ids) {
- uint raw_ret = pk_package_ids_size(GLib.Marshaller.StringToPtrGStrdup(package_ids));
- uint ret = raw_ret;
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_package_ids_from_id(IntPtr package_id);
-
- public static string IdsFromId(string package_id) {
- IntPtr native_package_id = GLib.Marshaller.StringToPtrGStrdup (package_id);
- IntPtr raw_ret = pk_package_ids_from_id(native_package_id);
- string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
- GLib.Marshaller.Free (native_package_id);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern bool pk_package_ids_check(IntPtr package_ids);
-
- public static bool IdsCheck(string package_ids) {
- bool raw_ret = pk_package_ids_check(GLib.Marshaller.StringToPtrGStrdup(package_ids));
- bool ret = raw_ret;
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern bool pk_package_ids_print(IntPtr package_ids);
-
- public static bool IdsPrint(string package_ids) {
- bool raw_ret = pk_package_ids_print(GLib.Marshaller.StringToPtrGStrdup(package_ids));
- bool ret = raw_ret;
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_package_ids_from_text(IntPtr package_id);
-
- public static string IdsFromText(string package_id) {
- IntPtr native_package_id = GLib.Marshaller.StringToPtrGStrdup (package_id);
- IntPtr raw_ret = pk_package_ids_from_text(native_package_id);
- string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
- GLib.Marshaller.Free (native_package_id);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_package_ids_from_va_list(IntPtr package_id_first, IntPtr args);
-
- public static string IdsFromVaList(string package_id_first, IntPtr args) {
- IntPtr native_package_id_first = GLib.Marshaller.StringToPtrGStrdup (package_id_first);
- IntPtr raw_ret = pk_package_ids_from_va_list(native_package_id_first, args);
- string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
- GLib.Marshaller.Free (native_package_id_first);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_package_ids_from_array(IntPtr array);
-
- public static string IdsFromArray(GLib.PtrArray array) {
- IntPtr raw_ret = pk_package_ids_from_array(array == null ? IntPtr.Zero : array.Handle);
- string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_package_ids_to_text(IntPtr package_ids);
-
- public static string IdsToText(string package_ids) {
- IntPtr raw_ret = pk_package_ids_to_text(GLib.Marshaller.StringToPtrGStrdup(package_ids));
- string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
- return ret;
- }
-
-#endregion
- }
-}
diff --git a/lib/packagekit-sharp/generated/PackageHandler.cs b/lib/packagekit-sharp/generated/PackageHandler.cs
deleted file mode 100644
index 6a5e4b5..0000000
--- a/lib/packagekit-sharp/generated/PackageHandler.cs
+++ /dev/null
@@ -1,18 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
-
- public delegate void PackageHandler(object o, PackageArgs args);
-
- public class PackageArgs : GLib.SignalArgs {
- public PackageKit.PackageObj Obj{
- get {
- return (PackageKit.PackageObj) Args[0];
- }
- }
-
- }
-}
diff --git a/lib/packagekit-sharp/generated/PackageId.cs b/lib/packagekit-sharp/generated/PackageId.cs
deleted file mode 100644
index 00b2167..0000000
--- a/lib/packagekit-sharp/generated/PackageId.cs
+++ /dev/null
@@ -1,137 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
- using System.Collections;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- public class PackageId : GLib.Opaque {
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_package_id_build(IntPtr name, IntPtr version, IntPtr arch, IntPtr data);
-
- public static string Build(string name, string version, string arch, string data) {
- IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup (name);
- IntPtr native_version = GLib.Marshaller.StringToPtrGStrdup (version);
- IntPtr native_arch = GLib.Marshaller.StringToPtrGStrdup (arch);
- IntPtr native_data = GLib.Marshaller.StringToPtrGStrdup (data);
- IntPtr raw_ret = pk_package_id_build(native_name, native_version, native_arch, native_data);
- string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
- GLib.Marshaller.Free (native_name);
- GLib.Marshaller.Free (native_version);
- GLib.Marshaller.Free (native_arch);
- GLib.Marshaller.Free (native_data);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_package_id_to_string(IntPtr raw);
-
- public override string ToString() {
- IntPtr raw_ret = pk_package_id_to_string(Handle);
- string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern bool pk_package_id_equal_fuzzy_arch(IntPtr raw, IntPtr id2);
-
- public bool EqualFuzzyArch(PackageKit.PackageId id2) {
- bool raw_ret = pk_package_id_equal_fuzzy_arch(Handle, id2 == null ? IntPtr.Zero : id2.Handle);
- bool ret = raw_ret;
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern bool pk_package_id_equal_strings(IntPtr pid1, IntPtr pid2);
-
- public static bool EqualStrings(string pid1, string pid2) {
- IntPtr native_pid1 = GLib.Marshaller.StringToPtrGStrdup (pid1);
- IntPtr native_pid2 = GLib.Marshaller.StringToPtrGStrdup (pid2);
- bool raw_ret = pk_package_id_equal_strings(native_pid1, native_pid2);
- bool ret = raw_ret;
- GLib.Marshaller.Free (native_pid1);
- GLib.Marshaller.Free (native_pid2);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern bool pk_package_id_free(IntPtr raw);
-
- public bool Free() {
- bool raw_ret = pk_package_id_free(Handle);
- bool ret = raw_ret;
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern bool pk_package_id_check(IntPtr package_id);
-
- public static bool Check(string package_id) {
- IntPtr native_package_id = GLib.Marshaller.StringToPtrGStrdup (package_id);
- bool raw_ret = pk_package_id_check(native_package_id);
- bool ret = raw_ret;
- GLib.Marshaller.Free (native_package_id);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern bool pk_package_id_equal(IntPtr raw, IntPtr id2);
-
- public bool Equal(PackageKit.PackageId id2) {
- bool raw_ret = pk_package_id_equal(Handle, id2 == null ? IntPtr.Zero : id2.Handle);
- bool ret = raw_ret;
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_package_id_copy(IntPtr raw);
-
- public PackageKit.PackageId Copy() {
- IntPtr raw_ret = pk_package_id_copy(Handle);
- PackageKit.PackageId ret = raw_ret == IntPtr.Zero ? null : (PackageKit.PackageId) GLib.Opaque.GetOpaque (raw_ret, typeof (PackageKit.PackageId), true);
- return ret;
- }
-
- public PackageId(IntPtr raw) : base(raw) {}
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_package_id_new();
-
- public PackageId ()
- {
- Raw = pk_package_id_new();
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_package_id_new_from_list(IntPtr name, IntPtr version, IntPtr arch, IntPtr data);
-
- public PackageId (string name, string version, string arch, string data)
- {
- IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup (name);
- IntPtr native_version = GLib.Marshaller.StringToPtrGStrdup (version);
- IntPtr native_arch = GLib.Marshaller.StringToPtrGStrdup (arch);
- IntPtr native_data = GLib.Marshaller.StringToPtrGStrdup (data);
- Raw = pk_package_id_new_from_list(native_name, native_version, native_arch, native_data);
- GLib.Marshaller.Free (native_name);
- GLib.Marshaller.Free (native_version);
- GLib.Marshaller.Free (native_arch);
- GLib.Marshaller.Free (native_data);
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_package_id_new_from_string(IntPtr package_id);
-
- public PackageId (string package_id)
- {
- IntPtr native_package_id = GLib.Marshaller.StringToPtrGStrdup (package_id);
- Raw = pk_package_id_new_from_string(native_package_id);
- GLib.Marshaller.Free (native_package_id);
- }
-
-#endregion
- }
-}
diff --git a/lib/packagekit-sharp/generated/PackageKitSharp.ObjListCompareFuncNative.cs b/lib/packagekit-sharp/generated/PackageKitSharp.ObjListCompareFuncNative.cs
deleted file mode 100644
index 34c6dc3..0000000
--- a/lib/packagekit-sharp/generated/PackageKitSharp.ObjListCompareFuncNative.cs
+++ /dev/null
@@ -1,96 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKitSharp {
-
- using System;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- [GLib.CDeclCallback]
- internal delegate int ObjListCompareFuncNative(IntPtr data1, IntPtr data2);
-
- internal class ObjListCompareFuncInvoker {
-
- ObjListCompareFuncNative native_cb;
- IntPtr __data;
- GLib.DestroyNotify __notify;
-
- ~ObjListCompareFuncInvoker ()
- {
- if (__notify == null)
- return;
- __notify (__data);
- }
-
- internal ObjListCompareFuncInvoker (ObjListCompareFuncNative native_cb) : this (native_cb, IntPtr.Zero, null) {}
-
- internal ObjListCompareFuncInvoker (ObjListCompareFuncNative native_cb, IntPtr data) : this (native_cb, data, null) {}
-
- internal ObjListCompareFuncInvoker (ObjListCompareFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
- {
- this.native_cb = native_cb;
- __data = data;
- __notify = notify;
- }
-
- internal PackageKit.ObjListCompareFunc Handler {
- get {
- return new PackageKit.ObjListCompareFunc(InvokeNative);
- }
- }
-
- int InvokeNative (IntPtr data1, IntPtr data2)
- {
- int result = native_cb (data1, data2);
- return result;
- }
- }
-
- internal class ObjListCompareFuncWrapper {
-
- public int NativeCallback (IntPtr data1, IntPtr data2)
- {
- try {
- int __ret = managed (data1, data2);
- if (release_on_call)
- gch.Free ();
- return __ret;
- } catch (Exception e) {
- GLib.ExceptionManager.RaiseUnhandledException (e, true);
- // NOTREACHED: Above call does not return.
- throw e;
- }
- }
-
- bool release_on_call = false;
- GCHandle gch;
-
- public void PersistUntilCalled ()
- {
- release_on_call = true;
- gch = GCHandle.Alloc (this);
- }
-
- internal ObjListCompareFuncNative NativeDelegate;
- PackageKit.ObjListCompareFunc managed;
-
- public ObjListCompareFuncWrapper (PackageKit.ObjListCompareFunc managed)
- {
- this.managed = managed;
- if (managed != null)
- NativeDelegate = new ObjListCompareFuncNative (NativeCallback);
- }
-
- public static PackageKit.ObjListCompareFunc GetManagedDelegate (ObjListCompareFuncNative native)
- {
- if (native == null)
- return null;
- ObjListCompareFuncWrapper wrapper = (ObjListCompareFuncWrapper) native.Target;
- if (wrapper == null)
- return null;
- return wrapper.managed;
- }
- }
-#endregion
-}
diff --git a/lib/packagekit-sharp/generated/PackageKitSharp.ObjListCopyFuncNative.cs b/lib/packagekit-sharp/generated/PackageKitSharp.ObjListCopyFuncNative.cs
deleted file mode 100644
index c961f22..0000000
--- a/lib/packagekit-sharp/generated/PackageKitSharp.ObjListCopyFuncNative.cs
+++ /dev/null
@@ -1,96 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKitSharp {
-
- using System;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- [GLib.CDeclCallback]
- internal delegate IntPtr ObjListCopyFuncNative(IntPtr data);
-
- internal class ObjListCopyFuncInvoker {
-
- ObjListCopyFuncNative native_cb;
- IntPtr __data;
- GLib.DestroyNotify __notify;
-
- ~ObjListCopyFuncInvoker ()
- {
- if (__notify == null)
- return;
- __notify (__data);
- }
-
- internal ObjListCopyFuncInvoker (ObjListCopyFuncNative native_cb) : this (native_cb, IntPtr.Zero, null) {}
-
- internal ObjListCopyFuncInvoker (ObjListCopyFuncNative native_cb, IntPtr data) : this (native_cb, data, null) {}
-
- internal ObjListCopyFuncInvoker (ObjListCopyFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
- {
- this.native_cb = native_cb;
- __data = data;
- __notify = notify;
- }
-
- internal PackageKit.ObjListCopyFunc Handler {
- get {
- return new PackageKit.ObjListCopyFunc(InvokeNative);
- }
- }
-
- IntPtr InvokeNative ()
- {
- IntPtr result = native_cb (__data);
- return result;
- }
- }
-
- internal class ObjListCopyFuncWrapper {
-
- public IntPtr NativeCallback (IntPtr data)
- {
- try {
- IntPtr __ret = managed ();
- if (release_on_call)
- gch.Free ();
- return __ret;
- } catch (Exception e) {
- GLib.ExceptionManager.RaiseUnhandledException (e, true);
- // NOTREACHED: Above call does not return.
- throw e;
- }
- }
-
- bool release_on_call = false;
- GCHandle gch;
-
- public void PersistUntilCalled ()
- {
- release_on_call = true;
- gch = GCHandle.Alloc (this);
- }
-
- internal ObjListCopyFuncNative NativeDelegate;
- PackageKit.ObjListCopyFunc managed;
-
- public ObjListCopyFuncWrapper (PackageKit.ObjListCopyFunc managed)
- {
- this.managed = managed;
- if (managed != null)
- NativeDelegate = new ObjListCopyFuncNative (NativeCallback);
- }
-
- public static PackageKit.ObjListCopyFunc GetManagedDelegate (ObjListCopyFuncNative native)
- {
- if (native == null)
- return null;
- ObjListCopyFuncWrapper wrapper = (ObjListCopyFuncWrapper) native.Target;
- if (wrapper == null)
- return null;
- return wrapper.managed;
- }
- }
-#endregion
-}
diff --git a/lib/packagekit-sharp/generated/PackageKitSharp.ObjListEqualFuncNative.cs b/lib/packagekit-sharp/generated/PackageKitSharp.ObjListEqualFuncNative.cs
deleted file mode 100644
index 962c766..0000000
--- a/lib/packagekit-sharp/generated/PackageKitSharp.ObjListEqualFuncNative.cs
+++ /dev/null
@@ -1,95 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKitSharp {
-
- using System;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- [GLib.CDeclCallback]
- internal delegate bool ObjListEqualFuncNative(IntPtr data1, IntPtr data2);
-
- internal class ObjListEqualFuncInvoker {
-
- ObjListEqualFuncNative native_cb;
- IntPtr __data;
- GLib.DestroyNotify __notify;
-
- ~ObjListEqualFuncInvoker ()
- {
- if (__notify == null)
- return;
- __notify (__data);
- }
-
- internal ObjListEqualFuncInvoker (ObjListEqualFuncNative native_cb) : this (native_cb, IntPtr.Zero, null) {}
-
- internal ObjListEqualFuncInvoker (ObjListEqualFuncNative native_cb, IntPtr data) : this (native_cb, data, null) {}
-
- internal ObjListEqualFuncInvoker (ObjListEqualFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
- {
- this.native_cb = native_cb;
- __data = data;
- __notify = notify;
- }
-
- internal PackageKit.ObjListEqualFunc Handler {
- get {
- return new PackageKit.ObjListEqualFunc(InvokeNative);
- }
- }
-
- bool InvokeNative (IntPtr data1, IntPtr data2)
- {
- bool result = native_cb (data1, data2);
- return result;
- }
- }
-
- internal class ObjListEqualFuncWrapper {
-
- public bool NativeCallback (IntPtr data1, IntPtr data2)
- {
- try {
- bool __ret = managed (data1, data2);
- if (release_on_call)
- gch.Free ();
- return __ret;
- } catch (Exception e) {
- GLib.ExceptionManager.RaiseUnhandledException (e, false);
- return false;
- }
- }
-
- bool release_on_call = false;
- GCHandle gch;
-
- public void PersistUntilCalled ()
- {
- release_on_call = true;
- gch = GCHandle.Alloc (this);
- }
-
- internal ObjListEqualFuncNative NativeDelegate;
- PackageKit.ObjListEqualFunc managed;
-
- public ObjListEqualFuncWrapper (PackageKit.ObjListEqualFunc managed)
- {
- this.managed = managed;
- if (managed != null)
- NativeDelegate = new ObjListEqualFuncNative (NativeCallback);
- }
-
- public static PackageKit.ObjListEqualFunc GetManagedDelegate (ObjListEqualFuncNative native)
- {
- if (native == null)
- return null;
- ObjListEqualFuncWrapper wrapper = (ObjListEqualFuncWrapper) native.Target;
- if (wrapper == null)
- return null;
- return wrapper.managed;
- }
- }
-#endregion
-}
diff --git a/lib/packagekit-sharp/generated/PackageKitSharp.ObjListFreeFuncNative.cs b/lib/packagekit-sharp/generated/PackageKitSharp.ObjListFreeFuncNative.cs
deleted file mode 100644
index 5886c4e..0000000
--- a/lib/packagekit-sharp/generated/PackageKitSharp.ObjListFreeFuncNative.cs
+++ /dev/null
@@ -1,92 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKitSharp {
-
- using System;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- [GLib.CDeclCallback]
- internal delegate void ObjListFreeFuncNative(IntPtr data);
-
- internal class ObjListFreeFuncInvoker {
-
- ObjListFreeFuncNative native_cb;
- IntPtr __data;
- GLib.DestroyNotify __notify;
-
- ~ObjListFreeFuncInvoker ()
- {
- if (__notify == null)
- return;
- __notify (__data);
- }
-
- internal ObjListFreeFuncInvoker (ObjListFreeFuncNative native_cb) : this (native_cb, IntPtr.Zero, null) {}
-
- internal ObjListFreeFuncInvoker (ObjListFreeFuncNative native_cb, IntPtr data) : this (native_cb, data, null) {}
-
- internal ObjListFreeFuncInvoker (ObjListFreeFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
- {
- this.native_cb = native_cb;
- __data = data;
- __notify = notify;
- }
-
- internal PackageKit.ObjListFreeFunc Handler {
- get {
- return new PackageKit.ObjListFreeFunc(InvokeNative);
- }
- }
-
- void InvokeNative ()
- {
- native_cb (__data);
- }
- }
-
- internal class ObjListFreeFuncWrapper {
-
- public void NativeCallback (IntPtr data)
- {
- try {
- managed ();
- if (release_on_call)
- gch.Free ();
- } catch (Exception e) {
- GLib.ExceptionManager.RaiseUnhandledException (e, false);
- }
- }
-
- bool release_on_call = false;
- GCHandle gch;
-
- public void PersistUntilCalled ()
- {
- release_on_call = true;
- gch = GCHandle.Alloc (this);
- }
-
- internal ObjListFreeFuncNative NativeDelegate;
- PackageKit.ObjListFreeFunc managed;
-
- public ObjListFreeFuncWrapper (PackageKit.ObjListFreeFunc managed)
- {
- this.managed = managed;
- if (managed != null)
- NativeDelegate = new ObjListFreeFuncNative (NativeCallback);
- }
-
- public static PackageKit.ObjListFreeFunc GetManagedDelegate (ObjListFreeFuncNative native)
- {
- if (native == null)
- return null;
- ObjListFreeFuncWrapper wrapper = (ObjListFreeFuncWrapper) native.Target;
- if (wrapper == null)
- return null;
- return wrapper.managed;
- }
- }
-#endregion
-}
diff --git a/lib/packagekit-sharp/generated/PackageKitSharp.ObjListFromStringFuncNative.cs b/lib/packagekit-sharp/generated/PackageKitSharp.ObjListFromStringFuncNative.cs
deleted file mode 100644
index cf6b51c..0000000
--- a/lib/packagekit-sharp/generated/PackageKitSharp.ObjListFromStringFuncNative.cs
+++ /dev/null
@@ -1,98 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKitSharp {
-
- using System;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- [GLib.CDeclCallback]
- internal delegate IntPtr ObjListFromStringFuncNative(IntPtr data);
-
- internal class ObjListFromStringFuncInvoker {
-
- ObjListFromStringFuncNative native_cb;
- IntPtr __data;
- GLib.DestroyNotify __notify;
-
- ~ObjListFromStringFuncInvoker ()
- {
- if (__notify == null)
- return;
- __notify (__data);
- }
-
- internal ObjListFromStringFuncInvoker (ObjListFromStringFuncNative native_cb) : this (native_cb, IntPtr.Zero, null) {}
-
- internal ObjListFromStringFuncInvoker (ObjListFromStringFuncNative native_cb, IntPtr data) : this (native_cb, data, null) {}
-
- internal ObjListFromStringFuncInvoker (ObjListFromStringFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
- {
- this.native_cb = native_cb;
- __data = data;
- __notify = notify;
- }
-
- internal PackageKit.ObjListFromStringFunc Handler {
- get {
- return new PackageKit.ObjListFromStringFunc(InvokeNative);
- }
- }
-
- IntPtr InvokeNative (string data)
- {
- IntPtr native_data = GLib.Marshaller.StringToPtrGStrdup (data);
- IntPtr result = native_cb (native_data);
- GLib.Marshaller.Free (native_data);
- return result;
- }
- }
-
- internal class ObjListFromStringFuncWrapper {
-
- public IntPtr NativeCallback (IntPtr data)
- {
- try {
- IntPtr __ret = managed (GLib.Marshaller.Utf8PtrToString (data));
- if (release_on_call)
- gch.Free ();
- return __ret;
- } catch (Exception e) {
- GLib.ExceptionManager.RaiseUnhandledException (e, true);
- // NOTREACHED: Above call does not return.
- throw e;
- }
- }
-
- bool release_on_call = false;
- GCHandle gch;
-
- public void PersistUntilCalled ()
- {
- release_on_call = true;
- gch = GCHandle.Alloc (this);
- }
-
- internal ObjListFromStringFuncNative NativeDelegate;
- PackageKit.ObjListFromStringFunc managed;
-
- public ObjListFromStringFuncWrapper (PackageKit.ObjListFromStringFunc managed)
- {
- this.managed = managed;
- if (managed != null)
- NativeDelegate = new ObjListFromStringFuncNative (NativeCallback);
- }
-
- public static PackageKit.ObjListFromStringFunc GetManagedDelegate (ObjListFromStringFuncNative native)
- {
- if (native == null)
- return null;
- ObjListFromStringFuncWrapper wrapper = (ObjListFromStringFuncWrapper) native.Target;
- if (wrapper == null)
- return null;
- return wrapper.managed;
- }
- }
-#endregion
-}
diff --git a/lib/packagekit-sharp/generated/PackageKitSharp.ObjListNewFuncNative.cs b/lib/packagekit-sharp/generated/PackageKitSharp.ObjListNewFuncNative.cs
deleted file mode 100644
index 69ac758..0000000
--- a/lib/packagekit-sharp/generated/PackageKitSharp.ObjListNewFuncNative.cs
+++ /dev/null
@@ -1,96 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKitSharp {
-
- using System;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- [GLib.CDeclCallback]
- internal delegate IntPtr ObjListNewFuncNative();
-
- internal class ObjListNewFuncInvoker {
-
- ObjListNewFuncNative native_cb;
- IntPtr __data;
- GLib.DestroyNotify __notify;
-
- ~ObjListNewFuncInvoker ()
- {
- if (__notify == null)
- return;
- __notify (__data);
- }
-
- internal ObjListNewFuncInvoker (ObjListNewFuncNative native_cb) : this (native_cb, IntPtr.Zero, null) {}
-
- internal ObjListNewFuncInvoker (ObjListNewFuncNative native_cb, IntPtr data) : this (native_cb, data, null) {}
-
- internal ObjListNewFuncInvoker (ObjListNewFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
- {
- this.native_cb = native_cb;
- __data = data;
- __notify = notify;
- }
-
- internal PackageKit.ObjListNewFunc Handler {
- get {
- return new PackageKit.ObjListNewFunc(InvokeNative);
- }
- }
-
- IntPtr InvokeNative ()
- {
- IntPtr result = native_cb ();
- return result;
- }
- }
-
- internal class ObjListNewFuncWrapper {
-
- public IntPtr NativeCallback ()
- {
- try {
- IntPtr __ret = managed ();
- if (release_on_call)
- gch.Free ();
- return __ret;
- } catch (Exception e) {
- GLib.ExceptionManager.RaiseUnhandledException (e, true);
- // NOTREACHED: Above call does not return.
- throw e;
- }
- }
-
- bool release_on_call = false;
- GCHandle gch;
-
- public void PersistUntilCalled ()
- {
- release_on_call = true;
- gch = GCHandle.Alloc (this);
- }
-
- internal ObjListNewFuncNative NativeDelegate;
- PackageKit.ObjListNewFunc managed;
-
- public ObjListNewFuncWrapper (PackageKit.ObjListNewFunc managed)
- {
- this.managed = managed;
- if (managed != null)
- NativeDelegate = new ObjListNewFuncNative (NativeCallback);
- }
-
- public static PackageKit.ObjListNewFunc GetManagedDelegate (ObjListNewFuncNative native)
- {
- if (native == null)
- return null;
- ObjListNewFuncWrapper wrapper = (ObjListNewFuncWrapper) native.Target;
- if (wrapper == null)
- return null;
- return wrapper.managed;
- }
- }
-#endregion
-}
diff --git a/lib/packagekit-sharp/generated/PackageKitSharp.ObjListToStringFuncNative.cs b/lib/packagekit-sharp/generated/PackageKitSharp.ObjListToStringFuncNative.cs
deleted file mode 100644
index db6cef4..0000000
--- a/lib/packagekit-sharp/generated/PackageKitSharp.ObjListToStringFuncNative.cs
+++ /dev/null
@@ -1,96 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKitSharp {
-
- using System;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- [GLib.CDeclCallback]
- internal delegate IntPtr ObjListToStringFuncNative(IntPtr data);
-
- internal class ObjListToStringFuncInvoker {
-
- ObjListToStringFuncNative native_cb;
- IntPtr __data;
- GLib.DestroyNotify __notify;
-
- ~ObjListToStringFuncInvoker ()
- {
- if (__notify == null)
- return;
- __notify (__data);
- }
-
- internal ObjListToStringFuncInvoker (ObjListToStringFuncNative native_cb) : this (native_cb, IntPtr.Zero, null) {}
-
- internal ObjListToStringFuncInvoker (ObjListToStringFuncNative native_cb, IntPtr data) : this (native_cb, data, null) {}
-
- internal ObjListToStringFuncInvoker (ObjListToStringFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
- {
- this.native_cb = native_cb;
- __data = data;
- __notify = notify;
- }
-
- internal PackageKit.ObjListToStringFunc Handler {
- get {
- return new PackageKit.ObjListToStringFunc(InvokeNative);
- }
- }
-
- string InvokeNative ()
- {
- string result = GLib.Marshaller.PtrToStringGFree(native_cb (__data));
- return result;
- }
- }
-
- internal class ObjListToStringFuncWrapper {
-
- public IntPtr NativeCallback (IntPtr data)
- {
- try {
- string __ret = managed ();
- if (release_on_call)
- gch.Free ();
- return GLib.Marshaller.StringToPtrGStrdup(__ret);
- } catch (Exception e) {
- GLib.ExceptionManager.RaiseUnhandledException (e, true);
- // NOTREACHED: Above call does not return.
- throw e;
- }
- }
-
- bool release_on_call = false;
- GCHandle gch;
-
- public void PersistUntilCalled ()
- {
- release_on_call = true;
- gch = GCHandle.Alloc (this);
- }
-
- internal ObjListToStringFuncNative NativeDelegate;
- PackageKit.ObjListToStringFunc managed;
-
- public ObjListToStringFuncWrapper (PackageKit.ObjListToStringFunc managed)
- {
- this.managed = managed;
- if (managed != null)
- NativeDelegate = new ObjListToStringFuncNative (NativeCallback);
- }
-
- public static PackageKit.ObjListToStringFunc GetManagedDelegate (ObjListToStringFuncNative native)
- {
- if (native == null)
- return null;
- ObjListToStringFuncWrapper wrapper = (ObjListToStringFuncWrapper) native.Target;
- if (wrapper == null)
- return null;
- return wrapper.managed;
- }
- }
-#endregion
-}
diff --git a/lib/packagekit-sharp/generated/PackageList.cs b/lib/packagekit-sharp/generated/PackageList.cs
deleted file mode 100644
index 3dcf16d..0000000
--- a/lib/packagekit-sharp/generated/PackageList.cs
+++ /dev/null
@@ -1,181 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
- using System.Collections;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- public class PackageList : PackageKit.ObjList {
-
- [Obsolete]
- protected PackageList(GLib.GType gtype) : base(gtype) {}
- public PackageList(IntPtr raw) : base(raw) {}
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_package_list_new();
-
- public PackageList () : base (IntPtr.Zero)
- {
- if (GetType () != typeof (PackageList)) {
- CreateNativeObject (new string [0], new GLib.Value[0]);
- return;
- }
- Raw = pk_package_list_new();
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern bool pk_package_list_remove(IntPtr raw, IntPtr package_id);
-
- public bool Remove(string package_id) {
- IntPtr native_package_id = GLib.Marshaller.StringToPtrGStrdup (package_id);
- bool raw_ret = pk_package_list_remove(Handle, native_package_id);
- bool ret = raw_ret;
- GLib.Marshaller.Free (native_package_id);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern bool pk_package_list_contains(IntPtr raw, IntPtr package_id);
-
- public bool Contains(string package_id) {
- IntPtr native_package_id = GLib.Marshaller.StringToPtrGStrdup (package_id);
- bool raw_ret = pk_package_list_contains(Handle, native_package_id);
- bool ret = raw_ret;
- GLib.Marshaller.Free (native_package_id);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern bool pk_package_list_sort(IntPtr raw);
-
- public bool Sort() {
- bool raw_ret = pk_package_list_sort(Handle);
- bool ret = raw_ret;
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern bool pk_package_list_sort_info(IntPtr raw);
-
- public bool SortInfo() {
- bool raw_ret = pk_package_list_sort_info(Handle);
- bool ret = raw_ret;
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern bool pk_package_list_set_fuzzy_arch(IntPtr raw, bool fuzzy_arch);
-
- public bool SetFuzzyArch(bool fuzzy_arch) {
- bool raw_ret = pk_package_list_set_fuzzy_arch(Handle, fuzzy_arch);
- bool ret = raw_ret;
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern uint pk_package_list_get_size(IntPtr raw);
-
- public uint Size {
- get {
- uint raw_ret = pk_package_list_get_size(Handle);
- uint ret = raw_ret;
- return ret;
- }
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_package_list_to_strv(IntPtr raw);
-
- public string[] ToStringArray() {
- IntPtr raw_ret = pk_package_list_to_strv(Handle);
- string[] ret = GLib.Marshaller.NullTermPtrToStringArray (raw_ret, false);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern bool pk_package_list_sort_summary(IntPtr raw);
-
- public bool SortSummary() {
- bool raw_ret = pk_package_list_sort_summary(Handle);
- bool ret = raw_ret;
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern bool pk_package_list_add(IntPtr raw, int info, IntPtr ident, IntPtr summary);
-
- public bool Add(PackageKit.InfoEnum info, PackageKit.PackageId ident, string summary) {
- IntPtr native_summary = GLib.Marshaller.StringToPtrGStrdup (summary);
- bool raw_ret = pk_package_list_add(Handle, (int) info, ident == null ? IntPtr.Zero : ident.Handle, native_summary);
- bool ret = raw_ret;
- GLib.Marshaller.Free (native_summary);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_package_list_get_type();
-
- public static new GLib.GType GType {
- get {
- IntPtr raw_ret = pk_package_list_get_type();
- GLib.GType ret = new GLib.GType(raw_ret);
- return ret;
- }
- }
-
-
- static PackageList ()
- {
- GtkSharp.PackagekitSharp.ObjectManager.Initialize ();
- }
-#endregion
-#region Customized extensions
-#line 1 "PackageList.custom"
-/*
- * PackageList.custom
- *
- * Author(s):
- * Stephane Delcroix (stephane at delcroix.org)
- *
- * Copyright (c) 2009 Novell, Inc.
- *
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to
- * permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- *
- * The above copyright notice and this permission notice shall be
- * included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
- * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
- * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
- * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- *
- */
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_package_list_get_obj(IntPtr raw, uint item);
-
- public PackageKit.PackageObj this[uint item] {
- get {
- IntPtr raw_ret = pk_package_list_get_obj(Handle, item);
- PackageKit.PackageObj ret = raw_ret == IntPtr.Zero ? null : (PackageKit.PackageObj) GLib.Opaque.GetOpaque (raw_ret, typeof (PackageKit.PackageObj), false);
- return ret;
- }
- }
-
-
-
-#endregion
- }
-}
diff --git a/lib/packagekit-sharp/generated/PackageObj.cs b/lib/packagekit-sharp/generated/PackageObj.cs
deleted file mode 100644
index 6ad8952..0000000
--- a/lib/packagekit-sharp/generated/PackageObj.cs
+++ /dev/null
@@ -1,83 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
- using System.Collections;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- public class PackageObj : GLib.Opaque {
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_package_obj_to_string(IntPtr raw);
-
- public override string ToString() {
- IntPtr raw_ret = pk_package_obj_to_string(Handle);
- string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern bool pk_package_obj_equal_fuzzy_arch(IntPtr raw, IntPtr obj2);
-
- public bool EqualFuzzyArch(PackageKit.PackageObj obj2) {
- bool raw_ret = pk_package_obj_equal_fuzzy_arch(Handle, obj2 == null ? IntPtr.Zero : obj2.Handle);
- bool ret = raw_ret;
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_package_obj_copy(IntPtr raw);
-
- public PackageKit.PackageObj Copy() {
- IntPtr raw_ret = pk_package_obj_copy(Handle);
- PackageKit.PackageObj ret = raw_ret == IntPtr.Zero ? null : (PackageKit.PackageObj) GLib.Opaque.GetOpaque (raw_ret, typeof (PackageKit.PackageObj), true);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern bool pk_package_obj_free(IntPtr raw);
-
- public bool Free() {
- bool raw_ret = pk_package_obj_free(Handle);
- bool ret = raw_ret;
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_package_obj_from_string(IntPtr text);
-
- public static PackageKit.PackageObj FromString(string text) {
- IntPtr native_text = GLib.Marshaller.StringToPtrGStrdup (text);
- IntPtr raw_ret = pk_package_obj_from_string(native_text);
- PackageKit.PackageObj ret = raw_ret == IntPtr.Zero ? null : (PackageKit.PackageObj) GLib.Opaque.GetOpaque (raw_ret, typeof (PackageKit.PackageObj), false);
- GLib.Marshaller.Free (native_text);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern bool pk_package_obj_equal(IntPtr raw, IntPtr obj2);
-
- public bool Equal(PackageKit.PackageObj obj2) {
- bool raw_ret = pk_package_obj_equal(Handle, obj2 == null ? IntPtr.Zero : obj2.Handle);
- bool ret = raw_ret;
- return ret;
- }
-
- public PackageObj(IntPtr raw) : base(raw) {}
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_package_obj_new(int info, IntPtr id, IntPtr summary);
-
- public PackageObj (PackageKit.InfoEnum info, PackageKit.PackageId id, string summary)
- {
- IntPtr native_summary = GLib.Marshaller.StringToPtrGStrdup (summary);
- Raw = pk_package_obj_new((int) info, id == null ? IntPtr.Zero : id.Handle, native_summary);
- GLib.Marshaller.Free (native_summary);
- }
-
-#endregion
- }
-}
diff --git a/lib/packagekit-sharp/generated/PercentageHandler.cs b/lib/packagekit-sharp/generated/PercentageHandler.cs
deleted file mode 100644
index 2aa7c35..0000000
--- a/lib/packagekit-sharp/generated/PercentageHandler.cs
+++ /dev/null
@@ -1,18 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
-
- public delegate void PercentageHandler(object o, PercentageArgs args);
-
- public class PercentageArgs : GLib.SignalArgs {
- public uint Percentage{
- get {
- return (uint) Args[0];
- }
- }
-
- }
-}
diff --git a/lib/packagekit-sharp/generated/ProgressChangedHandler.cs b/lib/packagekit-sharp/generated/ProgressChangedHandler.cs
deleted file mode 100644
index 1fac75d..0000000
--- a/lib/packagekit-sharp/generated/ProgressChangedHandler.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
-
- public delegate void ProgressChangedHandler(object o, ProgressChangedArgs args);
-
- public class ProgressChangedArgs : GLib.SignalArgs {
- public uint Percentage{
- get {
- return (uint) Args[0];
- }
- }
-
- public uint Subpercentage{
- get {
- return (uint) Args[1];
- }
- }
-
- public uint Elapsed{
- get {
- return (uint) Args[2];
- }
- }
-
- public uint Remaining{
- get {
- return (uint) Args[3];
- }
- }
-
- }
-}
diff --git a/lib/packagekit-sharp/generated/ProgressHandler.cs b/lib/packagekit-sharp/generated/ProgressHandler.cs
deleted file mode 100644
index 0700ae7..0000000
--- a/lib/packagekit-sharp/generated/ProgressHandler.cs
+++ /dev/null
@@ -1,24 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
-
- public delegate void ProgressHandler(object o, ProgressArgs args);
-
- public class ProgressArgs : GLib.SignalArgs {
- public uint P0{
- get {
- return (uint) Args[0];
- }
- }
-
- public string P1{
- get {
- return (string) Args[1];
- }
- }
-
- }
-}
diff --git a/lib/packagekit-sharp/generated/Provides.cs b/lib/packagekit-sharp/generated/Provides.cs
deleted file mode 100644
index 5573a97..0000000
--- a/lib/packagekit-sharp/generated/Provides.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- public class Provides {
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_provides_enum_to_text(int provides);
-
- public static string EnumToText(PackageKit.ProvidesEnum provides) {
- IntPtr raw_ret = pk_provides_enum_to_text((int) provides);
- string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern int pk_provides_enum_from_text(IntPtr provides);
-
- public static PackageKit.ProvidesEnum EnumFromText(string provides) {
- IntPtr native_provides = GLib.Marshaller.StringToPtrGStrdup (provides);
- int raw_ret = pk_provides_enum_from_text(native_provides);
- PackageKit.ProvidesEnum ret = (PackageKit.ProvidesEnum) raw_ret;
- GLib.Marshaller.Free (native_provides);
- return ret;
- }
-
-#endregion
- }
-}
diff --git a/lib/packagekit-sharp/generated/ProvidesEnum.cs b/lib/packagekit-sharp/generated/ProvidesEnum.cs
deleted file mode 100644
index 4cde9aa..0000000
--- a/lib/packagekit-sharp/generated/ProvidesEnum.cs
+++ /dev/null
@@ -1,21 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- public enum ProvidesEnum {
-
- Any,
- Modalias,
- Codec,
- Mimetype,
- Font,
- HardwareDriver,
- Unknown,
- }
-#endregion
-}
diff --git a/lib/packagekit-sharp/generated/RepoDetailHandler.cs b/lib/packagekit-sharp/generated/RepoDetailHandler.cs
deleted file mode 100644
index f70f2af..0000000
--- a/lib/packagekit-sharp/generated/RepoDetailHandler.cs
+++ /dev/null
@@ -1,30 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
-
- public delegate void RepoDetailHandler(object o, RepoDetailArgs args);
-
- public class RepoDetailArgs : GLib.SignalArgs {
- public string RepoId{
- get {
- return (string) Args[0];
- }
- }
-
- public string Description{
- get {
- return (string) Args[1];
- }
- }
-
- public bool Enabled{
- get {
- return (bool) Args[2];
- }
- }
-
- }
-}
diff --git a/lib/packagekit-sharp/generated/RepoSignatureRequiredHandler.cs b/lib/packagekit-sharp/generated/RepoSignatureRequiredHandler.cs
deleted file mode 100644
index 481dee5..0000000
--- a/lib/packagekit-sharp/generated/RepoSignatureRequiredHandler.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
-
- public delegate void RepoSignatureRequiredHandler(object o, RepoSignatureRequiredArgs args);
-
- public class RepoSignatureRequiredArgs : GLib.SignalArgs {
- public string PackageId{
- get {
- return (string) Args[0];
- }
- }
-
- public string RepositoryName{
- get {
- return (string) Args[1];
- }
- }
-
- public string KeyUrl{
- get {
- return (string) Args[2];
- }
- }
-
- public string KeyUserid{
- get {
- return (string) Args[3];
- }
- }
-
- public string KeyId{
- get {
- return (string) Args[4];
- }
- }
-
- public string KeyFingerprint{
- get {
- return (string) Args[5];
- }
- }
-
- public string KeyTimestamp{
- get {
- return (string) Args[6];
- }
- }
-
- public PackageKit.SigTypeEnum Type{
- get {
- return (PackageKit.SigTypeEnum) Args[7];
- }
- }
-
- }
-}
diff --git a/lib/packagekit-sharp/generated/RequireRestartHandler.cs b/lib/packagekit-sharp/generated/RequireRestartHandler.cs
deleted file mode 100644
index f19af8a..0000000
--- a/lib/packagekit-sharp/generated/RequireRestartHandler.cs
+++ /dev/null
@@ -1,24 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
-
- public delegate void RequireRestartHandler(object o, RequireRestartArgs args);
-
- public class RequireRestartArgs : GLib.SignalArgs {
- public PackageKit.RestartEnum Restart{
- get {
- return (PackageKit.RestartEnum) Args[0];
- }
- }
-
- public PackageKit.PackageId Id{
- get {
- return (PackageKit.PackageId) Args[1];
- }
- }
-
- }
-}
diff --git a/lib/packagekit-sharp/generated/Restart.cs b/lib/packagekit-sharp/generated/Restart.cs
deleted file mode 100644
index f26240e..0000000
--- a/lib/packagekit-sharp/generated/Restart.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- public class Restart {
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_restart_enum_to_text(int restart);
-
- public static string EnumToText(PackageKit.RestartEnum restart) {
- IntPtr raw_ret = pk_restart_enum_to_text((int) restart);
- string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern int pk_restart_enum_from_text(IntPtr restart);
-
- public static PackageKit.RestartEnum EnumFromText(string restart) {
- IntPtr native_restart = GLib.Marshaller.StringToPtrGStrdup (restart);
- int raw_ret = pk_restart_enum_from_text(native_restart);
- PackageKit.RestartEnum ret = (PackageKit.RestartEnum) raw_ret;
- GLib.Marshaller.Free (native_restart);
- return ret;
- }
-
-#endregion
- }
-}
diff --git a/lib/packagekit-sharp/generated/RestartEnum.cs b/lib/packagekit-sharp/generated/RestartEnum.cs
deleted file mode 100644
index ccd2e2b..0000000
--- a/lib/packagekit-sharp/generated/RestartEnum.cs
+++ /dev/null
@@ -1,19 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- public enum RestartEnum {
-
- None,
- Application,
- Session,
- System,
- Unknown,
- }
-#endregion
-}
diff --git a/lib/packagekit-sharp/generated/Role.cs b/lib/packagekit-sharp/generated/Role.cs
deleted file mode 100644
index bd213f6..0000000
--- a/lib/packagekit-sharp/generated/Role.cs
+++ /dev/null
@@ -1,54 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- public class Role {
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_role_enum_to_text(int role);
-
- public static string EnumToText(PackageKit.RoleEnum role) {
- IntPtr raw_ret = pk_role_enum_to_text((int) role);
- string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern ulong pk_role_bitfield_from_text(IntPtr roles);
-
- public static ulong BitfieldFromText(string roles) {
- IntPtr native_roles = GLib.Marshaller.StringToPtrGStrdup (roles);
- ulong raw_ret = pk_role_bitfield_from_text(native_roles);
- ulong ret = raw_ret;
- GLib.Marshaller.Free (native_roles);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern int pk_role_enum_from_text(IntPtr role);
-
- public static PackageKit.RoleEnum EnumFromText(string role) {
- IntPtr native_role = GLib.Marshaller.StringToPtrGStrdup (role);
- int raw_ret = pk_role_enum_from_text(native_role);
- PackageKit.RoleEnum ret = (PackageKit.RoleEnum) raw_ret;
- GLib.Marshaller.Free (native_role);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_role_bitfield_to_text(ulong roles);
-
- public static string BitfieldToText(ulong roles) {
- IntPtr raw_ret = pk_role_bitfield_to_text(roles);
- string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
- return ret;
- }
-
-#endregion
- }
-}
diff --git a/lib/packagekit-sharp/generated/RoleEnum.cs b/lib/packagekit-sharp/generated/RoleEnum.cs
deleted file mode 100644
index f7b1653..0000000
--- a/lib/packagekit-sharp/generated/RoleEnum.cs
+++ /dev/null
@@ -1,45 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- public enum RoleEnum {
-
- Cancel,
- GetDepends,
- GetDetails,
- GetFiles,
- GetPackages,
- GetRepoList,
- GetRequires,
- GetUpdateDetail,
- GetUpdates,
- InstallFiles,
- InstallPackages,
- InstallSignature,
- RefreshCache,
- RemovePackages,
- RepoEnable,
- RepoSetData,
- Resolve,
- Rollback,
- SearchDetails,
- SearchFile,
- SearchGroup,
- SearchName,
- UpdatePackages,
- UpdateSystem,
- WhatProvides,
- AcceptEula,
- DownloadPackages,
- GetDistroUpgrades,
- GetCategories,
- GetOldTransactions,
- Unknown,
- }
-#endregion
-}
diff --git a/lib/packagekit-sharp/generated/ServicePack.cs b/lib/packagekit-sharp/generated/ServicePack.cs
deleted file mode 100644
index c5ede21..0000000
--- a/lib/packagekit-sharp/generated/ServicePack.cs
+++ /dev/null
@@ -1,311 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
- using System.Collections;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- public class ServicePack : GLib.Object {
-
- [Obsolete]
- protected ServicePack(GLib.GType gtype) : base(gtype) {}
- public ServicePack(IntPtr raw) : base(raw) {}
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_service_pack_new();
-
- public ServicePack () : base (IntPtr.Zero)
- {
- if (GetType () != typeof (ServicePack)) {
- CreateNativeObject (new string [0], new GLib.Value[0]);
- return;
- }
- Raw = pk_service_pack_new();
- }
-
- [GLib.CDeclCallback]
- delegate void PackageVMDelegate (IntPtr pack, IntPtr obj);
-
- static PackageVMDelegate PackageVMCallback;
-
- static void package_cb (IntPtr pack, IntPtr obj)
- {
- try {
- ServicePack pack_managed = GLib.Object.GetObject (pack, false) as ServicePack;
- pack_managed.OnPackage (obj == IntPtr.Zero ? null : (PackageKit.PackageObj) GLib.Opaque.GetOpaque (obj, typeof (PackageKit.PackageObj), false));
- } catch (Exception e) {
- GLib.ExceptionManager.RaiseUnhandledException (e, false);
- }
- }
-
- private static void OverridePackage (GLib.GType gtype)
- {
- if (PackageVMCallback == null)
- PackageVMCallback = new PackageVMDelegate (package_cb);
- OverrideVirtualMethod (gtype, "package", PackageVMCallback);
- }
-
- [GLib.DefaultSignalHandler(Type=typeof(PackageKit.ServicePack), ConnectionMethod="OverridePackage")]
- protected virtual void OnPackage (PackageKit.PackageObj obj)
- {
- GLib.Value ret = GLib.Value.Empty;
- GLib.ValueArray inst_and_params = new GLib.ValueArray (2);
- GLib.Value[] vals = new GLib.Value [2];
- vals [0] = new GLib.Value (this);
- inst_and_params.Append (vals [0]);
- vals [1] = new GLib.Value (obj);
- inst_and_params.Append (vals [1]);
- g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
- foreach (GLib.Value v in vals)
- v.Dispose ();
- }
-
- [GLib.CDeclCallback]
- delegate void PackageSignalDelegate (IntPtr arg0, IntPtr arg1, IntPtr gch);
-
- static void PackageSignalCallback (IntPtr arg0, IntPtr arg1, IntPtr gch)
- {
- PackageKit.PackageArgs args = new PackageKit.PackageArgs ();
- try {
- GLib.Signal sig = ((GCHandle) gch).Target as GLib.Signal;
- if (sig == null)
- throw new Exception("Unknown signal GC handle received " + gch);
-
- args.Args = new object[1];
- args.Args[0] = arg1 == IntPtr.Zero ? null : (PackageKit.PackageObj) GLib.Opaque.GetOpaque (arg1, typeof (PackageKit.PackageObj), false);
- PackageKit.PackageHandler handler = (PackageKit.PackageHandler) sig.Handler;
- handler (GLib.Object.GetObject (arg0), args);
- } catch (Exception e) {
- GLib.ExceptionManager.RaiseUnhandledException (e, false);
- }
- }
-
- [GLib.Signal("package")]
- public event PackageKit.PackageHandler Package {
- add {
- GLib.Signal sig = GLib.Signal.Lookup (this, "package", new PackageSignalDelegate(PackageSignalCallback));
- sig.AddDelegate (value);
- }
- remove {
- GLib.Signal sig = GLib.Signal.Lookup (this, "package", new PackageSignalDelegate(PackageSignalCallback));
- sig.RemoveDelegate (value);
- }
- }
-
- [GLib.CDeclCallback]
- delegate void PercentageVMDelegate (IntPtr pack, uint percentage);
-
- static PercentageVMDelegate PercentageVMCallback;
-
- static void percentage_cb (IntPtr pack, uint percentage)
- {
- try {
- ServicePack pack_managed = GLib.Object.GetObject (pack, false) as ServicePack;
- pack_managed.OnPercentage (percentage);
- } catch (Exception e) {
- GLib.ExceptionManager.RaiseUnhandledException (e, false);
- }
- }
-
- private static void OverridePercentage (GLib.GType gtype)
- {
- if (PercentageVMCallback == null)
- PercentageVMCallback = new PercentageVMDelegate (percentage_cb);
- OverrideVirtualMethod (gtype, "percentage", PercentageVMCallback);
- }
-
- [GLib.DefaultSignalHandler(Type=typeof(PackageKit.ServicePack), ConnectionMethod="OverridePercentage")]
- protected virtual void OnPercentage (uint percentage)
- {
- GLib.Value ret = GLib.Value.Empty;
- GLib.ValueArray inst_and_params = new GLib.ValueArray (2);
- GLib.Value[] vals = new GLib.Value [2];
- vals [0] = new GLib.Value (this);
- inst_and_params.Append (vals [0]);
- vals [1] = new GLib.Value (percentage);
- inst_and_params.Append (vals [1]);
- g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
- foreach (GLib.Value v in vals)
- v.Dispose ();
- }
-
- [GLib.Signal("percentage")]
- public event PackageKit.PercentageHandler Percentage {
- add {
- GLib.Signal sig = GLib.Signal.Lookup (this, "percentage", typeof (PackageKit.PercentageArgs));
- sig.AddDelegate (value);
- }
- remove {
- GLib.Signal sig = GLib.Signal.Lookup (this, "percentage", typeof (PackageKit.PercentageArgs));
- sig.RemoveDelegate (value);
- }
- }
-
- [GLib.CDeclCallback]
- delegate void StatusVMDelegate (IntPtr pack, int status);
-
- static StatusVMDelegate StatusVMCallback;
-
- static void status_cb (IntPtr pack, int status)
- {
- try {
- ServicePack pack_managed = GLib.Object.GetObject (pack, false) as ServicePack;
- pack_managed.OnStatus ((PackageKit.ServicePackStatus) status);
- } catch (Exception e) {
- GLib.ExceptionManager.RaiseUnhandledException (e, false);
- }
- }
-
- private static void OverrideStatus (GLib.GType gtype)
- {
- if (StatusVMCallback == null)
- StatusVMCallback = new StatusVMDelegate (status_cb);
- OverrideVirtualMethod (gtype, "status", StatusVMCallback);
- }
-
- [GLib.DefaultSignalHandler(Type=typeof(PackageKit.ServicePack), ConnectionMethod="OverrideStatus")]
- protected virtual void OnStatus (PackageKit.ServicePackStatus status)
- {
- GLib.Value ret = GLib.Value.Empty;
- GLib.ValueArray inst_and_params = new GLib.ValueArray (2);
- GLib.Value[] vals = new GLib.Value [2];
- vals [0] = new GLib.Value (this);
- inst_and_params.Append (vals [0]);
- vals [1] = new GLib.Value (status);
- inst_and_params.Append (vals [1]);
- g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
- foreach (GLib.Value v in vals)
- v.Dispose ();
- }
-
- [GLib.Signal("status")]
- public event PackageKit.StatusHandler Status {
- add {
- GLib.Signal sig = GLib.Signal.Lookup (this, "status", typeof (PackageKit.StatusArgs));
- sig.AddDelegate (value);
- }
- remove {
- GLib.Signal sig = GLib.Signal.Lookup (this, "status", typeof (PackageKit.StatusArgs));
- sig.RemoveDelegate (value);
- }
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe bool pk_service_pack_create_for_package_ids(IntPtr raw, IntPtr package_ids, out IntPtr error);
-
- public unsafe bool CreateForPackageIds(string package_ids) {
- IntPtr error = IntPtr.Zero;
- bool raw_ret = pk_service_pack_create_for_package_ids(Handle, GLib.Marshaller.StringToPtrGStrdup(package_ids), out error);
- bool ret = raw_ret;
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern bool pk_service_pack_set_exclude_list(IntPtr raw, IntPtr list);
-
- public bool SetExcludeList(PackageKit.PackageList list) {
- bool raw_ret = pk_service_pack_set_exclude_list(Handle, list == null ? IntPtr.Zero : list.Handle);
- bool ret = raw_ret;
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern bool pk_service_pack_set_temp_directory(IntPtr raw, IntPtr directory);
-
- public bool SetTempDirectory(string directory) {
- IntPtr native_directory = GLib.Marshaller.StringToPtrGStrdup (directory);
- bool raw_ret = pk_service_pack_set_temp_directory(Handle, native_directory);
- bool ret = raw_ret;
- GLib.Marshaller.Free (native_directory);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe bool pk_service_pack_cancel(IntPtr raw, out IntPtr error);
-
- public unsafe bool Cancel() {
- IntPtr error = IntPtr.Zero;
- bool raw_ret = pk_service_pack_cancel(Handle, out error);
- bool ret = raw_ret;
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern bool pk_service_pack_set_filename(IntPtr raw, IntPtr filename);
-
- public bool SetFilename(string filename) {
- IntPtr native_filename = GLib.Marshaller.StringToPtrGStrdup (filename);
- bool raw_ret = pk_service_pack_set_filename(Handle, native_filename);
- bool ret = raw_ret;
- GLib.Marshaller.Free (native_filename);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe bool pk_service_pack_check_valid(IntPtr raw, out IntPtr error);
-
- public unsafe bool CheckValid() {
- IntPtr error = IntPtr.Zero;
- bool raw_ret = pk_service_pack_check_valid(Handle, out error);
- bool ret = raw_ret;
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern int pk_service_pack_error_quark();
-
- public static int ErrorQuark() {
- int raw_ret = pk_service_pack_error_quark();
- int ret = raw_ret;
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe bool pk_service_pack_create_for_updates(IntPtr raw, out IntPtr error);
-
- public unsafe bool CreateForUpdates() {
- IntPtr error = IntPtr.Zero;
- bool raw_ret = pk_service_pack_create_for_updates(Handle, out error);
- bool ret = raw_ret;
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_service_pack_get_type();
-
- public static new GLib.GType GType {
- get {
- IntPtr raw_ret = pk_service_pack_get_type();
- GLib.GType ret = new GLib.GType(raw_ret);
- return ret;
- }
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern unsafe bool pk_service_pack_create_for_package_id(IntPtr raw, IntPtr package_id, out IntPtr error);
-
- public unsafe bool CreateForPackageId(string package_id) {
- IntPtr native_package_id = GLib.Marshaller.StringToPtrGStrdup (package_id);
- IntPtr error = IntPtr.Zero;
- bool raw_ret = pk_service_pack_create_for_package_id(Handle, native_package_id, out error);
- bool ret = raw_ret;
- GLib.Marshaller.Free (native_package_id);
- if (error != IntPtr.Zero) throw new GLib.GException (error);
- return ret;
- }
-
-
- static ServicePack ()
- {
- GtkSharp.PackagekitSharp.ObjectManager.Initialize ();
- }
-#endregion
- }
-}
diff --git a/lib/packagekit-sharp/generated/ServicePackError.cs b/lib/packagekit-sharp/generated/ServicePackError.cs
deleted file mode 100644
index 306d0e6..0000000
--- a/lib/packagekit-sharp/generated/ServicePackError.cs
+++ /dev/null
@@ -1,32 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- [GLib.GType (typeof (PackageKit.ServicePackErrorGType))]
- public enum ServicePackError {
-
- FailedSetup,
- FailedDownload,
- FailedExtraction,
- FailedCreate,
- NothingToDo,
- NotCompatible,
- }
-
- internal class ServicePackErrorGType {
- [DllImport ("libpackagekit-glib.dll")]
- static extern IntPtr pk_service_pack_error_get_type ();
-
- public static GLib.GType GType {
- get {
- return new GLib.GType (pk_service_pack_error_get_type ());
- }
- }
- }
-#endregion
-}
diff --git a/lib/packagekit-sharp/generated/ServicePackStatus.cs b/lib/packagekit-sharp/generated/ServicePackStatus.cs
deleted file mode 100644
index e6d4b70..0000000
--- a/lib/packagekit-sharp/generated/ServicePackStatus.cs
+++ /dev/null
@@ -1,17 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- public enum ServicePackStatus {
-
- DownloadPackages,
- DownloadDependencies,
- Unknown,
- }
-#endregion
-}
diff --git a/lib/packagekit-sharp/generated/Sig.cs b/lib/packagekit-sharp/generated/Sig.cs
deleted file mode 100644
index ad0fd05..0000000
--- a/lib/packagekit-sharp/generated/Sig.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- public class Sig {
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_sig_type_enum_to_text(int sig_type);
-
- public static string TypeEnumToText(PackageKit.SigTypeEnum sig_type) {
- IntPtr raw_ret = pk_sig_type_enum_to_text((int) sig_type);
- string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern int pk_sig_type_enum_from_text(IntPtr sig_type);
-
- public static PackageKit.SigTypeEnum TypeEnumFromText(string sig_type) {
- IntPtr native_sig_type = GLib.Marshaller.StringToPtrGStrdup (sig_type);
- int raw_ret = pk_sig_type_enum_from_text(native_sig_type);
- PackageKit.SigTypeEnum ret = (PackageKit.SigTypeEnum) raw_ret;
- GLib.Marshaller.Free (native_sig_type);
- return ret;
- }
-
-#endregion
- }
-}
diff --git a/lib/packagekit-sharp/generated/SigTypeEnum.cs b/lib/packagekit-sharp/generated/SigTypeEnum.cs
deleted file mode 100644
index 73046c7..0000000
--- a/lib/packagekit-sharp/generated/SigTypeEnum.cs
+++ /dev/null
@@ -1,16 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- public enum SigTypeEnum {
-
- Gpg,
- Unknown,
- }
-#endregion
-}
diff --git a/lib/packagekit-sharp/generated/Status.cs b/lib/packagekit-sharp/generated/Status.cs
deleted file mode 100644
index 4b993ef..0000000
--- a/lib/packagekit-sharp/generated/Status.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- public class Status {
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_status_enum_to_text(int status);
-
- public static string EnumToText(PackageKit.StatusEnum status) {
- IntPtr raw_ret = pk_status_enum_to_text((int) status);
- string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern int pk_status_enum_from_text(IntPtr status);
-
- public static PackageKit.StatusEnum EnumFromText(string status) {
- IntPtr native_status = GLib.Marshaller.StringToPtrGStrdup (status);
- int raw_ret = pk_status_enum_from_text(native_status);
- PackageKit.StatusEnum ret = (PackageKit.StatusEnum) raw_ret;
- GLib.Marshaller.Free (native_status);
- return ret;
- }
-
-#endregion
- }
-}
diff --git a/lib/packagekit-sharp/generated/StatusChangedHandler.cs b/lib/packagekit-sharp/generated/StatusChangedHandler.cs
deleted file mode 100644
index acc8fd5..0000000
--- a/lib/packagekit-sharp/generated/StatusChangedHandler.cs
+++ /dev/null
@@ -1,18 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
-
- public delegate void StatusChangedHandler(object o, StatusChangedArgs args);
-
- public class StatusChangedArgs : GLib.SignalArgs {
- public PackageKit.StatusEnum Status{
- get {
- return (PackageKit.StatusEnum) Args[0];
- }
- }
-
- }
-}
diff --git a/lib/packagekit-sharp/generated/StatusEnum.cs b/lib/packagekit-sharp/generated/StatusEnum.cs
deleted file mode 100644
index 76b30e9..0000000
--- a/lib/packagekit-sharp/generated/StatusEnum.cs
+++ /dev/null
@@ -1,46 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- public enum StatusEnum {
-
- Wait,
- Setup,
- Running,
- Query,
- Info,
- Remove,
- RefreshCache,
- Download,
- Install,
- Update,
- Cleanup,
- Obsolete,
- DepResolve,
- SigCheck,
- Rollback,
- TestCommit,
- Commit,
- Request,
- Finished,
- Cancel,
- DownloadRepository,
- DownloadPackagelist,
- DownloadFilelist,
- DownloadChangelog,
- DownloadGroup,
- DownloadUpdateinfo,
- Repackaging,
- LoadingCache,
- ScanApplications,
- GeneratePackageList,
- WaitingForLock,
- Unknown,
- }
-#endregion
-}
diff --git a/lib/packagekit-sharp/generated/StatusHandler.cs b/lib/packagekit-sharp/generated/StatusHandler.cs
deleted file mode 100644
index a31fa2c..0000000
--- a/lib/packagekit-sharp/generated/StatusHandler.cs
+++ /dev/null
@@ -1,18 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
-
- public delegate void StatusHandler(object o, StatusArgs args);
-
- public class StatusArgs : GLib.SignalArgs {
- public PackageKit.ServicePackStatus Status{
- get {
- return (PackageKit.ServicePackStatus) Args[0];
- }
- }
-
- }
-}
diff --git a/lib/packagekit-sharp/generated/TaskList.cs b/lib/packagekit-sharp/generated/TaskList.cs
deleted file mode 100644
index 6590ef5..0000000
--- a/lib/packagekit-sharp/generated/TaskList.cs
+++ /dev/null
@@ -1,422 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
- using System.Collections;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- public class TaskList : GLib.Object {
-
- [Obsolete]
- protected TaskList(GLib.GType gtype) : base(gtype) {}
- public TaskList(IntPtr raw) : base(raw) {}
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_task_list_new();
-
- public TaskList () : base (IntPtr.Zero)
- {
- if (GetType () != typeof (TaskList)) {
- CreateNativeObject (new string [0], new GLib.Value[0]);
- return;
- }
- Raw = pk_task_list_new();
- }
-
- [GLib.CDeclCallback]
- delegate void ErrorCodeVMDelegate (IntPtr tlist, IntPtr client, int code, IntPtr details);
-
- static ErrorCodeVMDelegate ErrorCodeVMCallback;
-
- static void errorcode_cb (IntPtr tlist, IntPtr client, int code, IntPtr details)
- {
- try {
- TaskList tlist_managed = GLib.Object.GetObject (tlist, false) as TaskList;
- tlist_managed.OnErrorCode (GLib.Object.GetObject(client) as PackageKit.Client, (PackageKit.ErrorCodeEnum) code, GLib.Marshaller.Utf8PtrToString (details));
- } catch (Exception e) {
- GLib.ExceptionManager.RaiseUnhandledException (e, false);
- }
- }
-
- private static void OverrideErrorCode (GLib.GType gtype)
- {
- if (ErrorCodeVMCallback == null)
- ErrorCodeVMCallback = new ErrorCodeVMDelegate (errorcode_cb);
- OverrideVirtualMethod (gtype, "error-code", ErrorCodeVMCallback);
- }
-
- [GLib.DefaultSignalHandler(Type=typeof(PackageKit.TaskList), ConnectionMethod="OverrideErrorCode")]
- protected virtual void OnErrorCode (PackageKit.Client client, PackageKit.ErrorCodeEnum code, string details)
- {
- GLib.Value ret = GLib.Value.Empty;
- GLib.ValueArray inst_and_params = new GLib.ValueArray (4);
- GLib.Value[] vals = new GLib.Value [4];
- vals [0] = new GLib.Value (this);
- inst_and_params.Append (vals [0]);
- vals [1] = new GLib.Value (client);
- inst_and_params.Append (vals [1]);
- vals [2] = new GLib.Value (code);
- inst_and_params.Append (vals [2]);
- vals [3] = new GLib.Value (details);
- inst_and_params.Append (vals [3]);
- g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
- foreach (GLib.Value v in vals)
- v.Dispose ();
- }
-
- [GLib.CDeclCallback]
- delegate void ErrorCodeSignalDelegate (IntPtr arg0, IntPtr arg1, int arg2, IntPtr arg3, IntPtr gch);
-
- static void ErrorCodeSignalCallback (IntPtr arg0, IntPtr arg1, int arg2, IntPtr arg3, IntPtr gch)
- {
- PackageKit.ErrorCodeArgs args = new PackageKit.ErrorCodeArgs ();
- try {
- GLib.Signal sig = ((GCHandle) gch).Target as GLib.Signal;
- if (sig == null)
- throw new Exception("Unknown signal GC handle received " + gch);
-
- args.Args = new object[3];
- args.Args[0] = GLib.Object.GetObject(arg1) as PackageKit.Client;
- args.Args[1] = (PackageKit.ErrorCodeEnum) arg2;
- args.Args[2] = GLib.Marshaller.Utf8PtrToString (arg3);
- PackageKit.ErrorCodeHandler handler = (PackageKit.ErrorCodeHandler) sig.Handler;
- handler (GLib.Object.GetObject (arg0), args);
- } catch (Exception e) {
- GLib.ExceptionManager.RaiseUnhandledException (e, false);
- }
- }
-
- [GLib.Signal("error-code")]
- public event PackageKit.ErrorCodeHandler ErrorCode {
- add {
- GLib.Signal sig = GLib.Signal.Lookup (this, "error-code", new ErrorCodeSignalDelegate(ErrorCodeSignalCallback));
- sig.AddDelegate (value);
- }
- remove {
- GLib.Signal sig = GLib.Signal.Lookup (this, "error-code", new ErrorCodeSignalDelegate(ErrorCodeSignalCallback));
- sig.RemoveDelegate (value);
- }
- }
-
- [GLib.CDeclCallback]
- delegate void ChangedVMDelegate (IntPtr tlist);
-
- static ChangedVMDelegate ChangedVMCallback;
-
- static void changed_cb (IntPtr tlist)
- {
- try {
- TaskList tlist_managed = GLib.Object.GetObject (tlist, false) as TaskList;
- tlist_managed.OnChanged ();
- } catch (Exception e) {
- GLib.ExceptionManager.RaiseUnhandledException (e, false);
- }
- }
-
- private static void OverrideChanged (GLib.GType gtype)
- {
- if (ChangedVMCallback == null)
- ChangedVMCallback = new ChangedVMDelegate (changed_cb);
- OverrideVirtualMethod (gtype, "changed", ChangedVMCallback);
- }
-
- [GLib.DefaultSignalHandler(Type=typeof(PackageKit.TaskList), ConnectionMethod="OverrideChanged")]
- protected virtual void OnChanged ()
- {
- GLib.Value ret = GLib.Value.Empty;
- GLib.ValueArray inst_and_params = new GLib.ValueArray (1);
- GLib.Value[] vals = new GLib.Value [1];
- vals [0] = new GLib.Value (this);
- inst_and_params.Append (vals [0]);
- g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
- foreach (GLib.Value v in vals)
- v.Dispose ();
- }
-
- [GLib.Signal("changed")]
- public event System.EventHandler Changed {
- add {
- GLib.Signal sig = GLib.Signal.Lookup (this, "changed");
- sig.AddDelegate (value);
- }
- remove {
- GLib.Signal sig = GLib.Signal.Lookup (this, "changed");
- sig.RemoveDelegate (value);
- }
- }
-
- [GLib.CDeclCallback]
- delegate void StatusChangedVMDelegate (IntPtr tlist);
-
- static StatusChangedVMDelegate StatusChangedVMCallback;
-
- static void statuschanged_cb (IntPtr tlist)
- {
- try {
- TaskList tlist_managed = GLib.Object.GetObject (tlist, false) as TaskList;
- tlist_managed.OnStatusChanged ();
- } catch (Exception e) {
- GLib.ExceptionManager.RaiseUnhandledException (e, false);
- }
- }
-
- private static void OverrideStatusChanged (GLib.GType gtype)
- {
- if (StatusChangedVMCallback == null)
- StatusChangedVMCallback = new StatusChangedVMDelegate (statuschanged_cb);
- OverrideVirtualMethod (gtype, "status-changed", StatusChangedVMCallback);
- }
-
- [GLib.DefaultSignalHandler(Type=typeof(PackageKit.TaskList), ConnectionMethod="OverrideStatusChanged")]
- protected virtual void OnStatusChanged ()
- {
- GLib.Value ret = GLib.Value.Empty;
- GLib.ValueArray inst_and_params = new GLib.ValueArray (1);
- GLib.Value[] vals = new GLib.Value [1];
- vals [0] = new GLib.Value (this);
- inst_and_params.Append (vals [0]);
- g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
- foreach (GLib.Value v in vals)
- v.Dispose ();
- }
-
- [GLib.Signal("status-changed")]
- public event System.EventHandler StatusChanged {
- add {
- GLib.Signal sig = GLib.Signal.Lookup (this, "status-changed");
- sig.AddDelegate (value);
- }
- remove {
- GLib.Signal sig = GLib.Signal.Lookup (this, "status-changed");
- sig.RemoveDelegate (value);
- }
- }
-
- [GLib.CDeclCallback]
- delegate void MessageVMDelegate (IntPtr tlist, IntPtr client, int message, IntPtr details);
-
- static MessageVMDelegate MessageVMCallback;
-
- static void message_cb (IntPtr tlist, IntPtr client, int message, IntPtr details)
- {
- try {
- TaskList tlist_managed = GLib.Object.GetObject (tlist, false) as TaskList;
- tlist_managed.OnMessage (GLib.Object.GetObject(client) as PackageKit.Client, (PackageKit.MessageEnum) message, GLib.Marshaller.Utf8PtrToString (details));
- } catch (Exception e) {
- GLib.ExceptionManager.RaiseUnhandledException (e, false);
- }
- }
-
- private static void OverrideMessage (GLib.GType gtype)
- {
- if (MessageVMCallback == null)
- MessageVMCallback = new MessageVMDelegate (message_cb);
- OverrideVirtualMethod (gtype, "message", MessageVMCallback);
- }
-
- [GLib.DefaultSignalHandler(Type=typeof(PackageKit.TaskList), ConnectionMethod="OverrideMessage")]
- protected virtual void OnMessage (PackageKit.Client client, PackageKit.MessageEnum message, string details)
- {
- GLib.Value ret = GLib.Value.Empty;
- GLib.ValueArray inst_and_params = new GLib.ValueArray (4);
- GLib.Value[] vals = new GLib.Value [4];
- vals [0] = new GLib.Value (this);
- inst_and_params.Append (vals [0]);
- vals [1] = new GLib.Value (client);
- inst_and_params.Append (vals [1]);
- vals [2] = new GLib.Value (message);
- inst_and_params.Append (vals [2]);
- vals [3] = new GLib.Value (details);
- inst_and_params.Append (vals [3]);
- g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
- foreach (GLib.Value v in vals)
- v.Dispose ();
- }
-
- [GLib.CDeclCallback]
- delegate void MessageSignalDelegate (IntPtr arg0, IntPtr arg1, int arg2, IntPtr arg3, IntPtr gch);
-
- static void MessageSignalCallback (IntPtr arg0, IntPtr arg1, int arg2, IntPtr arg3, IntPtr gch)
- {
- PackageKit.MessageArgs args = new PackageKit.MessageArgs ();
- try {
- GLib.Signal sig = ((GCHandle) gch).Target as GLib.Signal;
- if (sig == null)
- throw new Exception("Unknown signal GC handle received " + gch);
-
- args.Args = new object[3];
- args.Args[0] = GLib.Object.GetObject(arg1) as PackageKit.Client;
- args.Args[1] = (PackageKit.MessageEnum) arg2;
- args.Args[2] = GLib.Marshaller.Utf8PtrToString (arg3);
- PackageKit.MessageHandler handler = (PackageKit.MessageHandler) sig.Handler;
- handler (GLib.Object.GetObject (arg0), args);
- } catch (Exception e) {
- GLib.ExceptionManager.RaiseUnhandledException (e, false);
- }
- }
-
- [GLib.Signal("message")]
- public event PackageKit.MessageHandler Message {
- add {
- GLib.Signal sig = GLib.Signal.Lookup (this, "message", new MessageSignalDelegate(MessageSignalCallback));
- sig.AddDelegate (value);
- }
- remove {
- GLib.Signal sig = GLib.Signal.Lookup (this, "message", new MessageSignalDelegate(MessageSignalCallback));
- sig.RemoveDelegate (value);
- }
- }
-
- [GLib.CDeclCallback]
- delegate void FinishedVMDelegate (IntPtr tlist, IntPtr client, int exit, uint runtime);
-
- static FinishedVMDelegate FinishedVMCallback;
-
- static void finished_cb (IntPtr tlist, IntPtr client, int exit, uint runtime)
- {
- try {
- TaskList tlist_managed = GLib.Object.GetObject (tlist, false) as TaskList;
- tlist_managed.OnFinished (GLib.Object.GetObject(client) as PackageKit.Client, (PackageKit.ExitEnum) exit, runtime);
- } catch (Exception e) {
- GLib.ExceptionManager.RaiseUnhandledException (e, false);
- }
- }
-
- private static void OverrideFinished (GLib.GType gtype)
- {
- if (FinishedVMCallback == null)
- FinishedVMCallback = new FinishedVMDelegate (finished_cb);
- OverrideVirtualMethod (gtype, "finished", FinishedVMCallback);
- }
-
- [GLib.DefaultSignalHandler(Type=typeof(PackageKit.TaskList), ConnectionMethod="OverrideFinished")]
- protected virtual void OnFinished (PackageKit.Client client, PackageKit.ExitEnum exit, uint runtime)
- {
- GLib.Value ret = GLib.Value.Empty;
- GLib.ValueArray inst_and_params = new GLib.ValueArray (4);
- GLib.Value[] vals = new GLib.Value [4];
- vals [0] = new GLib.Value (this);
- inst_and_params.Append (vals [0]);
- vals [1] = new GLib.Value (client);
- inst_and_params.Append (vals [1]);
- vals [2] = new GLib.Value (exit);
- inst_and_params.Append (vals [2]);
- vals [3] = new GLib.Value (runtime);
- inst_and_params.Append (vals [3]);
- g_signal_chain_from_overridden (inst_and_params.ArrayPtr, ref ret);
- foreach (GLib.Value v in vals)
- v.Dispose ();
- }
-
- [GLib.CDeclCallback]
- delegate void FinishedSignalDelegate (IntPtr arg0, IntPtr arg1, int arg2, uint arg3, IntPtr gch);
-
- static void FinishedSignalCallback (IntPtr arg0, IntPtr arg1, int arg2, uint arg3, IntPtr gch)
- {
- PackageKit.FinishedArgs args = new PackageKit.FinishedArgs ();
- try {
- GLib.Signal sig = ((GCHandle) gch).Target as GLib.Signal;
- if (sig == null)
- throw new Exception("Unknown signal GC handle received " + gch);
-
- args.Args = new object[3];
- args.Args[0] = GLib.Object.GetObject(arg1) as PackageKit.Client;
- args.Args[1] = (PackageKit.ExitEnum) arg2;
- args.Args[2] = arg3;
- PackageKit.FinishedHandler handler = (PackageKit.FinishedHandler) sig.Handler;
- handler (GLib.Object.GetObject (arg0), args);
- } catch (Exception e) {
- GLib.ExceptionManager.RaiseUnhandledException (e, false);
- }
- }
-
- [GLib.Signal("finished")]
- public event PackageKit.FinishedHandler Finished {
- add {
- GLib.Signal sig = GLib.Signal.Lookup (this, "finished", new FinishedSignalDelegate(FinishedSignalCallback));
- sig.AddDelegate (value);
- }
- remove {
- GLib.Signal sig = GLib.Signal.Lookup (this, "finished", new FinishedSignalDelegate(FinishedSignalCallback));
- sig.RemoveDelegate (value);
- }
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern bool pk_task_list_contains_role(IntPtr raw, int role);
-
- public bool ContainsRole(PackageKit.RoleEnum role) {
- bool raw_ret = pk_task_list_contains_role(Handle, (int) role);
- bool ret = raw_ret;
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_task_list_get_item(IntPtr raw, uint item);
-
- public PackageKit.TaskListItem GetItem(uint item) {
- IntPtr raw_ret = pk_task_list_get_item(Handle, item);
- PackageKit.TaskListItem ret = PackageKit.TaskListItem.New (raw_ret);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern uint pk_task_list_get_size(IntPtr raw);
-
- public uint Size {
- get {
- uint raw_ret = pk_task_list_get_size(Handle);
- uint ret = raw_ret;
- return ret;
- }
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern bool pk_task_list_free(IntPtr raw);
-
- public bool Free() {
- bool raw_ret = pk_task_list_free(Handle);
- bool ret = raw_ret;
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_task_list_get_type();
-
- public static new GLib.GType GType {
- get {
- IntPtr raw_ret = pk_task_list_get_type();
- GLib.GType ret = new GLib.GType(raw_ret);
- return ret;
- }
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern bool pk_task_list_refresh(IntPtr raw);
-
- public bool Refresh() {
- bool raw_ret = pk_task_list_refresh(Handle);
- bool ret = raw_ret;
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern bool pk_task_list_print(IntPtr raw);
-
- public bool Print() {
- bool raw_ret = pk_task_list_print(Handle);
- bool ret = raw_ret;
- return ret;
- }
-
-
- static TaskList ()
- {
- GtkSharp.PackagekitSharp.ObjectManager.Initialize ();
- }
-#endregion
- }
-}
diff --git a/lib/packagekit-sharp/generated/TaskListItem.cs b/lib/packagekit-sharp/generated/TaskListItem.cs
deleted file mode 100644
index 8cab59e..0000000
--- a/lib/packagekit-sharp/generated/TaskListItem.cs
+++ /dev/null
@@ -1,42 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
- using System.Collections;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- [StructLayout(LayoutKind.Sequential)]
- public struct TaskListItem {
-
- public string Tid;
- public PackageKit.StatusEnum Status;
- public PackageKit.RoleEnum Role;
- public string Text;
- private IntPtr _monitor;
- public PackageKit.Client Monitor {
- get {
- return GLib.Object.GetObject(_monitor) as PackageKit.Client;
- }
- set {
- _monitor = value == null ? IntPtr.Zero : value.Handle;
- }
- }
- public bool Valid;
-
- public static PackageKit.TaskListItem Zero = new PackageKit.TaskListItem ();
-
- public static PackageKit.TaskListItem New(IntPtr raw) {
- if (raw == IntPtr.Zero)
- return PackageKit.TaskListItem.Zero;
- return (PackageKit.TaskListItem) Marshal.PtrToStructure (raw, typeof (PackageKit.TaskListItem));
- }
-
- private static GLib.GType GType {
- get { return GLib.GType.Pointer; }
- }
-#endregion
- }
-}
diff --git a/lib/packagekit-sharp/generated/TransactionHandler.cs b/lib/packagekit-sharp/generated/TransactionHandler.cs
deleted file mode 100644
index c8eb8cd..0000000
--- a/lib/packagekit-sharp/generated/TransactionHandler.cs
+++ /dev/null
@@ -1,18 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
-
- public delegate void TransactionHandler(object o, TransactionArgs args);
-
- public class TransactionArgs : GLib.SignalArgs {
- public PackageKit.TransactionObj Obj{
- get {
- return (PackageKit.TransactionObj) Args[0];
- }
- }
-
- }
-}
diff --git a/lib/packagekit-sharp/generated/TransactionObj.cs b/lib/packagekit-sharp/generated/TransactionObj.cs
deleted file mode 100644
index f92b766..0000000
--- a/lib/packagekit-sharp/generated/TransactionObj.cs
+++ /dev/null
@@ -1,59 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
- using System.Collections;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- public class TransactionObj : GLib.Opaque {
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_transaction_obj_copy(IntPtr raw);
-
- public PackageKit.TransactionObj Copy() {
- IntPtr raw_ret = pk_transaction_obj_copy(Handle);
- PackageKit.TransactionObj ret = raw_ret == IntPtr.Zero ? null : (PackageKit.TransactionObj) GLib.Opaque.GetOpaque (raw_ret, typeof (PackageKit.TransactionObj), true);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern bool pk_transaction_obj_free(IntPtr raw);
-
- public bool Free() {
- bool raw_ret = pk_transaction_obj_free(Handle);
- bool ret = raw_ret;
- return ret;
- }
-
- public TransactionObj(IntPtr raw) : base(raw) {}
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_transaction_obj_new();
-
- public TransactionObj ()
- {
- Raw = pk_transaction_obj_new();
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_transaction_obj_new_from_data(IntPtr tid, IntPtr timespec, bool succeeded, int role, uint duration, IntPtr data, uint uid, IntPtr cmdline);
-
- public TransactionObj (string tid, string timespec, bool succeeded, PackageKit.RoleEnum role, uint duration, string data, uint uid, string cmdline)
- {
- IntPtr native_tid = GLib.Marshaller.StringToPtrGStrdup (tid);
- IntPtr native_timespec = GLib.Marshaller.StringToPtrGStrdup (timespec);
- IntPtr native_data = GLib.Marshaller.StringToPtrGStrdup (data);
- IntPtr native_cmdline = GLib.Marshaller.StringToPtrGStrdup (cmdline);
- Raw = pk_transaction_obj_new_from_data(native_tid, native_timespec, succeeded, (int) role, duration, native_data, uid, native_cmdline);
- GLib.Marshaller.Free (native_tid);
- GLib.Marshaller.Free (native_timespec);
- GLib.Marshaller.Free (native_data);
- GLib.Marshaller.Free (native_cmdline);
- }
-
-#endregion
- }
-}
diff --git a/lib/packagekit-sharp/generated/Update.cs b/lib/packagekit-sharp/generated/Update.cs
deleted file mode 100644
index dd73310..0000000
--- a/lib/packagekit-sharp/generated/Update.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- public class Update {
-
- [DllImport("libpackagekit-glib.dll")]
- static extern int pk_update_state_enum_from_text(IntPtr update_state);
-
- public static PackageKit.UpdateStateEnum StateEnumFromText(string update_state) {
- IntPtr native_update_state = GLib.Marshaller.StringToPtrGStrdup (update_state);
- int raw_ret = pk_update_state_enum_from_text(native_update_state);
- PackageKit.UpdateStateEnum ret = (PackageKit.UpdateStateEnum) raw_ret;
- GLib.Marshaller.Free (native_update_state);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_update_state_enum_to_text(int update_state);
-
- public static string StateEnumToText(PackageKit.UpdateStateEnum update_state) {
- IntPtr raw_ret = pk_update_state_enum_to_text((int) update_state);
- string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
- return ret;
- }
-
-#endregion
- }
-}
diff --git a/lib/packagekit-sharp/generated/UpdateDetailHandler.cs b/lib/packagekit-sharp/generated/UpdateDetailHandler.cs
deleted file mode 100644
index 3d60d0b..0000000
--- a/lib/packagekit-sharp/generated/UpdateDetailHandler.cs
+++ /dev/null
@@ -1,18 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
-
- public delegate void UpdateDetailHandler(object o, UpdateDetailArgs args);
-
- public class UpdateDetailArgs : GLib.SignalArgs {
- public PackageKit.UpdateDetailObj UpdateDetail{
- get {
- return (PackageKit.UpdateDetailObj) Args[0];
- }
- }
-
- }
-}
diff --git a/lib/packagekit-sharp/generated/UpdateDetailObj.cs b/lib/packagekit-sharp/generated/UpdateDetailObj.cs
deleted file mode 100644
index edacf3a..0000000
--- a/lib/packagekit-sharp/generated/UpdateDetailObj.cs
+++ /dev/null
@@ -1,43 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
- using System.Collections;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- public class UpdateDetailObj : GLib.Opaque {
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_update_detail_obj_copy(IntPtr raw);
-
- public PackageKit.UpdateDetailObj Copy() {
- IntPtr raw_ret = pk_update_detail_obj_copy(Handle);
- PackageKit.UpdateDetailObj ret = raw_ret == IntPtr.Zero ? null : (PackageKit.UpdateDetailObj) GLib.Opaque.GetOpaque (raw_ret, typeof (PackageKit.UpdateDetailObj), true);
- return ret;
- }
-
- [DllImport("libpackagekit-glib.dll")]
- static extern bool pk_update_detail_obj_free(IntPtr raw);
-
- public bool Free() {
- bool raw_ret = pk_update_detail_obj_free(Handle);
- bool ret = raw_ret;
- return ret;
- }
-
- public UpdateDetailObj(IntPtr raw) : base(raw) {}
-
- [DllImport("libpackagekit-glib.dll")]
- static extern IntPtr pk_update_detail_obj_new();
-
- public UpdateDetailObj ()
- {
- Raw = pk_update_detail_obj_new();
- }
-
-#endregion
- }
-}
diff --git a/lib/packagekit-sharp/generated/UpdateStateEnum.cs b/lib/packagekit-sharp/generated/UpdateStateEnum.cs
deleted file mode 100644
index 865ceb4..0000000
--- a/lib/packagekit-sharp/generated/UpdateStateEnum.cs
+++ /dev/null
@@ -1,18 +0,0 @@
-// This file was generated by the Gtk# code generator.
-// Any changes made will be lost if regenerated.
-
-namespace PackageKit {
-
- using System;
- using System.Runtime.InteropServices;
-
-#region Autogenerated code
- public enum UpdateStateEnum {
-
- Stable,
- Unstable,
- Testing,
- Unknown,
- }
-#endregion
-}
commit c316aefa7c7611ef9065dc21456214e3a319c4bd
Author: Richard Hughes <richard at hughsie.com>
Date: Tue Feb 24 13:38:17 2009 +0000
trivial: reduce the verboseness of PkTime
diff --git a/src/pk-time.c b/src/pk-time.c
index 4a1412f..57663bf 100644
--- a/src/pk-time.c
+++ b/src/pk-time.c
@@ -168,7 +168,7 @@ pk_time_get_remaining (PkTime *self)
item_prev = g_ptr_array_index (self->priv->array, i-1);
item = g_ptr_array_index (self->priv->array, i);
grad = pk_time_get_gradient (item, item_prev);
- egg_debug ("gradient between %i/%i=%f", i-1, i, grad);
+// egg_debug ("gradient between %i/%i=%f", i-1, i, grad);
if (grad < 0.00001 || grad > 100) {
egg_debug ("ignoring gradient: %f", grad);
} else {
commit 9e0c9ad1bbf3b67a7bf90dfe7e3b2f1fc2b1f598
Author: Richard Hughes <richard at hughsie.com>
Date: Tue Feb 24 13:25:47 2009 +0000
yum: do proper error handling to avoid exiting the script on correctable errors. This speeds up untrusted file installs by over a second.
diff --git a/backends/yum/yumBackend.py b/backends/yum/yumBackend.py
index 47ffc5c..b6f7e69 100755
--- a/backends/yum/yumBackend.py
+++ b/backends/yum/yumBackend.py
@@ -210,7 +210,10 @@ class PackageKitYumBackend(PackageKitBaseBackend, PackagekitPackage):
# this is global so we can catch sigquit and closedown
yumbase = self.yumbase
- self._setup_yum()
+ try:
+ self._setup_yum()
+ except PkError, e:
+ self.error(e.code, e.details)
def percentage(self, percent=None):
'''
@@ -342,16 +345,16 @@ class PackageKitYumBackend(PackageKitBaseBackend, PackagekitPackage):
else:
available.append(pkg)
except yum.Errors.RepoError, e:
- self.error(ERROR_NO_CACHE, _to_unicode(e))
+ raise PkError(ERROR_NO_CACHE, _to_unicode(e))
except Exception, e:
- self.error(ERROR_INTERNAL_ERROR, _format_str(traceback.format_exc()))
+ raise PkError(ERROR_INTERNAL_ERROR, _format_str(traceback.format_exc()))
else:
pkgfilter.add_installed(installed)
pkgfilter.add_available(available)
- # we couldn't do this when generating the list
- package_list = pkgfilter.post_process()
- self._show_package_list(package_list)
+ # we couldn't do this when generating the list
+ package_list = pkgfilter.post_process()
+ self._show_package_list(package_list)
def _show_package_list(self, lst):
for (pkg, status) in lst:
@@ -372,8 +375,10 @@ class PackageKitYumBackend(PackageKitBaseBackend, PackagekitPackage):
self.yumbase.doConfigSetup(errorlevel=0, debuglevel=0)# Setup Yum Config
except Exception, e:
self.error(ERROR_INTERNAL_ERROR, _format_str(traceback.format_exc()))
- self._do_search(searchlist, filters, key)
-
+ try:
+ self._do_search(searchlist, filters, key)
+ except PkError, e:
+ self.error(e.code, e.details, exit=False)
def search_details(self, filters, key):
'''
Implement the {backend}-search-details functionality
@@ -389,7 +394,10 @@ class PackageKitYumBackend(PackageKitBaseBackend, PackagekitPackage):
searchlist = ['name', 'summary', 'description', 'group']
self.status(STATUS_QUERY)
- self._do_search(searchlist, filters, key)
+ try:
+ self._do_search(searchlist, filters, key)
+ except PkError, e:
+ self.error(e.code, e.details, exit=False)
def _get_installed_from_names(self, name_list):
found = []
@@ -397,8 +405,9 @@ class PackageKitYumBackend(PackageKitBaseBackend, PackagekitPackage):
try:
pkgs = self.yumbase.rpmdb.searchNevra(name=package)
except Exception, e:
- self.error(ERROR_INTERNAL_ERROR, _format_str(traceback.format_exc()))
- found.extend(pkgs)
+ raise PkError(ERROR_INTERNAL_ERROR, _format_str(traceback.format_exc()))
+ else:
+ found.extend(pkgs)
return found
def _get_available_from_names(self, name_list):
@@ -406,9 +415,9 @@ class PackageKitYumBackend(PackageKitBaseBackend, PackagekitPackage):
try:
pkgs = self.yumbase.pkgSack.searchNames(names=name_list)
except yum.Errors.RepoError, e:
- self.error(ERROR_NO_CACHE, _to_unicode(e))
+ raise PkError(ERROR_NO_CACHE, _to_unicode(e))
except Exception, e:
- self.error(ERROR_INTERNAL_ERROR, _format_str(traceback.format_exc()))
+ raise PkError(ERROR_INTERNAL_ERROR, _format_str(traceback.format_exc()))
return pkgs
def _handle_newest(self, fltlist):
@@ -422,30 +431,30 @@ class PackageKitYumBackend(PackageKitBaseBackend, PackagekitPackage):
ygl = self.yumbase.doPackageLists(pkgnarrow='recent')
pkgs.extend(ygl.recent)
except yum.Errors.RepoError, e:
- self.error(ERROR_REPO_NOT_AVAILABLE, _to_unicode(e))
+ raise PkError(ERROR_REPO_NOT_AVAILABLE, _to_unicode(e))
except exceptions.IOError, e:
- self.error(ERROR_NO_SPACE_ON_DEVICE, _to_unicode(e))
+ raise PkError(ERROR_NO_SPACE_ON_DEVICE, _to_unicode(e))
except Exception, e:
- self.error(ERROR_INTERNAL_ERROR, _format_str(traceback.format_exc()))
-
- installed = []
- available = []
- for pkg in pkgs:
- try:
- instpo = self.yumbase.rpmdb.searchNevra(name=pkg.name, epoch=pkg.epoch, ver=pkg.ver, rel=pkg.rel, arch=pkg.arch)
- except Exception, e:
- self.error(ERROR_INTERNAL_ERROR, _format_str(traceback.format_exc()))
- if len(instpo) > 0:
- installed.append(instpo[0])
- else:
- available.append(pkg)
+ raise PkError(ERROR_INTERNAL_ERROR, _format_str(traceback.format_exc()))
+ else:
+ installed = []
+ available = []
+ for pkg in pkgs:
+ try:
+ instpo = self.yumbase.rpmdb.searchNevra(name=pkg.name, epoch=pkg.epoch, ver=pkg.ver, rel=pkg.rel, arch=pkg.arch)
+ except Exception, e:
+ raise PkError(ERROR_INTERNAL_ERROR, _format_str(traceback.format_exc()))
+ if len(instpo) > 0:
+ installed.append(instpo[0])
+ else:
+ available.append(pkg)
- # add list to filter
- pkgfilter.add_installed(installed)
- pkgfilter.add_available(available)
- package_list = pkgfilter.post_process()
- self._show_package_list(package_list)
- self.percentage(100)
+ # add list to filter
+ pkgfilter.add_installed(installed)
+ pkgfilter.add_available(available)
+ package_list = pkgfilter.post_process()
+ self._show_package_list(package_list)
+ self.percentage(100)
def _handle_collections(self, fltlist):
"""
@@ -455,7 +464,7 @@ class PackageKitYumBackend(PackageKitBaseBackend, PackagekitPackage):
self.percentage(None)
collections = self.comps.get_meta_packages()
if len(collections) == 0:
- self.error(ERROR_GROUP_LIST_INVALID, 'No groups could be found. A cache refresh should fix this.')
+ raise PkError(ERROR_GROUP_LIST_INVALID, 'No groups could be found. A cache refresh should fix this.')
pct = 20
old_pct = -1
@@ -475,11 +484,11 @@ class PackageKitYumBackend(PackageKitBaseBackend, PackagekitPackage):
try:
grp = self.yumbase.comps.return_group(grpid)
except yum.Errors.RepoError, e:
- self.error(ERROR_NO_CACHE, _to_unicode(e))
+ raise PkError(ERROR_NO_CACHE, _to_unicode(e))
except yum.Errors.GroupsError, e:
- self.error(ERROR_GROUP_NOT_FOUND, _to_unicode(e))
+ raise PkError(ERROR_GROUP_NOT_FOUND, _to_unicode(e))
except Exception, e:
- self.error(ERROR_INTERNAL_ERROR, _format_str(traceback.format_exc()))
+ raise PkError(ERROR_INTERNAL_ERROR, _format_str(traceback.format_exc()))
else:
if grp:
name = grp.nameByLang(self.lang)
@@ -508,12 +517,18 @@ class PackageKitYumBackend(PackageKitBaseBackend, PackagekitPackage):
# handle collections
if group_key == GROUP_COLLECTIONS:
- self._handle_collections(fltlist)
+ try:
+ self._handle_collections(fltlist)
+ except PkError, e:
+ self.error(e.code, e.details, exit=False)
return
# handle newest packages
if group_key == GROUP_NEWEST:
- self._handle_newest(fltlist)
+ try:
+ self._handle_newest(fltlist)
+ except PkError, e:
+ self.error(e.code, e.details, exit=False)
return
# handle dynamic groups (yum comps group)
@@ -531,12 +546,20 @@ class PackageKitYumBackend(PackageKitBaseBackend, PackagekitPackage):
# get installed packages
self.percentage(10)
- pkgfilter.add_installed(self._get_installed_from_names(all_packages))
+ try:
+ pkgfilter.add_installed(self._get_installed_from_names(all_packages))
+ except PkError, e:
+ self.error(e.code, e.details, exit=False)
+ return
# get available packages
self.percentage(20)
if FILTER_INSTALLED not in fltlist:
- pkgfilter.add_available(self._get_available_from_names(all_packages))
+ try:
+ pkgfilter.add_available(self._get_available_from_names(all_packages))
+ except PkError, e:
+ self.error(e.code, e.details, exit=False)
+ return
# we couldn't do this when generating the list
package_list = pkgfilter.post_process()
@@ -577,7 +600,8 @@ class PackageKitYumBackend(PackageKitBaseBackend, PackagekitPackage):
try:
pkgs = self.yumbase.pkgSack
except yum.Errors.RepoError, e:
- self.error(ERROR_NO_CACHE, _to_unicode(e))
+ self.error(ERROR_NO_CACHE, _to_unicode(e), exit=False)
+ return
except Exception, e:
self.error(ERROR_INTERNAL_ERROR, _format_str(traceback.format_exc()))
else:
@@ -615,7 +639,8 @@ class PackageKitYumBackend(PackageKitBaseBackend, PackagekitPackage):
self.yumbase.repos.populateSack(mdtype='filelists')
pkgs = self.yumbase.pkgSack.searchFiles(key)
except yum.Errors.RepoError, e:
- self.error(ERROR_NO_CACHE, _to_unicode(e))
+ self.error(ERROR_NO_CACHE, _to_unicode(e), exit=False)
+ return
except Exception, e:
self.error(ERROR_INTERNAL_ERROR, _format_str(traceback.format_exc()))
else:
@@ -652,7 +677,8 @@ class PackageKitYumBackend(PackageKitBaseBackend, PackagekitPackage):
elif provides_type == PROVIDES_MIMETYPE:
provide = "mimehandler(%s)" % search
else:
- self.error(ERROR_NOT_SUPPORTED, "this backend does not support %s provides" % provides_type)
+ self.error(ERROR_NOT_SUPPORTED, "this backend does not support %s provides" % provides_type, exit=False)
+ return
# Check installed for file
try:
@@ -666,7 +692,8 @@ class PackageKitYumBackend(PackageKitBaseBackend, PackagekitPackage):
try:
pkgs = self.yumbase.pkgSack.searchProvides(provide)
except yum.Errors.RepoError, e:
- self.error(ERROR_NO_CACHE, _to_unicode(e))
+ self.error(ERROR_NO_CACHE, _to_unicode(e), exit=False)
+ return
except Exception, e:
self.error(ERROR_INTERNAL_ERROR, _format_str(traceback.format_exc()))
else:
@@ -686,26 +713,27 @@ class PackageKitYumBackend(PackageKitBaseBackend, PackagekitPackage):
try:
cats = self.yumbase.comps.categories
except yum.Errors.RepoError, e:
- self.error(ERROR_NO_CACHE, _to_unicode(e))
+ self.error(ERROR_NO_CACHE, _to_unicode(e), exit=False)
except Exception, e:
self.error(ERROR_INTERNAL_ERROR, _format_str(traceback.format_exc()))
-
- if len(cats) == 0:
- self.error(ERROR_GROUP_LIST_INVALID, "no comps categories")
- for cat in cats:
- cat_id = cat.categoryid
- # yum >= 3.2.10
- # name = cat.nameByLang(self.lang)
- # summary = cat.descriptionByLang(self.lang)
- name = cat.name
- summary = cat.description
- fn = "/usr/share/pixmaps/comps/%s.png" % cat_id
- if os.access(fn, os.R_OK):
- icon = cat_id
- else:
- icon = "image-missing"
- self.category("", cat_id, name, summary, icon)
- self._get_groups(cat_id)
+ else:
+ if len(cats) == 0:
+ self.error(ERROR_GROUP_LIST_INVALID, "no comps categories", exit=False)
+ return
+ for cat in cats:
+ cat_id = cat.categoryid
+ # yum >= 3.2.10
+ # name = cat.nameByLang(self.lang)
+ # summary = cat.descriptionByLang(self.lang)
+ name = cat.name
+ summary = cat.description
+ fn = "/usr/share/pixmaps/comps/%s.png" % cat_id
+ if os.access(fn, os.R_OK):
+ icon = cat_id
+ else:
+ icon = "image-missing"
+ self.category("", cat_id, name, summary, icon)
+ self._get_groups(cat_id)
def _get_groups(self, cat_id):
'''
@@ -745,7 +773,11 @@ class PackageKitYumBackend(PackageKitBaseBackend, PackagekitPackage):
'''
Implement the {backend}-download-packages functionality
'''
- self._check_init()
+ try:
+ self._check_init()
+ except PkError, e:
+ self.error(e.code, e.details, exit=False)
+ return
self.yumbase.conf.cache = 0 # Allow new files
self.allow_cancel(True)
self.status(STATUS_DOWNLOAD)
@@ -766,7 +798,8 @@ class PackageKitYumBackend(PackageKitBaseBackend, PackagekitPackage):
try:
packs = self.yumbase.pkgSack.searchNevra(n, e, v, r, a)
except yum.Errors.RepoError, e:
- self.error(ERROR_NO_CACHE, _to_unicode(e))
+ self.error(ERROR_NO_CACHE, _to_unicode(e), exit=False)
+ return
except Exception, e:
self.error(ERROR_INTERNAL_ERROR, _format_str(traceback.format_exc()))
@@ -785,11 +818,12 @@ class PackageKitYumBackend(PackageKitBaseBackend, PackagekitPackage):
remote = pkg_download.returnSimple('relativepath')
local = os.path.basename(remote)
if not os.path.exists(directory):
- self.error(ERROR_PACKAGE_DOWNLOAD_FAILED, "No destination directory exists")
+ self.error(ERROR_PACKAGE_DOWNLOAD_FAILED, "No destination directory exists", exit=False)
+ return
local = os.path.join(directory, local)
if (os.path.exists(local) and os.path.getsize(local) == int(pkg_download.returnSimple('packagesize'))):
- self.error(ERROR_PACKAGE_DOWNLOAD_FAILED, "Package already exists")
- continue
+ self.error(ERROR_PACKAGE_DOWNLOAD_FAILED, "Package already exists", exit=False)
+ return
# Disable cache otherwise things won't download
repo.cache = 0
pkg_download.localpath = local #Hack:To set the localpath we want
@@ -797,8 +831,8 @@ class PackageKitYumBackend(PackageKitBaseBackend, PackagekitPackage):
path = repo.getPackage(pkg_download)
files.append(path)
except IOError, e:
- self.error(ERROR_PACKAGE_DOWNLOAD_FAILED, "Cannot write to file")
- continue
+ self.error(ERROR_PACKAGE_DOWNLOAD_FAILED, "Cannot write to file", exit=False)
+ return
percentage += bump
# emit the file list we downloaded
@@ -1270,13 +1304,17 @@ class PackageKitYumBackend(PackageKitBaseBackend, PackagekitPackage):
try:
txmbr = self.yumbase.update() # Add all updates to Transaction
except yum.Errors.RepoError, e:
- self.error(ERROR_REPO_NOT_AVAILABLE, _to_unicode(e))
+ self.error(ERROR_REPO_NOT_AVAILABLE, _to_unicode(e), exit=False)
except Exception, e:
self.error(ERROR_INTERNAL_ERROR, _format_str(traceback.format_exc()))
- if txmbr:
- self._runYumTransaction(allow_skip_broken=True)
else:
- self.error(ERROR_NO_PACKAGES_TO_UPDATE, "Nothing to do")
+ if txmbr:
+ try:
+ self._runYumTransaction(allow_skip_broken=True)
+ except PkError, e:
+ self.error(e.code, e.details, exit=False)
+ else:
+ self.error(ERROR_NO_PACKAGES_TO_UPDATE, "Nothing to do")
self.yumbase.conf.throttle = old_throttle
@@ -1290,7 +1328,8 @@ class PackageKitYumBackend(PackageKitBaseBackend, PackagekitPackage):
# we are working offline
if not self.has_network:
- self.error(ERROR_NO_NETWORK, "cannot refresh cache when offline")
+ self.error(ERROR_NO_NETWORK, "cannot refresh cache when offline", exit=False)
+ return
pct = 0
try:
@@ -1322,16 +1361,16 @@ class PackageKitYumBackend(PackageKitBaseBackend, PackagekitPackage):
except yum.Errors.RepoError, e:
message = _format_msgs(e.value)
if message.find ("No more mirrors to try") != -1:
- self.error(ERROR_NO_MORE_MIRRORS_TO_TRY, message)
+ self.error(ERROR_NO_MORE_MIRRORS_TO_TRY, message, exit=False)
else:
- self.error(ERROR_REPO_CONFIGURATION_ERROR, message)
+ self.error(ERROR_REPO_CONFIGURATION_ERROR, message, exit=False)
except yum.Errors.YumBaseError, e:
self.error(ERROR_UNKNOWN, "cannot refresh cache: %s" % _to_unicode(e))
except Exception, e:
self.error(ERROR_INTERNAL_ERROR, _format_str(traceback.format_exc()))
-
- # update the comps groups too
- self.comps.refresh()
+ else:
+ # update the comps groups too
+ self.comps.refresh()
def resolve(self, filters, packages):
'''
@@ -1362,7 +1401,8 @@ class PackageKitYumBackend(PackageKitBaseBackend, PackagekitPackage):
try:
pkgs = self.yumbase.pkgSack.returnNewestByNameArch()
except yum.Errors.RepoError, e:
- self.error(ERROR_NO_CACHE, _to_unicode(e))
+ self.error(ERROR_NO_CACHE, _to_unicode(e), exit=False)
+ return
except Exception, e:
self.error(ERROR_INTERNAL_ERROR, _format_str(traceback.format_exc()))
else:
@@ -1381,7 +1421,11 @@ class PackageKitYumBackend(PackageKitBaseBackend, PackagekitPackage):
Implement the {backend}-install-packages functionality
This will only work with yum 3.2.4 or higher
'''
- self._check_init()
+ try:
+ self._check_init()
+ except PkError, e:
+ self.error(e.code, e.details, exit=False)
+ return
self.yumbase.conf.cache = 0 # Allow new files
self.allow_cancel(False)
self.percentage(0)
@@ -1392,7 +1436,8 @@ class PackageKitYumBackend(PackageKitBaseBackend, PackagekitPackage):
grp = self._is_meta_package(package)
if grp:
if grp.installed:
- self.error(ERROR_PACKAGE_ALREADY_INSTALLED, "This Group %s is already installed" % grp.groupid)
+ self.error(ERROR_PACKAGE_ALREADY_INSTALLED, "This Group %s is already installed" % grp.groupid, exit=False)
+ return
try:
txmbr = self.yumbase.selectGroup(grp.groupid)
except Exception, e:
@@ -1417,11 +1462,15 @@ class PackageKitYumBackend(PackageKitBaseBackend, PackagekitPackage):
txmbr = self.yumbase.install(po=pkg)
txmbrs.extend(txmbr)
if inst:
- self.error(ERROR_PACKAGE_ALREADY_INSTALLED, "The package %s is already installed" % pkg.name)
+ self.error(ERROR_PACKAGE_ALREADY_INSTALLED, "The package %s is already installed" % pkg.name, exit=False)
+ return
if txmbrs:
- self._runYumTransaction()
+ try:
+ self._runYumTransaction()
+ except PkError, e:
+ self.error(e.code, e.details, exit=False)
else:
- self.error(ERROR_PACKAGE_ALREADY_INSTALLED, "The packages failed to be installed")
+ self.error(ERROR_PACKAGE_ALREADY_INSTALLED, "The packages failed to be installed", exit=False)
def _checkForNewer(self, po):
pkgs = None
@@ -1444,10 +1493,14 @@ class PackageKitYumBackend(PackageKitBaseBackend, PackagekitPackage):
'''
for inst_file in inst_files:
if inst_file.endswith('.src.rpm'):
- self.error(ERROR_CANNOT_INSTALL_SOURCE_PACKAGE, 'Backend will not install a src rpm file')
+ self.error(ERROR_CANNOT_INSTALL_SOURCE_PACKAGE, 'Backend will not install a src rpm file', exit=False)
return
- self._check_init()
+ try:
+ self._check_init()
+ except PkError, e:
+ self.error(e.code, e.details, exit=False)
+ return
self.yumbase.conf.cache = 0 # Allow new files
self.allow_cancel(False)
self.percentage(0)
@@ -1455,13 +1508,13 @@ class PackageKitYumBackend(PackageKitBaseBackend, PackagekitPackage):
# check we have at least one file
if len(inst_files) == 0:
- self.error(ERROR_FILE_NOT_FOUND, 'no files specified to install')
+ self.error(ERROR_FILE_NOT_FOUND, 'no files specified to install', exit=False)
return
# check that the files still exist
for inst_file in inst_files:
if not os.path.exists(inst_file):
- self.error(ERROR_FILE_NOT_FOUND, '%s could not be found' % inst_file)
+ self.error(ERROR_FILE_NOT_FOUND, '%s could not be found' % inst_file, exit=False)
return
# process these first
@@ -1474,7 +1527,7 @@ class PackageKitYumBackend(PackageKitBaseBackend, PackagekitPackage):
elif inst_file.endswith('.servicepack'):
inst_packs.append(inst_file)
else:
- self.error(ERROR_INVALID_PACKAGE_FILE, 'Only rpm files and packs are supported')
+ self.error(ERROR_INVALID_PACKAGE_FILE, 'Only rpm files and packs are supported', exit=False)
return
# decompress and add the contents of any .servicepack files
@@ -1498,7 +1551,8 @@ class PackageKitYumBackend(PackageKitBaseBackend, PackagekitPackage):
# we only support update and install
if packtype != 'install' and packtype != 'update':
- self.error(ERROR_INVALID_PACKAGE_FILE, 'no support for type %s' % packtype)
+ self.error(ERROR_INVALID_PACKAGE_FILE, 'no support for type %s' % packtype, exit=False)
+ return
# add the file if it's an install, or update if installed
for fn in files:
@@ -1549,13 +1603,15 @@ class PackageKitYumBackend(PackageKitBaseBackend, PackagekitPackage):
try:
po = YumLocalPackage(ts=self.yumbase.rpmdb.readOnlyTS(), filename=inst_file)
except yum.Errors.MiscError:
- self.error(ERROR_INVALID_PACKAGE_FILE, "%s does not appear to be a valid package." % inst_file)
+ self.error(ERROR_INVALID_PACKAGE_FILE, "%s does not appear to be a valid package." % inst_file, exit=False)
+ return
except Exception, e:
self.error(ERROR_INTERNAL_ERROR, _format_str(traceback.format_exc()))
try:
self.yumbase._checkSignatures([po], None)
except yum.Errors.YumGPGCheckError, e:
- self.error(ERROR_MISSING_GPG_SIGNATURE, _to_unicode(e))
+ self.error(ERROR_MISSING_GPG_SIGNATURE, _to_unicode(e), exit=False)
+ return
except Exception, e:
self.error(ERROR_INTERNAL_ERROR, _format_str(traceback.format_exc()))
else:
@@ -1580,8 +1636,13 @@ class PackageKitYumBackend(PackageKitBaseBackend, PackagekitPackage):
else:
self.error(ERROR_LOCAL_INSTALL_FAILED, "Can't install %s as no transaction" % _to_unicode(inst_file))
if len(self.yumbase.tsInfo) == 0:
- self.error(ERROR_LOCAL_INSTALL_FAILED, "Can't install %s" % " or ".join(inst_files))
- self._runYumTransaction()
+ self.error(ERROR_LOCAL_INSTALL_FAILED, "Can't install %s" % " or ".join(inst_files), exit=False)
+ return
+ try:
+ self._runYumTransaction()
+ except PkError, e:
+ self.error(e.code, e.details, exit=False)
+ return
except yum.Errors.InstallError, e:
self.error(ERROR_LOCAL_INSTALL_FAILED, _to_unicode(e))
@@ -1603,7 +1664,11 @@ class PackageKitYumBackend(PackageKitBaseBackend, PackagekitPackage):
if len(self.yumbase.tsInfo) > 0:
if not self.yumbase.tsInfo.pkgSack:
self.yumbase.tsInfo.pkgSack = MetaSack()
- self._runYumTransaction()
+ try:
+ self._runYumTransaction()
+ except PkError, e:
+ self.error(e.code, e.details, exit=False)
+ return
else:
self.error(ERROR_LOCAL_INSTALL_FAILED, "Can't install %s" % inst_file)
except yum.Errors.InstallError, e:
@@ -1621,7 +1686,7 @@ class PackageKitYumBackend(PackageKitBaseBackend, PackagekitPackage):
try:
po = YumLocalPackage(ts=self.yumbase.rpmdb.readOnlyTS(), filename=pkg)
except yum.Errors.MiscError:
- self.error(ERROR_INVALID_PACKAGE_FILE, "%s does not appear to be a valid package." % pkg)
+ self.error(ERROR_INVALID_PACKAGE_FILE, "%s does not appear to be a valid package." % pkg, exit=False)
return False
except Exception, e:
self.error(ERROR_INTERNAL_ERROR, _format_str(traceback.format_exc()))
@@ -1630,19 +1695,19 @@ class PackageKitYumBackend(PackageKitBaseBackend, PackagekitPackage):
# check if wrong arch
suitable_archs = rpmUtils.arch.getArchList()
if po.arch not in suitable_archs:
- self.error(ERROR_INCOMPATIBLE_ARCHITECTURE, "Package %s has incompatible architecture %s. Valid architectures are %s" % (pkg, po.arch, suitable_archs))
+ self.error(ERROR_INCOMPATIBLE_ARCHITECTURE, "Package %s has incompatible architecture %s. Valid architectures are %s" % (pkg, po.arch, suitable_archs), exit=False)
return False
# check already installed
if self._is_inst_arch(po):
- self.error(ERROR_PACKAGE_ALREADY_INSTALLED, "The package %s is already installed" % str(po))
+ self.error(ERROR_PACKAGE_ALREADY_INSTALLED, "The package %s is already installed" % str(po), exit=False)
return False
# check if excluded
if len(self.yumbase.conf.exclude) > 0:
exactmatch, matched, unmatched = parsePackages([po], self.yumbase.conf.exclude, casematch=1)
if po in exactmatch + matched:
- self.error(ERROR_PACKAGE_INSTALL_BLOCKED, "Installation of %s is excluded by yum configuration." % pkg)
+ self.error(ERROR_PACKAGE_INSTALL_BLOCKED, "Installation of %s is excluded by yum configuration." % pkg, exit=False)
return False
return True
@@ -1652,7 +1717,11 @@ class PackageKitYumBackend(PackageKitBaseBackend, PackagekitPackage):
Implement the {backend}-install functionality
This will only work with yum 3.2.4 or higher
'''
- self._check_init()
+ try:
+ self._check_init()
+ except PkError, e:
+ self.error(e.code, e.details, exit=False)
+ return
self.yumbase.conf.cache = 0 # Allow new files
self.allow_cancel(False)
self.percentage(0)
@@ -1668,13 +1737,17 @@ class PackageKitYumBackend(PackageKitBaseBackend, PackagekitPackage):
self.error(ERROR_INTERNAL_ERROR, _format_str(traceback.format_exc()))
txmbrs.extend(txmbr)
except yum.Errors.RepoError, e:
- self.error(ERROR_REPO_NOT_AVAILABLE, _to_unicode(e))
+ self.error(ERROR_REPO_NOT_AVAILABLE, _to_unicode(e), exit=False)
except Exception, e:
self.error(ERROR_INTERNAL_ERROR, _format_str(traceback.format_exc()))
- if txmbrs:
- self._runYumTransaction(allow_skip_broken=True)
else:
- self.error(ERROR_PACKAGE_ALREADY_INSTALLED, "No available updates")
+ if txmbrs:
+ try:
+ self._runYumTransaction(allow_skip_broken=True)
+ except PkError, e:
+ self.error(e.code, e.details, exit=False)
+ else:
+ self.error(ERROR_PACKAGE_ALREADY_INSTALLED, "No available updates", exit=False)
def _check_for_reboot(self):
md = self.updateMetadata
@@ -1700,9 +1773,9 @@ class PackageKitYumBackend(PackageKitBaseBackend, PackagekitPackage):
rc, msgs = self.yumbase.buildTransaction()
message = _format_msgs(msgs)
except yum.Errors.RepoError, e:
- self.error(ERROR_REPO_NOT_AVAILABLE, _to_unicode(e))
+ raise PkError(ERROR_REPO_NOT_AVAILABLE, _to_unicode(e))
except Exception, e:
- self.error(ERROR_INTERNAL_ERROR, _format_str(traceback.format_exc()))
+ raise PkError(ERROR_INTERNAL_ERROR, _format_str(traceback.format_exc()))
# if return value is 1 (error), try again with skip-broken if allowed
if allow_skip_broken and rc == 1:
@@ -1711,25 +1784,24 @@ class PackageKitYumBackend(PackageKitBaseBackend, PackagekitPackage):
rc, msgs = self.yumbase.buildTransaction()
message += " : %s" % _format_msgs(msgs)
except yum.Errors.RepoError, e:
- self.error(ERROR_REPO_NOT_AVAILABLE, _to_unicode(e))
+ raise PkError(ERROR_REPO_NOT_AVAILABLE, _to_unicode(e))
except Exception, e:
- self.error(ERROR_INTERNAL_ERROR, _format_str(traceback.format_exc()))
+ raise PkError(ERROR_INTERNAL_ERROR, _format_str(traceback.format_exc()))
# we did not succeed
if rc != 2:
if message.find ("is needed by") != -1:
- self.error(ERROR_DEP_RESOLUTION_FAILED, message)
+ raise PkError(ERROR_DEP_RESOLUTION_FAILED, message)
if message.find ("empty transaction") != -1:
- self.error(ERROR_NO_PACKAGES_TO_UPDATE, message)
+ raise PkError(ERROR_NO_PACKAGES_TO_UPDATE, message)
else:
- self.error(ERROR_TRANSACTION_ERROR, message)
+ raise PkError(ERROR_TRANSACTION_ERROR, message)
else:
self._check_for_reboot()
if allow_remove_deps == False:
if len(self.yumbase.tsInfo) > 1:
retmsg = 'package could not be removed, as other packages depend on it'
- self.error(ERROR_DEP_RESOLUTION_FAILED, retmsg)
- return
+ raise PkError(ERROR_DEP_RESOLUTION_FAILED, retmsg)
try:
rpmDisplay = PackageKitCallback(self)
@@ -1737,14 +1809,13 @@ class PackageKitYumBackend(PackageKitBaseBackend, PackagekitPackage):
self.yumbase.processTransaction(callback=callback,
rpmDisplay=rpmDisplay)
except yum.Errors.YumDownloadError, ye:
- self.error(ERROR_PACKAGE_DOWNLOAD_FAILED, _format_msgs(ye.value))
+ raise PkError(ERROR_PACKAGE_DOWNLOAD_FAILED, _format_msgs(ye.value))
except yum.Errors.YumGPGCheckError, ye:
- self.error(ERROR_BAD_GPG_SIGNATURE, _format_msgs(ye.value))
+ raise PkError(ERROR_BAD_GPG_SIGNATURE, _format_msgs(ye.value))
except GPGKeyNotImported, e:
keyData = self.yumbase.missingGPGKey
if not keyData:
- self.error(ERROR_BAD_GPG_SIGNATURE,
- "GPG key not imported, and no GPG information was found.")
+ raise PkError(ERROR_BAD_GPG_SIGNATURE, "GPG key not imported, and no GPG information was found.")
package_id = self._pkg_to_id(keyData['po'])
fingerprint = keyData['fingerprint']()
hex_fingerprint = "%02x" * len(fingerprint) % tuple(map(ord, fingerprint))
@@ -1758,24 +1829,28 @@ class PackageKitYumBackend(PackageKitBaseBackend, PackagekitPackage):
hex_fingerprint,
time.ctime(keyData['timestamp']),
'gpg')
- self.error(ERROR_GPG_FAILURE, "GPG key %s required" % keyData['hexkeyid'])
+ raise PkError(ERROR_GPG_FAILURE, "GPG key %s required" % keyData['hexkeyid'])
except yum.Errors.YumBaseError, ye:
message = _format_msgs(ye.value)
if message.find ("conflicts with file") != -1:
- self.error(ERROR_FILE_CONFLICTS, message)
+ raise PkError(ERROR_FILE_CONFLICTS, message)
if message.find ("rpm_check_debug vs depsolve") != -1:
- self.error(ERROR_PACKAGE_CONFLICTS, message)
+ raise PkError(ERROR_PACKAGE_CONFLICTS, message)
else:
- self.error(ERROR_TRANSACTION_ERROR, message)
+ raise PkError(ERROR_TRANSACTION_ERROR, message)
except Exception, e:
- self.error(ERROR_INTERNAL_ERROR, _format_str(traceback.format_exc()))
+ raise PkError(ERROR_INTERNAL_ERROR, _format_str(traceback.format_exc()))
def remove_packages(self, allowdep, package_ids):
'''
Implement the {backend}-remove functionality
Needed to be implemented in a sub class
'''
- self._check_init()
+ try:
+ self._check_init()
+ except PkError, e:
+ self.error(e.code, e.details, exit=False)
+ return
self.yumbase.conf.cache = 0 # Allow new files
self.allow_cancel(False)
self.percentage(0)
@@ -1803,12 +1878,15 @@ class PackageKitYumBackend(PackageKitBaseBackend, PackagekitPackage):
if pkg and not inst:
self.error(ERROR_PACKAGE_NOT_INSTALLED, "The package %s is not installed" % pkg.name)
if txmbrs:
- if allowdep != 'yes':
- self._runYumTransaction(allow_remove_deps=False)
- else:
- self._runYumTransaction(allow_remove_deps=True)
+ try:
+ if allowdep != 'yes':
+ self._runYumTransaction(allow_remove_deps=False)
+ else:
+ self._runYumTransaction(allow_remove_deps=True)
+ except PkError, e:
+ self.error(e.code, e.details, exit=False)
else:
- self.error(ERROR_PACKAGE_NOT_INSTALLED, "The packages failed to be removed")
+ self.error(ERROR_PACKAGE_NOT_INSTALLED, "The packages failed to be removed", exit=False)
def _get_category(self, groupid):
cat_id = self.comps.get_category(groupid)
@@ -1864,7 +1942,11 @@ class PackageKitYumBackend(PackageKitBaseBackend, PackagekitPackage):
self.details(package_id, pkg.license, group, desc, pkg.url, pkg.size)
def get_files(self, package_ids):
- self._check_init()
+ try:
+ self._check_init()
+ except PkError, e:
+ self.error(e.code, e.details, exit=False)
+ return
self.yumbase.conf.cache = 0 # Allow new files
self.allow_cancel(True)
self.percentage(None)
@@ -1894,7 +1976,11 @@ class PackageKitYumBackend(PackageKitBaseBackend, PackagekitPackage):
'''
Implement the {backend}-get-distro-upgrades functionality
'''
- self._check_init()
+ try:
+ self._check_init()
+ except PkError, e:
+ self.error(e.code, e.details, exit=False)
+ return
self.yumbase.conf.cache = 0 # Allow new files
self.allow_cancel(True)
self.percentage(None)
@@ -1930,7 +2016,11 @@ class PackageKitYumBackend(PackageKitBaseBackend, PackagekitPackage):
except Exception, e:
self.error(ERROR_INTERNAL_ERROR, _format_str(traceback.format_exc()))
if txmbr:
- self._runYumTransaction()
+ try:
+ self._runYumTransaction()
+ except PkError, e:
+ self.error(e.code, e.details, exit=False)
+ return
else:
self.error(ERROR_INTERNAL_ERROR, "could not install preupgrade as no transaction")
elif len(pkgs) == 1:
@@ -1956,7 +2046,11 @@ class PackageKitYumBackend(PackageKitBaseBackend, PackagekitPackage):
except Exception, e:
self.error(ERROR_INTERNAL_ERROR, _format_str(traceback.format_exc()))
if txmbr:
- self._runYumTransaction()
+ try:
+ self._runYumTransaction()
+ except PkError, e:
+ self.error(e.code, e.details, exit=False)
+ return
else:
self.error(ERROR_INTERNAL_ERROR, "more than one preupgrade package installed")
@@ -2011,7 +2105,11 @@ class PackageKitYumBackend(PackageKitBaseBackend, PackagekitPackage):
Implement the {backend}-get-updates functionality
@param filters: package types to show
'''
- self._check_init()
+ try:
+ self._check_init()
+ except PkError, e:
+ self.error(e.code, e.details, exit=False)
+ return
self.yumbase.conf.cache = 0 # Allow new files
self.allow_cancel(True)
self.percentage(None)
@@ -2056,7 +2154,11 @@ class PackageKitYumBackend(PackageKitBaseBackend, PackagekitPackage):
'''
Implement the {backend}-repo-enable functionality
'''
- self._check_init()
+ try:
+ self._check_init()
+ except PkError, e:
+ self.error(e.code, e.details, exit=False)
+ return
self.yumbase.conf.cache = 0 # Allow new files
self.status(STATUS_INFO)
try:
@@ -2190,7 +2292,11 @@ class PackageKitYumBackend(PackageKitBaseBackend, PackagekitPackage):
'''
Implement the {backend}-get-update_detail functionality
'''
- self._check_init()
+ try:
+ self._check_init()
+ except PkError, e:
+ self.error(e.code, e.details, exit=False)
+ return
self.yumbase.conf.cache = 0 # Allow new files
self.allow_cancel(True)
self.percentage(None)
@@ -2209,7 +2315,11 @@ class PackageKitYumBackend(PackageKitBaseBackend, PackagekitPackage):
'''
Implement the {backend}-repo-set-data functionality
'''
- self._check_init()
+ try:
+ self._check_init()
+ except PkError, e:
+ self.error(e.code, e.details, exit=False)
+ return
self.yumbase.conf.cache = 0 # Allow new files
# Get the repo
try:
@@ -2281,11 +2391,11 @@ class PackageKitYumBackend(PackageKitBaseBackend, PackagekitPackage):
try:
self.yumbase.repos.doSetup()
except yum.Errors.RepoError, e:
- self.error(ERROR_NO_CACHE, _to_unicode(e))
+ raise PkError(ERROR_NO_CACHE, _to_unicode(e))
except exceptions.IOError, e:
- self.error(ERROR_NO_SPACE_ON_DEVICE, _to_unicode(e))
+ raise PkError(ERROR_NO_SPACE_ON_DEVICE, _to_unicode(e))
except Exception, e:
- self.error(ERROR_INTERNAL_ERROR, _format_str(traceback.format_exc()))
+ raise PkError(ERROR_INTERNAL_ERROR, _format_str(traceback.format_exc()))
def _refresh_yum_cache(self):
self.status(STATUS_REFRESH_CACHE)
@@ -2294,31 +2404,31 @@ class PackageKitYumBackend(PackageKitBaseBackend, PackagekitPackage):
try:
self.yumbase.repos.setCache(0)
except Exception, e:
- self.error(ERROR_INTERNAL_ERROR, _format_str(traceback.format_exc()))
+ raise PkError(ERROR_INTERNAL_ERROR, _format_str(traceback.format_exc()))
try:
self.yumbase.repos.populateSack(mdtype='metadata', cacheonly=1)
self.yumbase.repos.populateSack(mdtype='filelists', cacheonly=1)
self.yumbase.repos.populateSack(mdtype='otherdata', cacheonly=1)
except yum.Errors.RepoError, e:
- self.error(ERROR_REPO_NOT_AVAILABLE, _to_unicode(e))
+ raise PkError(ERROR_REPO_NOT_AVAILABLE, _to_unicode(e))
except exceptions.IOError, e:
- self.error(ERROR_NO_SPACE_ON_DEVICE, _to_unicode(e))
+ raise PkError(ERROR_NO_SPACE_ON_DEVICE, _to_unicode(e))
except Exception, e:
- self.error(ERROR_INTERNAL_ERROR, _format_str(traceback.format_exc()))
+ raise PkError(ERROR_INTERNAL_ERROR, _format_str(traceback.format_exc()))
self.yumbase.conf.cache = old_cache_setting
try:
self.yumbase.repos.setCache(old_cache_setting)
except Exception, e:
- self.error(ERROR_INTERNAL_ERROR, _format_str(traceback.format_exc()))
+ raise PkError(ERROR_INTERNAL_ERROR, _format_str(traceback.format_exc()))
def _setup_yum(self):
try:
# setup Yum Config
self.yumbase.doConfigSetup(errorlevel=-1, debuglevel=-1)
except Exception, e:
- self.error(ERROR_INTERNAL_ERROR, _format_str(traceback.format_exc()))
+ raise PkError(ERROR_INTERNAL_ERROR, _format_str(traceback.format_exc()))
# set bandwidth throttle to 90%
self.yumbase.conf.throttle = "90%"
commit 8de9c74a074beaf9c6897a1d4c374451ce672f4e
Author: Richard Hughes <richard at hughsie.com>
Date: Tue Feb 24 13:05:30 2009 +0000
feature: python: add a PkError exception class to better handle nested errors. No users yet
diff --git a/lib/python/packagekit/backend.py b/lib/python/packagekit/backend.py
index 81c70a8..c532daa 100644
--- a/lib/python/packagekit/backend.py
+++ b/lib/python/packagekit/backend.py
@@ -34,6 +34,13 @@ FILENAME_DELIM = '|'
# Classes
+class PkError(Exception):
+ def __init__(self, code, details):
+ self.code = code
+ self.details = details
+ def __str__(self):
+ return repr("%s: %s" % (self.code, self.details))
+
class PackageKitBaseBackend:
def __init__(self, cmds):
commit bcd948de08603b8c65d9815170f1128471963fcf
Author: Richard Hughes <richard at hughsie.com>
Date: Tue Feb 24 11:16:41 2009 +0000
allow backends to enable simultaneous mode to do actions in parallel
This changes the on-wire format slightly, although it should be forward
and backwards compatible. See the mailing list for discussion.
diff --git a/client/pk-console.c b/client/pk-console.c
index bd10a13..db5f2d5 100644
--- a/client/pk-console.c
+++ b/client/pk-console.c
@@ -162,6 +162,10 @@ pk_console_package_cb (PkClient *client, const PkPackageObj *obj, gpointer data)
gchar *info_pad = NULL;
gchar *text = NULL;
+ /* ignore finished */
+ if (obj->info == PK_INFO_ENUM_FINISHED)
+ goto out;
+
/* make these all the same length */
info_pad = pk_strpad (pk_info_enum_to_text (obj->info), 12);
diff --git a/docs/api/spec/pk-concepts.xml b/docs/api/spec/pk-concepts.xml
index 2bfa380..be2b8eb 100644
--- a/docs/api/spec/pk-concepts.xml
+++ b/docs/api/spec/pk-concepts.xml
@@ -951,5 +951,138 @@
lock is available and the transaction has started.
</para>
</sect1>
+
+ <sect1 id="introduction-ideas-simultaneous">
+ <title>Simultaneous Mode</title>
+ <para>
+ By default, a packagekit backend operates in a mode where only one activity is done at one
+ time, for example, epiphany is downloaded and then installed.
+ Some backends are able to download or install multiple files at once, and this may need to
+ be conveyed to a GUI tool as a list of variable length, rather than just a package_id and
+ summary.
+ </para>
+ <para>
+ The function <literal>pk_backend_set_simultaneous_mode(TRUE)</literal> is used to turn on
+ the simultaneous operation, where the backend can control the finished status of the
+ <literal>::Package()</literal> calls.
+ This is not needed for a typical backend.
+ </para>
+ <para>
+ For instance, a typical non-simultaneous backend might do:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ 1. <literal>pk_backend_package(DOWNLOADING, "epiphany")</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ 2. <literal>pk_backend_package(DOWNLOADING, "nautilus")</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ 3. <literal>pk_backend_package(INSTALLING, "epiphany")</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ 4. <literal>pk_backend_package(INSTALLING, "nautilus")</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ 5. <literal>pk_backend_finished(SUCCESS)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ This is translated by the daemon automatically into a coherent sequence that can be used to
+ update a GUI with the correct information.
+ This is done automatically and transparently from the backend.
+ The effective output from the daemon would be:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ 1. <literal>pk_backend_package(DOWNLOADING, "epiphany")</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ 2. <literal>pk_backend_package(FINISHED, "epiphany")</literal>
+ <literal>pk_backend_package(DOWNLOADING, "nautilus")</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ 3. <literal>pk_backend_package(FINISHED, "nautilus")</literal>
+ <literal>pk_backend_package(INSTALLING, "epiphany")</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ 4. <literal>pk_backend_package(FINISHED, "epiphany")</literal>
+ <literal>pk_backend_package(INSTALLING, "nautilus")</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ 5. <literal>pk_backend_package(FINISHED, "nautilus")</literal>
+ <literal>pk_backend_finished(SUCCESS)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ For a simultaneous backend, the backend is in full control of the <literal>FINISHED</literal>
+ state of the package actions.
+ This way it is possible to show the status of multiple packages in the GUI programs.
+ </para>
+ <para>
+ For instance, a typical simultaneous backend might do:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ 1. <literal>pk_backend_set_simultaneous_mode(TRUE)</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ 2. <literal>pk_backend_package(DOWNLOADING, "epiphany")</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ 3. <literal>pk_backend_package(DOWNLOADING, "nautilus")</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ 4. <literal>pk_backend_package(FINISHED, "nautilus")</literal>
+ <literal>pk_backend_package(INSTALLING, "nautilus")</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ 5. <literal>pk_backend_package(FINISHED, "epiphany")</literal>
+ <literal>pk_backend_package(INSTALLING, "epiphany")</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ 6. <literal>pk_backend_package(FINISHED, "nautilus")</literal>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ 7. <literal>pk_backend_package(FINISHED, "epiphany")</literal>
+ <literal>pk_backend_finished(SUCCESS)</literal>
+ </para>
+ </listitem>
+ </itemizedlist>
+ </sect1>
+
</chapter>
diff --git a/lib/packagekit-glib/pk-enum.c b/lib/packagekit-glib/pk-enum.c
index 5939024..0af1060 100644
--- a/lib/packagekit-glib/pk-enum.c
+++ b/lib/packagekit-glib/pk-enum.c
@@ -295,6 +295,7 @@ static const PkEnumMatch enum_info[] = {
{PK_INFO_ENUM_OBSOLETING, "obsoleting"},
{PK_INFO_ENUM_COLLECTION_INSTALLED, "collection-installed"},
{PK_INFO_ENUM_COLLECTION_AVAILABLE, "collection-available"},
+ {PK_INFO_ENUM_FINISHED, "finished"},
{0, NULL}
};
diff --git a/lib/packagekit-glib/pk-enum.h b/lib/packagekit-glib/pk-enum.h
index 21da819..d72e0f7 100644
--- a/lib/packagekit-glib/pk-enum.h
+++ b/lib/packagekit-glib/pk-enum.h
@@ -367,6 +367,7 @@ typedef enum {
PK_INFO_ENUM_OBSOLETING,
PK_INFO_ENUM_COLLECTION_INSTALLED,
PK_INFO_ENUM_COLLECTION_AVAILABLE,
+ PK_INFO_ENUM_FINISHED,
PK_INFO_ENUM_UNKNOWN
} PkInfoEnum;
diff --git a/src/pk-backend.c b/src/pk-backend.c
index 0a73a66..0bdcad5 100644
--- a/src/pk-backend.c
+++ b/src/pk-backend.c
@@ -88,6 +88,7 @@ struct _PkBackendPrivate
gboolean set_error;
gboolean set_signature;
gboolean set_eula;
+ gboolean simultaneous;
gboolean has_sent_package;
gboolean use_time;
PkNetwork *network;
@@ -776,6 +777,68 @@ pk_backend_get_status (PkBackend *backend)
}
/**
+ * pk_backend_package_emulate_finished:
+ **/
+static gboolean
+pk_backend_package_emulate_finished (PkBackend *backend)
+{
+ PkInfoEnum info;
+ gchar *package_id;
+
+ /* simultaneous handles this on it's own */
+ if (backend->priv->simultaneous)
+ return FALSE;
+
+ /* first package in transaction */
+ if (backend->priv->last_package == NULL)
+ return FALSE;
+
+ /* already finished */
+ if (backend->priv->last_package->info == PK_INFO_ENUM_FINISHED)
+ return FALSE;
+
+ /* only makes sense for some values */
+ info = backend->priv->last_package->info;
+ if (info == PK_INFO_ENUM_DOWNLOADING ||
+ info == PK_INFO_ENUM_UPDATING ||
+ info == PK_INFO_ENUM_INSTALLING ||
+ info == PK_INFO_ENUM_REMOVING ||
+ info == PK_INFO_ENUM_CLEANUP ||
+ info == PK_INFO_ENUM_OBSOLETING) {
+ package_id = pk_package_id_to_string (backend->priv->last_package->id);
+ pk_backend_package (backend, PK_INFO_ENUM_FINISHED, package_id, backend->priv->last_package->summary);
+ g_free (package_id);
+ }
+ return TRUE;
+}
+
+/**
+ * pk_backend_package_emulate_finished_for_package:
+ **/
+static gboolean
+pk_backend_package_emulate_finished_for_package (PkBackend *backend, const PkPackageObj *obj)
+{
+ /* simultaneous handles this on it's own */
+ if (backend->priv->simultaneous)
+ return FALSE;
+
+ /* first package in transaction */
+ if (backend->priv->last_package == NULL)
+ return FALSE;
+
+ /* sending finished already */
+ if (obj->info == PK_INFO_ENUM_FINISHED)
+ return FALSE;
+
+ /* same package, just info change */
+ if (pk_package_id_equal (backend->priv->last_package->id, obj->id))
+ return FALSE;
+
+ /* emit the old package as finished */
+ return pk_backend_package_emulate_finished (backend);
+}
+
+/**
* pk_backend_package:
**/
gboolean
@@ -810,6 +873,9 @@ pk_backend_package (PkBackend *backend, PkInfoEnum info, const gchar *package_id
goto out;
}
+ /* simulate the finish here when required */
+ pk_backend_package_emulate_finished_for_package (backend, obj);
+
/* update the 'last' package */
pk_package_obj_free (backend->priv->last_package);
backend->priv->last_package = pk_package_obj_copy (obj);
@@ -821,19 +887,22 @@ pk_backend_package (PkBackend *backend, PkInfoEnum info, const gchar *package_id
goto out;
}
- /* we automatically set the transaction status for some infos */
- if (info == PK_INFO_ENUM_DOWNLOADING)
- pk_backend_set_status (backend, PK_STATUS_ENUM_DOWNLOAD);
- else if (info == PK_INFO_ENUM_UPDATING)
- pk_backend_set_status (backend, PK_STATUS_ENUM_UPDATE);
- else if (info == PK_INFO_ENUM_INSTALLING)
- pk_backend_set_status (backend, PK_STATUS_ENUM_INSTALL);
- else if (info == PK_INFO_ENUM_REMOVING)
- pk_backend_set_status (backend, PK_STATUS_ENUM_REMOVE);
- else if (info == PK_INFO_ENUM_CLEANUP)
- pk_backend_set_status (backend, PK_STATUS_ENUM_CLEANUP);
- else if (info == PK_INFO_ENUM_OBSOLETING)
- pk_backend_set_status (backend, PK_STATUS_ENUM_OBSOLETE);
+ /* we automatically set the transaction status for some PkInfoEnums if running
+ * in non-simultaneous transaction mode */
+ if (!backend->priv->simultaneous) {
+ if (info == PK_INFO_ENUM_DOWNLOADING)
+ pk_backend_set_status (backend, PK_STATUS_ENUM_DOWNLOAD);
+ else if (info == PK_INFO_ENUM_UPDATING)
+ pk_backend_set_status (backend, PK_STATUS_ENUM_UPDATE);
+ else if (info == PK_INFO_ENUM_INSTALLING)
+ pk_backend_set_status (backend, PK_STATUS_ENUM_INSTALL);
+ else if (info == PK_INFO_ENUM_REMOVING)
+ pk_backend_set_status (backend, PK_STATUS_ENUM_REMOVE);
+ else if (info == PK_INFO_ENUM_CLEANUP)
+ pk_backend_set_status (backend, PK_STATUS_ENUM_CLEANUP);
+ else if (info == PK_INFO_ENUM_OBSOLETING)
+ pk_backend_set_status (backend, PK_STATUS_ENUM_OBSOLETE);
+ }
/* we've sent a package for this transaction */
backend->priv->has_sent_package = TRUE;
@@ -1005,6 +1074,21 @@ pk_backend_set_transaction_data (PkBackend *backend, const gchar *data)
}
/**
+ * pk_backend_set_simultaneous_mode:
+ **/
+gboolean
+pk_backend_set_simultaneous_mode (PkBackend *backend, gboolean simultaneous)
+{
+ g_return_val_if_fail (PK_IS_BACKEND (backend), FALSE);
+ g_return_val_if_fail (backend->priv->locked != FALSE, FALSE);
+
+ backend->priv->simultaneous = simultaneous;
+ if (simultaneous)
+ egg_warning ("simultaneous mode is not well tested, use with caution");
+ return TRUE;
+}
+
+/**
* pk_backend_get_locale:
*
* Return value: session locale, e.g. en_GB
@@ -1513,6 +1597,9 @@ pk_backend_finished (PkBackend *backend)
egg_warning ("GUI will remain unchanged!");
}
+ /* emulate the last finished package if not done already */
+ pk_backend_package_emulate_finished (backend);
+
/* make any UI insensitive */
pk_backend_set_allow_cancel (backend, FALSE);
@@ -1898,6 +1985,7 @@ pk_backend_init (PkBackend *backend)
backend->priv->signal_finished = 0;
backend->priv->signal_error_timeout = 0;
backend->priv->during_initialize = FALSE;
+ backend->priv->simultaneous = FALSE;
backend->priv->store = pk_store_new ();
backend->priv->time = pk_time_new ();
backend->priv->network = pk_network_new ();
diff --git a/src/pk-backend.h b/src/pk-backend.h
index 4ca3d03..9e84220 100644
--- a/src/pk-backend.h
+++ b/src/pk-backend.h
@@ -61,6 +61,8 @@ gboolean pk_backend_set_exit_code (PkBackend *backend,
PkExitEnum exit);
gboolean pk_backend_set_transaction_data (PkBackend *backend,
const gchar *data);
+gboolean pk_backend_set_simultaneous_mode (PkBackend *backend,
+ gboolean simultaneous);
gboolean pk_backend_set_locale (PkBackend *backend,
const gchar *code);
commit 936c8078b58da46dd4a19af90250dced48796196
Merge: e170df6... 09ab7f0...
Author: Richard Hughes <richard at hughsie.com>
Date: Tue Feb 24 11:14:26 2009 +0000
Merge branch 'master' of git+ssh://hughsie@git.packagekit.org/srv/git/PackageKit
commit 09ab7f06ab993bee21f3434bf65ef55bb8433a1e
Author: Piotr DrÄ
g <piotrdrag at gmail.com>
Date: Mon Feb 23 19:36:38 2009 +0000
Updated Polish translation
Transmitted-via: Transifex (translate.fedoraproject.org)
diff --git a/po/pl.po b/po/pl.po
index 13e8e73..b8fea2c 100644
--- a/po/pl.po
+++ b/po/pl.po
@@ -5,8 +5,8 @@ msgid ""
msgstr ""
"Project-Id-Version: pl\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-02-21 00:57+0100\n"
-"PO-Revision-Date: 2009-02-21 00:59+0100\n"
+"POT-Creation-Date: 2009-02-23 20:11+0100\n"
+"PO-Revision-Date: 2009-02-23 20:34+0100\n"
"Last-Translator: Piotr DrÄ
g <piotrdrag at gmail.com>\n"
"Language-Team: Polish <pl at li.org>\n"
"MIME-Version: 1.0\n"
@@ -238,14 +238,14 @@ msgstr "Nie można zainstalowaÄ pakietu %s: %s"
#. TRANSLATORS: There was a programming error that shouldn't happen. The detailed error follows
#: ../client/pk-console.c:720 ../client/pk-console.c:747
#: ../client/pk-console.c:843 ../client/pk-console.c:960
-#: ../client/pk-tools-common.c:61 ../client/pk-tools-common.c:79
-#: ../client/pk-tools-common.c:86
+#: ../client/pk-tools-common.c:62 ../client/pk-tools-common.c:81
+#: ../client/pk-tools-common.c:89
#, c-format
msgid "Internal error: %s"
msgstr "WewnÄtrzny bÅÄ
d: %s"
#. TRANSLATORS: There was an error installing the packages. The detailed error follows
-#: ../client/pk-console.c:728 ../client/pk-console.c:1355
+#: ../client/pk-console.c:728 ../client/pk-console.c:1356
#, c-format
msgid "This tool could not install the packages: %s"
msgstr "To narzÄdzie nie może zainstalowaÄ pakietów: %s"
@@ -385,256 +385,259 @@ msgid "To install"
msgstr "Do zainstalowania"
#. TRANSLATORS: searching takes some time....
-#: ../client/pk-console.c:1327
+#: ../client/pk-console.c:1328
msgid "Searching for package: "
msgstr "Wyszukiwanie pakietu: "
#. TRANSLATORS: package was not found -- this is the end of a string ended in ...
-#: ../client/pk-console.c:1331
+#: ../client/pk-console.c:1332
msgid "not found."
msgstr "nie znaleziono."
#. TRANSLATORS: We didn't find any packages to install
-#: ../client/pk-console.c:1342
+#: ../client/pk-console.c:1343
#, c-format
msgid "No packages can be found to install"
msgstr "Nie można znaleÅºÄ pakietów do zainstalowania"
#. TRANSLATORS: installing new packages from package list
-#: ../client/pk-console.c:1348
+#: ../client/pk-console.c:1349
msgid "Installing packages"
msgstr "Instalowanie pakietów"
#. TRANSLATORS: The package name was not found in any software sources. The detailed error follows
-#: ../client/pk-console.c:1384
+#: ../client/pk-console.c:1385
#, c-format
msgid "This tool could not find the update details for %s: %s"
msgstr "To narzÄdzie nie może znaleÅºÄ szczegóÅów aktualizacji dla %s: %s"
#. TRANSLATORS: There was an error getting the details about the update for the package. The detailed error follows
-#: ../client/pk-console.c:1392
+#: ../client/pk-console.c:1393
#, c-format
msgid "This tool could not get the update details for %s: %s"
msgstr "To narzÄdzie nie może uzyskaÄ szczegóÅów aktualizacji dla %s: %s"
#. TRANSLATORS: This was an unhandled error, and we don't have _any_ context
-#: ../client/pk-console.c:1438
+#: ../client/pk-console.c:1439
msgid "Error:"
msgstr "BÅÄ
d:"
#. TRANSLATORS: This a list of details about the package
-#: ../client/pk-console.c:1452
+#: ../client/pk-console.c:1453
msgid "Package description"
msgstr "Opis pakietu"
#. TRANSLATORS: This a list files contained in the package
-#: ../client/pk-console.c:1486
+#: ../client/pk-console.c:1487
msgid "Package files"
msgstr "Pliki pakietu"
#. TRANSLATORS: This where the package has no files
-#: ../client/pk-console.c:1494
+#: ../client/pk-console.c:1495
msgid "No files"
msgstr "Brak plików"
#. TRANSLATORS: This a request for a GPG key signature from the backend, which the client will prompt for later
-#: ../client/pk-console.c:1517
+#: ../client/pk-console.c:1518
msgid "Repository signature required"
msgstr "Wymagany jest podpis repozytorium"
#. TRANSLATORS: This a prompt asking the user to import the security key
-#: ../client/pk-console.c:1527
+#: ../client/pk-console.c:1528
msgid "Do you accept this signature?"
msgstr "ZaakceptowaÄ ten podpis?"
#. TRANSLATORS: This is where the user declined the security key
-#: ../client/pk-console.c:1531
+#: ../client/pk-console.c:1532
msgid "The signature was not accepted."
msgstr "Podpis nie zostaÅ zaakceptowany."
#. TRANSLATORS: This a request for a EULA
-#: ../client/pk-console.c:1565
+#: ../client/pk-console.c:1566
msgid "End user license agreement required"
msgstr "Licencja jest wymagana"
#. TRANSLATORS: This a prompt asking the user to agree to the license
-#: ../client/pk-console.c:1572
+#: ../client/pk-console.c:1573
msgid "Do you agree to this license?"
msgstr "ZaakceptowaÄ tÄ licencjÄ?"
#. TRANSLATORS: This is where the user declined the license
-#: ../client/pk-console.c:1576
+#: ../client/pk-console.c:1577
msgid "The license was refused."
msgstr "Odrzucono licencjÄ."
#. TRANSLATORS: This is when the daemon crashed, and we are up shit creek without a paddle
-#: ../client/pk-console.c:1605
+#: ../client/pk-console.c:1606
msgid "The daemon crashed mid-transaction!"
msgstr "Demon zawiesiÅ siÄ w poÅowie transakcji!"
#. TRANSLATORS: This is the header to the --help menu
-#: ../client/pk-console.c:1658
+#: ../client/pk-console.c:1659
msgid "PackageKit Console Interface"
msgstr "Interfejs konsoli PackageKit"
#. these are commands we can use with pkcon
-#: ../client/pk-console.c:1660
+#: ../client/pk-console.c:1661
msgid "Subcommands:"
msgstr "Podpolecenia:"
#. TRANSLATORS: command line argument, if we should show debugging information
#. TRANSLATORS: if we should show debugging data
-#: ../client/pk-console.c:1752 ../client/pk-generate-pack.c:185
+#: ../client/pk-console.c:1753 ../client/pk-generate-pack.c:185
#: ../client/pk-monitor.c:125
#: ../contrib/command-not-found/pk-command-not-found.c:510
-#: ../src/pk-main.c:199
+#: ../contrib/app-install/pk-app-install-add.c:244
+#: ../contrib/app-install/pk-app-install-create.c:48
+#: ../contrib/app-install/pk-app-install-generate.c:244
+#: ../contrib/app-install/pk-app-install-remove.c:87 ../src/pk-main.c:199
msgid "Show extra debugging information"
msgstr "WyÅwietla dodatkowe informacje o debugowaniu"
#. TRANSLATORS: command line argument, just show the version string
-#: ../client/pk-console.c:1755 ../client/pk-monitor.c:127
+#: ../client/pk-console.c:1756 ../client/pk-monitor.c:127
msgid "Show the program version and exit"
msgstr "WyÅwietla wersjÄ programu i wyÅÄ
cza"
#. TRANSLATORS: command line argument, use a filter to narrow down results
-#: ../client/pk-console.c:1758
+#: ../client/pk-console.c:1759
msgid "Set the filter, e.g. installed"
msgstr "Ustawia filtr, np. zainstalowane"
#. TRANSLATORS: command line argument, work asynchronously
-#: ../client/pk-console.c:1761
+#: ../client/pk-console.c:1762
msgid "Exit without waiting for actions to complete"
msgstr "WyÅÄ
cza bez oczekiwania na zakoÅczenie dziaÅaÅ"
#. TRANSLATORS: This is when we could not connect to the system bus, and is fatal
-#: ../client/pk-console.c:1788
+#: ../client/pk-console.c:1789
msgid "This tool could not connect to system DBUS."
msgstr "To narzÄdzie nie może poÅÄ
czyÄ siÄ z systemowym D-Bus."
#. TRANSLATORS: The user specified an incorrect filter
-#: ../client/pk-console.c:1875
+#: ../client/pk-console.c:1876
msgid "The filter specified was invalid"
msgstr "Podany filtr jest nieprawidÅowy"
#. TRANSLATORS: a search type can be name, details, file, etc
-#: ../client/pk-console.c:1893
+#: ../client/pk-console.c:1894
msgid "A search type is required, e.g. name"
msgstr "Wymagany jest typ wyszukiwania, np. nazwa"
#. TRANSLATORS: the user needs to provide a search term
-#: ../client/pk-console.c:1899 ../client/pk-console.c:1907
-#: ../client/pk-console.c:1915 ../client/pk-console.c:1923
+#: ../client/pk-console.c:1900 ../client/pk-console.c:1908
+#: ../client/pk-console.c:1916 ../client/pk-console.c:1924
msgid "A search term is required"
msgstr "Wymagany jest wyszukiwany termin"
#. TRANSLATORS: the search type was provided, but invalid
-#: ../client/pk-console.c:1929
+#: ../client/pk-console.c:1930
msgid "Invalid search type"
msgstr "NieprawidÅowy typ wyszukiwania"
#. TRANSLATORS: the user did not specify what they wanted to install
-#: ../client/pk-console.c:1935
+#: ../client/pk-console.c:1936
msgid "A package name or filename to install is required"
msgstr "Wymagana jest nazwa pakietu lub pliku do zainstalowania"
#. TRANSLATORS: geeky error, 99.9999% of users won't see this
-#: ../client/pk-console.c:1943
+#: ../client/pk-console.c:1944
msgid "A type, key_id and package_id are required"
msgstr "Wymagany jest typ, key_id i package_id"
#. TRANSLATORS: the user did not specify what they wanted to remove
-#: ../client/pk-console.c:1951
+#: ../client/pk-console.c:1952
msgid "A package name to remove is required"
msgstr "Wymagana jest nazwa pakietu do usuniÄcia"
#. TRANSLATORS: the user did not specify anything about what to download or where
-#: ../client/pk-console.c:1958
+#: ../client/pk-console.c:1959
msgid ""
"A destination directory and then the package names to download are required"
msgstr "Wymagany jest katalog docelowy, a nastÄpnie nazwy pakietów do pobrania"
#. TRANSLATORS: the directory does not exist, so we can't continue
-#: ../client/pk-console.c:1964
+#: ../client/pk-console.c:1965
msgid "Directory not found"
msgstr "Nie znaleziono katalogu"
#. TRANSLATORS: geeky error, 99.9999% of users won't see this
-#: ../client/pk-console.c:1971
+#: ../client/pk-console.c:1972
msgid "A licence identifier (eula-id) is required"
msgstr "Wymagany jest identyfikator licencji (eula-id)"
#. TRANSLATORS: geeky error, 99.9999% of users won't see this
-#: ../client/pk-console.c:1980
+#: ../client/pk-console.c:1981
msgid "A transaction identifier (tid) is required"
msgstr "Wymagany jest identyfikator transakcji (tid)"
#. TRANSLATORS: The user did not specify a package name
-#: ../client/pk-console.c:1996
+#: ../client/pk-console.c:1997
msgid "A package name to resolve is required"
msgstr "Wymagana jest nazwa pakietu do rozwiÄ
zania"
#. TRANSLATORS: The user did not specify a repository (software source) name
-#: ../client/pk-console.c:2004 ../client/pk-console.c:2012
+#: ../client/pk-console.c:2005 ../client/pk-console.c:2013
msgid "A repository name is required"
msgstr "Wymagana jest nazwa repozytorium"
#. TRANSLATORS: The user didn't provide any data
-#: ../client/pk-console.c:2020
+#: ../client/pk-console.c:2021
msgid "A repo name, parameter and value are required"
msgstr "Wymagana jest nazwa, parametr i wartoÅÄ repozytorium"
#. TRANSLATORS: The user didn't specify what action to use
-#: ../client/pk-console.c:2033
+#: ../client/pk-console.c:2034
msgid "An action, e.g. 'update-system' is required"
msgstr "Wymagane jest dziaÅanie, np. \"update-system\""
#. TRANSLATORS: The user specified an invalid action
-#: ../client/pk-console.c:2039
+#: ../client/pk-console.c:2040
msgid "A correct role is required"
msgstr "Wymagana jest bieżÄ
ca rola"
#. TRANSLATORS: we keep a database updated with the time that an action was last executed
-#: ../client/pk-console.c:2045
+#: ../client/pk-console.c:2046
msgid "Failed to get the time since this action was last completed"
msgstr ""
"Uzyskanie czasu od ostatniego zakoÅczenia tego dziaÅania nie powiodÅo siÄ"
#. 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:2054 ../client/pk-console.c:2065
-#: ../client/pk-console.c:2073 ../client/pk-console.c:2089
-#: ../client/pk-console.c:2097 ../client/pk-generate-pack.c:241
+#: ../client/pk-console.c:2055 ../client/pk-console.c:2066
+#: ../client/pk-console.c:2074 ../client/pk-console.c:2090
+#: ../client/pk-console.c:2098 ../client/pk-generate-pack.c:241
msgid "A package name is required"
msgstr "Wymagana jest nazwa pakietu"
#. TRANSLATORS: each package "provides" certain things, e.g. mime(gstreamer-decoder-mp3), the user didn't specify it
-#: ../client/pk-console.c:2081
+#: ../client/pk-console.c:2082
msgid "A package provide string is required"
msgstr "Wymagany jest ÅaÅcuch dostarczania pakietu"
#. TRANSLATORS: The user didn't specify a filename to create as a list
-#: ../client/pk-console.c:2105
+#: ../client/pk-console.c:2106
msgid "A list file name to create is required"
msgstr "Wymagana jest lista nazw plików do utworzenia"
#. TRANSLATORS: The user didn't specify a filename to open as a list
-#: ../client/pk-console.c:2114 ../client/pk-console.c:2123
+#: ../client/pk-console.c:2115 ../client/pk-console.c:2124
msgid "A list file to open is required"
msgstr "Wymagana jest lista plików do otwarcia"
#. TRANSLATORS: The user tried to use an unsupported option on the command line
-#: ../client/pk-console.c:2176
+#: ../client/pk-console.c:2177
#, c-format
msgid "Option '%s' is not supported"
msgstr "Opcja \"%s\" nie jest obsÅugiwana"
#. TRANSLATORS: User does not have permission to do this
-#: ../client/pk-console.c:2189
+#: ../client/pk-console.c:2190
msgid "Incorrect privileges for this operation"
msgstr "Niepoprawne uprawnienia dla tego dziaÅania"
#. TRANSLATORS: Generic failure of what they asked to do
-#: ../client/pk-console.c:2192
+#: ../client/pk-console.c:2193
msgid "Command failed"
msgstr "Polecenie nie powiodÅo siÄ"
@@ -756,22 +759,22 @@ msgid "PackageKit Monitor"
msgstr "Monitor PackageKit"
#. TRANSLATORS: The package was not found in any software sources
-#: ../client/pk-tools-common.c:114
+#: ../client/pk-tools-common.c:118
#, c-format
msgid "The package could not be found"
msgstr "Nie można znaleÅºÄ pakietu"
#. TRANSLATORS: more than one package could be found that matched, to follow is a list of possible packages
-#: ../client/pk-tools-common.c:125
+#: ../client/pk-tools-common.c:130
msgid "More than one package matches:"
msgstr "Pasuje wiÄcej niż jeden pakiet:"
#. TRANSLATORS: This finds out which package in the list to use
-#: ../client/pk-tools-common.c:132
+#: ../client/pk-tools-common.c:137
msgid "Please choose the correct package: "
msgstr "ProszÄ wybraÄ poprawny pakiet: "
-#: ../client/pk-tools-common.c:157
+#: ../client/pk-tools-common.c:162
#, c-format
msgid "Please enter a number from 1 to %i: "
msgstr "ProszÄ podaÄ numer od 1 do %i: "
@@ -899,6 +902,55 @@ msgstr "Nie znaleziono pakietów dla systemu"
msgid "Installing..."
msgstr "Instalowanie..."
+#. TRANSLATORS: the action is non-localised
+#: ../contrib/app-install/pk-app-install-add.c:247
+#: ../contrib/app-install/pk-app-install-generate.c:247
+msgid "The action, one of 'create', 'add', or 'remove'"
+msgstr "DziaÅanie, jedno z \"create\", \"add\" lub \"remove\""
+
+#. TRANSLATORS: if we are specifing a out-of-tree database
+#: ../contrib/app-install/pk-app-install-add.c:250
+#: ../contrib/app-install/pk-app-install-generate.c:250
+#: ../contrib/app-install/pk-app-install-remove.c:90
+msgid "Main cache file to use (if not specififed, default is used)"
+msgstr ""
+"Używany gÅówny plik pamiÄci podrÄcznej (jeÅli nie podano, użyty zostanie "
+"domyÅlny)"
+
+#. TRANSLATORS: the source database, typically used for adding
+#: ../contrib/app-install/pk-app-install-add.c:253
+#: ../contrib/app-install/pk-app-install-generate.c:253
+msgid "Source cache file to add to the main database"
+msgstr "ŹródÅowy plik pamiÄci podrÄcznej do dodania do gÅównej bazy danych"
+
+#. TRANSLATORS: the icon directory
+#: ../contrib/app-install/pk-app-install-add.c:256
+#: ../contrib/app-install/pk-app-install-generate.c:256
+#: ../contrib/app-install/pk-app-install-remove.c:93
+msgid "Icon directory"
+msgstr "Katalog ikon"
+
+#. TRANSLATORS: the repo of the software source, e.g. fedora
+#: ../contrib/app-install/pk-app-install-add.c:259
+#: ../contrib/app-install/pk-app-install-generate.c:259
+#: ../contrib/app-install/pk-app-install-remove.c:96
+msgid "Name of the remote repo"
+msgstr "Nazwa zdalnego repozytorium"
+
+#. TRANSLATORS: tool that gets called when the command is not found
+#: ../contrib/app-install/pk-app-install-add.c:270
+#: ../contrib/app-install/pk-app-install-create.c:62
+#: ../contrib/app-install/pk-app-install-generate.c:270
+#: ../contrib/app-install/pk-app-install-remove.c:107
+msgid "PackageKit Application Database Installer"
+msgstr "Instalator bazy danych programów PackageKit"
+
+#. TRANSLATORS: if we are specifing a out-of-tree database
+#: ../contrib/app-install/pk-app-install-create.c:51
+msgid "Main database file to use (if not specififed, default is used)"
+msgstr ""
+"Używany gÅówny plik bazy danych (jeÅli nie podano, użyty zostanie domyÅlny)"
+
#: ../data/packagekit-catalog.xml.in.h:1
msgid "PackageKit Catalog"
msgstr "Katalog PackageKit"
commit e39367a1bfea8ff3f3df8723d382cdf4a3613a84
Author: Igor Pires Soares <igorsoares at gmail.com>
Date: Mon Feb 23 19:30:26 2009 +0000
Updated Brazilian Portuguese translation
Transmitted-via: Transifex (translate.fedoraproject.org)
diff --git a/po/pt_BR.po b/po/pt_BR.po
index e27483e..a04e9ec 100644
--- a/po/pt_BR.po
+++ b/po/pt_BR.po
@@ -8,8 +8,8 @@ msgid ""
msgstr ""
"Project-Id-Version: PackageKit\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-02-18 13:42+0000\n"
-"PO-Revision-Date: 2009-02-19 15:19-0300\n"
+"POT-Creation-Date: 2009-02-23 13:50+0000\n"
+"PO-Revision-Date: 2009-02-23 16:18-0300\n"
"Last-Translator: Igor Pires Soares <igor at projetofedora.org>\n"
"Language-Team: Brazilian Portuguese <fedora-trans-pt_br at redhat.com>\n"
"MIME-Version: 1.0\n"
@@ -250,16 +250,16 @@ msgstr "O pacote %s não pôde ser instalado: %s"
#: ../client/pk-console.c:747
#: ../client/pk-console.c:843
#: ../client/pk-console.c:960
-#: ../client/pk-tools-common.c:61
-#: ../client/pk-tools-common.c:79
-#: ../client/pk-tools-common.c:86
+#: ../client/pk-tools-common.c:62
+#: ../client/pk-tools-common.c:81
+#: ../client/pk-tools-common.c:89
#, c-format
msgid "Internal error: %s"
msgstr "Erro interno: %s"
#. TRANSLATORS: There was an error installing the packages. The detailed error follows
#: ../client/pk-console.c:728
-#: ../client/pk-console.c:1355
+#: ../client/pk-console.c:1356
#, c-format
msgid "This tool could not install the packages: %s"
msgstr "Esta ferramenta não pôde instalar os pacotes: %s"
@@ -405,262 +405,266 @@ msgid "To install"
msgstr "Instalando"
#. TRANSLATORS: searching takes some time....
-#: ../client/pk-console.c:1327
+#: ../client/pk-console.c:1328
msgid "Searching for package: "
msgstr "Pesquisando pelo pacote:"
#. TRANSLATORS: package was not found -- this is the end of a string ended in ...
-#: ../client/pk-console.c:1331
+#: ../client/pk-console.c:1332
msgid "not found."
msgstr "não encontrado."
#. TRANSLATORS: We didn't find any packages to install
-#: ../client/pk-console.c:1342
+#: ../client/pk-console.c:1343
msgid "No packages can be found to install"
msgstr "Nenhum pacote pôde ser localizado para instalação"
#. TRANSLATORS: installing new packages from package list
-#: ../client/pk-console.c:1348
+#: ../client/pk-console.c:1349
msgid "Installing packages"
msgstr "Instalando pacotes"
#. TRANSLATORS: The package name was not found in any software sources. The detailed error follows
-#: ../client/pk-console.c:1384
+#: ../client/pk-console.c:1385
#, c-format
msgid "This tool could not find the update details for %s: %s"
msgstr "Esta ferramenta não pôde localizar os detalhes de atualização para %s: %s"
#. TRANSLATORS: There was an error getting the details about the update for the package. The detailed error follows
-#: ../client/pk-console.c:1392
+#: ../client/pk-console.c:1393
#, c-format
msgid "This tool could not get the update details for %s: %s"
msgstr "Esta ferramenta não pôde obter os detalhes de atualização para %s: %s"
#. TRANSLATORS: This was an unhandled error, and we don't have _any_ context
-#: ../client/pk-console.c:1438
+#: ../client/pk-console.c:1439
msgid "Error:"
msgstr "Erro:"
#. TRANSLATORS: This a list of details about the package
-#: ../client/pk-console.c:1452
+#: ../client/pk-console.c:1453
msgid "Package description"
msgstr "Descrição do pacote"
#. TRANSLATORS: This a list files contained in the package
-#: ../client/pk-console.c:1486
+#: ../client/pk-console.c:1487
msgid "Package files"
msgstr "Arquivos do pacote"
#. TRANSLATORS: This where the package has no files
-#: ../client/pk-console.c:1494
+#: ../client/pk-console.c:1495
msgid "No files"
msgstr "Nenhum arquivo"
#. TRANSLATORS: This a request for a GPG key signature from the backend, which the client will prompt for later
-#: ../client/pk-console.c:1517
+#: ../client/pk-console.c:1518
msgid "Repository signature required"
msgstr "A assinatura do repositório é necessária"
#. TRANSLATORS: This a prompt asking the user to import the security key
-#: ../client/pk-console.c:1527
+#: ../client/pk-console.c:1528
msgid "Do you accept this signature?"
msgstr "Você aceita essa assinatura?"
#. TRANSLATORS: This is where the user declined the security key
-#: ../client/pk-console.c:1531
+#: ../client/pk-console.c:1532
msgid "The signature was not accepted."
msgstr "A assinatura não foi aceita."
#. TRANSLATORS: This a request for a EULA
-#: ../client/pk-console.c:1565
+#: ../client/pk-console.c:1566
msgid "End user license agreement required"
msgstr "à necessário um contrato de licença para o usuário final"
#. TRANSLATORS: This a prompt asking the user to agree to the license
-#: ../client/pk-console.c:1572
+#: ../client/pk-console.c:1573
msgid "Do you agree to this license?"
msgstr "Você concorda com a licença?"
#. TRANSLATORS: This is where the user declined the license
-#: ../client/pk-console.c:1576
+#: ../client/pk-console.c:1577
msgid "The license was refused."
msgstr "A licença foi recusada."
#. TRANSLATORS: This is when the daemon crashed, and we are up shit creek without a paddle
-#: ../client/pk-console.c:1605
+#: ../client/pk-console.c:1606
msgid "The daemon crashed mid-transaction!"
msgstr "O daemon travou no meio da transação!"
#. TRANSLATORS: This is the header to the --help menu
-#: ../client/pk-console.c:1658
+#: ../client/pk-console.c:1659
msgid "PackageKit Console Interface"
msgstr "Interface em Console do PackageKit"
#. these are commands we can use with pkcon
-#: ../client/pk-console.c:1660
+#: ../client/pk-console.c:1661
msgid "Subcommands:"
msgstr "Subcomandos:"
#. TRANSLATORS: command line argument, if we should show debugging information
#. TRANSLATORS: if we should show debugging data
-#: ../client/pk-console.c:1752
+#: ../client/pk-console.c:1753
#: ../client/pk-generate-pack.c:185
#: ../client/pk-monitor.c:125
#: ../contrib/command-not-found/pk-command-not-found.c:510
+#: ../contrib/app-install/pk-app-install-add.c:244
+#: ../contrib/app-install/pk-app-install-create.c:48
+#: ../contrib/app-install/pk-app-install-generate.c:244
+#: ../contrib/app-install/pk-app-install-remove.c:87
#: ../src/pk-main.c:199
msgid "Show extra debugging information"
msgstr "Mostrar informações extras de depuração"
#. TRANSLATORS: command line argument, just show the version string
-#: ../client/pk-console.c:1755
+#: ../client/pk-console.c:1756
#: ../client/pk-monitor.c:127
msgid "Show the program version and exit"
msgstr "Mostrar a versão do programa e sair"
#. TRANSLATORS: command line argument, use a filter to narrow down results
-#: ../client/pk-console.c:1758
+#: ../client/pk-console.c:1759
msgid "Set the filter, e.g. installed"
msgstr "Definir o filtro, p. ex.: instalados"
#. TRANSLATORS: command line argument, work asynchronously
-#: ../client/pk-console.c:1761
+#: ../client/pk-console.c:1762
msgid "Exit without waiting for actions to complete"
msgstr "Sair sem esperar pelo término das ações"
#. TRANSLATORS: This is when we could not connect to the system bus, and is fatal
-#: ../client/pk-console.c:1788
+#: ../client/pk-console.c:1789
msgid "This tool could not connect to system DBUS."
msgstr "Esta ferramenta não pôde conectar ao DBUS do sistema."
#. TRANSLATORS: The user specified an incorrect filter
-#: ../client/pk-console.c:1875
+#: ../client/pk-console.c:1876
msgid "The filter specified was invalid"
msgstr "O filtro especificado era inválido"
#. TRANSLATORS: a search type can be name, details, file, etc
-#: ../client/pk-console.c:1893
+#: ../client/pk-console.c:1894
msgid "A search type is required, e.g. name"
msgstr "Um tipo de pesquisa é requerido, p. ex. nome"
#. TRANSLATORS: the user needs to provide a search term
-#: ../client/pk-console.c:1899
-#: ../client/pk-console.c:1907
-#: ../client/pk-console.c:1915
-#: ../client/pk-console.c:1923
+#: ../client/pk-console.c:1900
+#: ../client/pk-console.c:1908
+#: ../client/pk-console.c:1916
+#: ../client/pk-console.c:1924
msgid "A search term is required"
msgstr "Um termo de pesquisa é requerido"
#. TRANSLATORS: the search type was provided, but invalid
-#: ../client/pk-console.c:1929
+#: ../client/pk-console.c:1930
msgid "Invalid search type"
msgstr "Tipo de pesquisa inválido"
#. TRANSLATORS: the user did not specify what they wanted to install
-#: ../client/pk-console.c:1935
+#: ../client/pk-console.c:1936
msgid "A package name or filename to install is required"
msgstr "O nome do pacote ou arquivo é requerido"
#. TRANSLATORS: geeky error, 99.9999% of users won't see this
-#: ../client/pk-console.c:1943
+#: ../client/pk-console.c:1944
msgid "A type, key_id and package_id are required"
msgstr "Um tipo, key_id e package_id são requeridos"
#. TRANSLATORS: the user did not specify what they wanted to remove
-#: ../client/pk-console.c:1951
+#: ../client/pk-console.c:1952
msgid "A package name to remove is required"
msgstr "O nome do pacote para remoção é requerido"
#. TRANSLATORS: the user did not specify anything about what to download or where
-#: ../client/pk-console.c:1958
+#: ../client/pk-console.c:1959
msgid "A destination directory and then the package names to download are required"
msgstr "O diretório de destino seguido dos nomes dos pacotes a serem baixados é requerido"
#. TRANSLATORS: the directory does not exist, so we can't continue
-#: ../client/pk-console.c:1964
+#: ../client/pk-console.c:1965
msgid "Directory not found"
msgstr "Diretório não encontrado"
#. TRANSLATORS: geeky error, 99.9999% of users won't see this
-#: ../client/pk-console.c:1971
+#: ../client/pk-console.c:1972
msgid "A licence identifier (eula-id) is required"
msgstr "Um identificador de licença (eula-id) é requerido"
#. TRANSLATORS: geeky error, 99.9999% of users won't see this
-#: ../client/pk-console.c:1980
+#: ../client/pk-console.c:1981
msgid "A transaction identifier (tid) is required"
msgstr "Um identificador de transação (tid) é requerido"
#. TRANSLATORS: The user did not specify a package name
-#: ../client/pk-console.c:1996
+#: ../client/pk-console.c:1997
msgid "A package name to resolve is required"
msgstr "O nome de pacote a ser analisado é requerido"
#. TRANSLATORS: The user did not specify a repository (software source) name
-#: ../client/pk-console.c:2004
-#: ../client/pk-console.c:2012
+#: ../client/pk-console.c:2005
+#: ../client/pk-console.c:2013
msgid "A repository name is required"
msgstr "O nome do repositório é requerido"
#. TRANSLATORS: The user didn't provide any data
-#: ../client/pk-console.c:2020
+#: ../client/pk-console.c:2021
msgid "A repo name, parameter and value are required"
msgstr "Um nome de repositório, parâmetro e um valor são requeridos"
#. TRANSLATORS: The user didn't specify what action to use
-#: ../client/pk-console.c:2033
+#: ../client/pk-console.c:2034
msgid "An action, e.g. 'update-system' is required"
msgstr "Uma ação, p. ex. \"update-system\" é requerida"
#. TRANSLATORS: The user specified an invalid action
-#: ../client/pk-console.c:2039
+#: ../client/pk-console.c:2040
msgid "A correct role is required"
msgstr "Um modo correto é requerido"
#. TRANSLATORS: we keep a database updated with the time that an action was last executed
-#: ../client/pk-console.c:2045
+#: ../client/pk-console.c:2046
msgid "Failed to get the time since this action was last completed"
msgstr "Falha ao obter o tempo em que essa ação foi completada pela última vez"
#. 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:2054
-#: ../client/pk-console.c:2065
-#: ../client/pk-console.c:2073
-#: ../client/pk-console.c:2089
-#: ../client/pk-console.c:2097
+#: ../client/pk-console.c:2055
+#: ../client/pk-console.c:2066
+#: ../client/pk-console.c:2074
+#: ../client/pk-console.c:2090
+#: ../client/pk-console.c:2098
#: ../client/pk-generate-pack.c:241
msgid "A package name is required"
msgstr "O nome do pacote é requerido"
#. TRANSLATORS: each package "provides" certain things, e.g. mime(gstreamer-decoder-mp3), the user didn't specify it
-#: ../client/pk-console.c:2081
+#: ../client/pk-console.c:2082
msgid "A package provide string is required"
msgstr "à necessário especificar o que o pacote fornece"
#. TRANSLATORS: The user didn't specify a filename to create as a list
-#: ../client/pk-console.c:2105
+#: ../client/pk-console.c:2106
msgid "A list file name to create is required"
msgstr "O nome de arquivo da lista a ser criada é requerido"
#. TRANSLATORS: The user didn't specify a filename to open as a list
-#: ../client/pk-console.c:2114
-#: ../client/pk-console.c:2123
+#: ../client/pk-console.c:2115
+#: ../client/pk-console.c:2124
msgid "A list file to open is required"
msgstr "Uma lista de arquivos a serem abertos é requerida"
#. TRANSLATORS: The user tried to use an unsupported option on the command line
-#: ../client/pk-console.c:2176
+#: ../client/pk-console.c:2177
#, c-format
msgid "Option '%s' is not supported"
msgstr "A opção \"%s\" não é suportada"
#. TRANSLATORS: User does not have permission to do this
-#: ../client/pk-console.c:2189
+#: ../client/pk-console.c:2190
msgid "Incorrect privileges for this operation"
msgstr "Privilégios incorretos para esta operação"
#. TRANSLATORS: Generic failure of what they asked to do
-#: ../client/pk-console.c:2192
+#: ../client/pk-console.c:2193
msgid "Command failed"
msgstr "O comando falhou"
@@ -780,21 +784,21 @@ msgid "PackageKit Monitor"
msgstr "Monitor do PackageKit"
#. TRANSLATORS: The package was not found in any software sources
-#: ../client/pk-tools-common.c:114
+#: ../client/pk-tools-common.c:118
msgid "The package could not be found"
msgstr "O pacote não pôde ser encontrado"
#. TRANSLATORS: more than one package could be found that matched, to follow is a list of possible packages
-#: ../client/pk-tools-common.c:125
+#: ../client/pk-tools-common.c:130
msgid "More than one package matches:"
msgstr "Há mais de um pacote correspondente:"
#. TRANSLATORS: This finds out which package in the list to use
-#: ../client/pk-tools-common.c:132
+#: ../client/pk-tools-common.c:137
msgid "Please choose the correct package: "
msgstr "Por favor, escolha o pacote correto: "
-#: ../client/pk-tools-common.c:157
+#: ../client/pk-tools-common.c:162
#, c-format
msgid "Please enter a number from 1 to %i: "
msgstr "Por favor, insira um número entre 1 e %i: "
@@ -922,6 +926,52 @@ msgstr "Nenhum pacote localizado para o seu sistema"
msgid "Installing..."
msgstr "Instalando..."
+#. TRANSLATORS: the action is non-localised
+#: ../contrib/app-install/pk-app-install-add.c:247
+#: ../contrib/app-install/pk-app-install-generate.c:247
+msgid "The action, one of 'create', 'add', or 'remove'"
+msgstr "A ação, uma entre as opções \"create\", \"add\" ou \"remove\""
+
+#. TRANSLATORS: if we are specifing a out-of-tree database
+#: ../contrib/app-install/pk-app-install-add.c:250
+#: ../contrib/app-install/pk-app-install-generate.c:250
+#: ../contrib/app-install/pk-app-install-remove.c:90
+msgid "Main cache file to use (if not specififed, default is used)"
+msgstr "O arquivo principal de cache a ser usado (se não for especificado, o padrão é usado)"
+
+#. TRANSLATORS: the source database, typically used for adding
+#: ../contrib/app-install/pk-app-install-add.c:253
+#: ../contrib/app-install/pk-app-install-generate.c:253
+msgid "Source cache file to add to the main database"
+msgstr "O arquivo fonte do cache para adicionar ao banco de dados principal"
+
+#. TRANSLATORS: the icon directory
+#: ../contrib/app-install/pk-app-install-add.c:256
+#: ../contrib/app-install/pk-app-install-generate.c:256
+#: ../contrib/app-install/pk-app-install-remove.c:93
+msgid "Icon directory"
+msgstr "Diretório de Ãcones"
+
+#. TRANSLATORS: the repo of the software source, e.g. fedora
+#: ../contrib/app-install/pk-app-install-add.c:259
+#: ../contrib/app-install/pk-app-install-generate.c:259
+#: ../contrib/app-install/pk-app-install-remove.c:96
+msgid "Name of the remote repo"
+msgstr "Nome do repositório remoto"
+
+#. TRANSLATORS: tool that gets called when the command is not found
+#: ../contrib/app-install/pk-app-install-add.c:270
+#: ../contrib/app-install/pk-app-install-create.c:62
+#: ../contrib/app-install/pk-app-install-generate.c:270
+#: ../contrib/app-install/pk-app-install-remove.c:107
+msgid "PackageKit Application Database Installer"
+msgstr "Instalador do bancos de dados de aplicativos do PackageKit"
+
+#. TRANSLATORS: if we are specifing a out-of-tree database
+#: ../contrib/app-install/pk-app-install-create.c:51
+msgid "Main database file to use (if not specififed, default is used)"
+msgstr "Arquivo principal do banco de dados a ser usado (se não for especificado o padrão é usado)"
+
#: ../data/packagekit-catalog.xml.in.h:1
msgid "PackageKit Catalog"
msgstr "Catálogo do PackageKit"
commit e170df69d22fbd412408c803ecd0b7a5ff3a2d55
Author: Richard Hughes <richard at hughsie.com>
Date: Mon Feb 23 18:04:47 2009 +0000
dummy: add other package details for updates
diff --git a/backends/dummy/pk-backend-dummy.c b/backends/dummy/pk-backend-dummy.c
index a800522..741e26b 100644
--- a/backends/dummy/pk-backend-dummy.c
+++ b/backends/dummy/pk-backend-dummy.c
@@ -150,16 +150,53 @@ backend_get_depends (PkBackend *backend, PkBitfield filters, gchar **package_ids
static void
backend_get_details (PkBackend *backend, gchar **package_ids)
{
+ guint i;
+ guint len;
+ const gchar *package_id;
+
pk_backend_set_status (backend, PK_STATUS_ENUM_QUERY);
- pk_backend_details (backend, "gnome-power-manager;2.6.19;i386;fedora", "GPL2", PK_GROUP_ENUM_PROGRAMMING,
-"Scribus is an desktop *open source* page layöut program with "
-"the aim of producing commercial grade output in **PDF** and "
-"**Postscript**, primarily, though not exclusively for Linux.\n"
-"\n"
-"While the goals of the program are for ease of use and simple easy to "
-"understand tools, Scribus offers support for professional publishing "
-"features, such as CMYK color, easy PDF creation, Encapsulated Postscript "
-"import/export and creation of color separations.", "http://live.gnome.org/GnomePowerManager", 11214665);
+
+ /* each one has a different detail for testing */
+ len = g_strv_length (package_ids);
+ for (i=0; i<len; i++) {
+ package_id = package_ids[i];
+ if (egg_strequal (package_id, "powertop;1.8-1.fc8;i386;fedora")) {
+ pk_backend_details (backend, "powertop;1.8-1.fc8;i386;fedora", "GPL2", PK_GROUP_ENUM_PROGRAMMING,
+ "PowerTOP is a tool that finds the software component(s) that make your "
+ "computer use more power than necessary while it is idle.", "http://live.gnome.org/powertop", 101*1024);
+ } else if (egg_strequal (package_id, "kernel;2.6.23-0.115.rc3.git1.fc8;i386;installed")) {
+ pk_backend_details (backend, "kernel;2.6.23-0.115.rc3.git1.fc8;i386;installed", "GPL2", PK_GROUP_ENUM_PROGRAMMING,
+ "The kernel package contains the Linux kernel (vmlinuz), the core of any "
+ "Linux operating system. The kernel handles the basic functions of the "
+ "operating system: memory allocation, process allocation, device input "
+ "and output, etc.", "http://www.kernel.org", 33*1024*1024);
+ } else if (egg_strequal (package_id, "gtkhtml2;2.19.1-4.fc8;i386;fedora")) {
+ pk_backend_details (backend, "gtkhtml2;2.19.1-4.fc8;i386;fedora", "GPL2", PK_GROUP_ENUM_PROGRAMMING,
+ "GtkHTML2 (sometimes called libgtkhtml) is a widget for displaying html "
+ "pages.", "http://live.gnome.org/gtkhtml", 133*1024);
+ } else if (egg_strequal (package_id, "vino;2.24.2.fc9;i386;fedora")) {
+ pk_backend_details (backend, "vino;2.24.2.fc9;i386;fedora", "GPL2", PK_GROUP_ENUM_PROGRAMMING,
+ "Vino is a VNC server for GNOME. It allows remote users to "
+ "connect to a running GNOME session using VNC.", "http://live.gnome.org/powertop", 3*1024*1024);
+ } else if (egg_strequal (package_id, "gnome-power-manager;2.6.19;i386;fedora")) {
+ pk_backend_details (backend, "gnome-power-manager;2.6.19;i386;fedora", "GPL2", PK_GROUP_ENUM_PROGRAMMING,
+ "GNOME Power Manager uses the information and facilities provided by HAL "
+ "displaying icons and handling user callbacks in an interactive GNOME session.\n"
+ "GNOME Power Preferences allows authorised users to set policy and "
+ "change preferences.", "http://projects.gnome.org/gnome-power-manager/", 13*1024*1024);
+ //TODO: add other packages
+ } else {
+ pk_backend_details (backend, "scribus;1.3.4-1.fc8;i386;fedora", "GPL2", PK_GROUP_ENUM_PROGRAMMING,
+ "Scribus is an desktop *open source* page layöut program with "
+ "the aim of producing commercial grade output in **PDF** and "
+ "**Postscript**, primarily, though not exclusively for Linux.\n"
+ "\n"
+ "While the goals of the program are for ease of use and simple easy to "
+ "understand tools, Scribus offers support for professional publishing "
+ "features, such as CMYK color, easy PDF creation, Encapsulated Postscript "
+ "import/export and creation of color separations.", "http://live.gnome.org/scribus", 44*1024*1024);
+ }
+ }
pk_backend_finished (backend);
}
commit ac073dc7fd0bad46de18e3fab17edd499e173f06
Author: Richard Hughes <richard at hughsie.com>
Date: Mon Feb 23 13:29:19 2009 +0000
bugfix: when we reset a PkClient, get a new reference to a PkPackageList, rather than clearing one that clients may have reffed for personal use
diff --git a/lib/packagekit-glib/pk-client.c b/lib/packagekit-glib/pk-client.c
index 68debd3..21c00f8 100644
--- a/lib/packagekit-glib/pk-client.c
+++ b/lib/packagekit-glib/pk-client.c
@@ -4413,6 +4413,7 @@ pk_client_reset (PkClient *client, GError **error)
g_free (client->priv->cached_directory);
g_strfreev (client->priv->cached_package_ids);
g_strfreev (client->priv->cached_full_paths);
+ g_object_unref (client->priv->package_list);
/* clear restart array */
g_ptr_array_foreach (client->priv->require_restart_list, (GFunc) pk_package_id_free, NULL);
@@ -4435,8 +4436,9 @@ pk_client_reset (PkClient *client, GError **error)
client->priv->role = PK_ROLE_ENUM_UNKNOWN;
client->priv->is_finished = FALSE;
client->priv->timeout = -1;
+ client->priv->package_list = pk_package_list_new ();
- pk_obj_list_clear (PK_OBJ_LIST (client->priv->package_list));
+ /* TODO: make clean */
pk_obj_list_clear (client->priv->cached_data);
return TRUE;
}
commit d4c4f310a9373d4c9870fe0434627afe09b6ec7a
Merge: aede8d5... 87f41b4...
Author: Richard Hughes <richard at hughsie.com>
Date: Mon Feb 23 10:42:33 2009 +0000
Merge branch 'master' of git+ssh://hughsie@git.packagekit.org/srv/git/PackageKit
commit aede8d54644218d613e6d1b4bb8473d428bd8855
Author: Richard Hughes <richard at hughsie.com>
Date: Mon Feb 23 10:38:26 2009 +0000
trivial: post release version bump
diff --git a/RELEASE b/RELEASE
index 90b9d07..7104e74 100644
--- a/RELEASE
+++ b/RELEASE
@@ -3,8 +3,8 @@ PackageKit Release Notes
1. Write NEWS entries for PackageKit and gnome-packagekit in the same
format as usual. Ignore any trivial commits.
-git shortlog PACKAGEKIT_0_4_3.. | grep -v trivial | grep -v Merge > NEWS.new
-git shortlog GNOME_PACKAGEKIT_0_4_3.. | grep -v trivial | grep -v Merge > NEWS.new
+git shortlog PACKAGEKIT_0_4_4.. | grep -v trivial | grep -v Merge > NEWS.new
+git shortlog GNOME_PACKAGEKIT_0_4_4.. | grep -v trivial | grep -v Merge > NEWS.new
2. Add download date to docs/html/pk-download.html, save file.
@@ -12,8 +12,8 @@ git shortlog GNOME_PACKAGEKIT_0_4_3.. | grep -v trivial | grep -v Merge > NEWS.n
4. Commit changes in PackageKit git:
-git commit -a -m "Release version 0.4.4"
-git tag -a -f -m "Release 0.4.4" PACKAGEKIT_0_4_4
+git commit -a -m "Release version 0.4.5"
+git tag -a -f -m "Release 0.4.5" PACKAGEKIT_0_4_5
git push --tags
git push
git push git+ssh://hughsient@git.freedesktop.org/git/packagekit
@@ -21,8 +21,8 @@ git push --tags git+ssh://hughsient@git.freedesktop.org/git/packagekit
5. Commit changes in gnome-packagekit git:
-git commit -a -m "Release version 0.4.4"
-git-tag GNOME_PACKAGEKIT_0_4_4
+git commit -a -m "Release version 0.4.5"
+git-tag GNOME_PACKAGEKIT_0_4_5
git push --tags
git push
@@ -44,9 +44,9 @@ git push
11. Send an email to packagekit at lists.freedesktop.org
=================================================
-Subject: PackageKit and gnome-packagekit 0.4.4 released!
+Subject: PackageKit and gnome-packagekit 0.4.5 released!
-Today I released PackageKit and gnome-packagekit 0.4.4.
+Today I released PackageKit and gnome-packagekit 0.4.5.
PackageKit release notes: http://cgit.freedesktop.org/packagekit/tree/NEWS
diff --git a/configure.ac b/configure.ac
index e4478ab..4fc6056 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,6 +1,6 @@
AC_PREREQ(2.52)
-AC_INIT(PackageKit, 0.4.4)
+AC_INIT(PackageKit, 0.4.5)
AC_CONFIG_SRCDIR(src)
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
AM_CONFIG_HEADER(config.h)
commit 87f41b4550983f87bdd9da5f8448fed176c6e44f
Merge: b0fdc75... 6427e3b...
Author: Sebastian Heinlein <devel at glatzor.de>
Date: Mon Feb 23 11:37:24 2009 +0100
Merge branch 'master' of git+ssh://glatzor@git.packagekit.org/srv/git/PackageKit
commit b0fdc7542d8fab9a140539e0c25f6668c8c5d996
Author: Sebastian Heinlein <devel at glatzor.de>
Date: Mon Feb 23 11:36:35 2009 +0100
AppInst/Apt: Update the postinst script to store desktop file information in the desktop.db
diff --git a/backends/apt/update-packagekit-app-data b/backends/apt/update-packagekit-app-data
index b0e6a57..06cc384 100755
--- a/backends/apt/update-packagekit-app-data
+++ b/backends/apt/update-packagekit-app-data
@@ -3,6 +3,8 @@
# Authors: Michael Vogt <mvo at ubuntu.com>
# Sebastian Heinlein <devel at glatzor.de>
+import re
+import sqlite3
import sys
import glob
import os
@@ -14,6 +16,9 @@ from optparse import OptionParser
import gdbm
+RE_TRANSLATED_NAME = "Name\[([a-z]+)\]"
+RE_TRANSLATED_COMMENT = "Comment\[([a-z]+)\]"
+
try:
import xdg.DesktopEntry
except ImportError, e:
@@ -23,6 +28,12 @@ except ImportError, e:
def generate_mime_map(desktop_dir, cache_dir):
dicts = { 'mime':{}, 'codec':{} }
+ db = sqlite3.connect("/var/lib/app-install/desktop.db")
+ db_cursor = db.cursor()
+ db_cursor.execute("DELETE FROM translations")
+ db_cursor.execute("DELETE FROM applications")
+ db.commit()
+
def record_provider(de, cp, defield,dictname):
try:
keys = de.get(defield, list=True)
@@ -54,6 +65,39 @@ def generate_mime_map(desktop_dir, cache_dir):
record_provider(de, cp, 'MimeType','mime')
record_provider(de, cp, 'X-AppInstall-Codecs','codec')
+ id = os.path.splitext(os.path.basename(fn))[0]
+ name = de.get("Name", locale=False)
+ categories = de.get("Categories", locale=False)
+ comment = de.get("Comment", locale=False)
+ names = {}
+ comments = {}
+ db_cursor.execute("""INSERT INTO applications
+ VALUES (?, ?, ?, ?, ?, ?)""",
+ (id, package, categories, component, name, comment))
+ # Get localised name and comments
+ if de.defaultGroup in de.content:
+ for key in de.content[de.defaultGroup]:
+ match_name = re.match(RE_TRANSLATED_NAME, key)
+ if match_name is not None:
+ value = de.content[de.defaultGroup][key]
+ lang = match_name.group(1)
+ names[lang] = value.decode("utf-8", "ignore")
+ if lang not in comments:
+ comments[lang] = ""
+ match_comment = re.match(RE_TRANSLATED_COMMENT, key)
+ if match_comment is not None:
+ value = de.content[de.defaultGroup][key]
+ lang = match_comment.group(1)
+ comments[lang] = value.decode("utf-8", "ignore")
+ if lang not in names:
+ names[lang] = ""
+ for lang in names:
+ db_cursor.execute("""INSERT INTO translations
+ VALUES (?, ?, ?, ?)""",
+ (id, names[lang], comments[lang], lang))
+ db.commit()
+ db_cursor.close()
+
for (dictname, dict) in dicts.iteritems():
g = gdbm.open(os.path.join(cache_dir,
dictname+"-map.gdbm"),
More information about the PackageKit-commit
mailing list