Accepting request 584774 from GNOME:Factory

Scripted push of project GNOME:Next (forwarded request 583612 from dimstar)

OBS-URL: https://build.opensuse.org/request/show/584774
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/PackageKit?expand=0&rev=171
This commit is contained in:
Dominique Leuenberger 2018-03-12 11:09:52 +00:00 committed by Git OBS Bridge
commit cb42aabf1f
7 changed files with 112 additions and 20 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:757f902f2fb295790b64c345a561124300d54945cd33c690c2a176cc8dba885d
size 1439380

View File

@ -1,16 +0,0 @@
-----BEGIN PGP SIGNATURE-----
iQIcBAABAgAGBQJaVLodAAoJEICFj6OPYq90GVwQAJtrEAOubkQ9ma2DroyPw2RK
gGvqQsNOG7YWCC9t8VbbHezhoKfjzPmJ9jaE46F7RzPKi523DQcPYL3eqCH8EoWi
X6X/3S+GzyPiJr3kzfPFk8nZvgmDbAU+xhuWFa96k+NgBwnEuD2tg02YCSlIz157
Iby9zoAnUXG5lMplwqBiJ0FzJtMFqXLk6tjbFf9x4ajMJZjst7LEBoJAspuT3xN5
o9LRyaGnuJ1H2ZjH58/EBSXgJf9I94luf38Hf7RjAOid8dlJ7C1HkLiQOft2BY7H
WYfnjMJkMPuSGVRQe2869t7oEydRR/b+rlbvwpEtcMDBB1XxQWIQiY/PH/kdFtvs
+vtClY/hjSJVKU+ovtyy62woz+SKHLU5KBP/5oX9x52ZMhaQXr32k6L7PyfbXZly
Z/giAhxatj9LqSK0CpLdydjAHOb90JH7OX52NjxJsLALVyOtYAu0gT5y20w9n2B4
JSi64iuDQKukqUDdSAzca7vdpfSyFBbBmdn91UxRpq2vLfYaVmKRm46cZq6N1vbk
ACM5QkyN/1rjO7yMqs8e7befldIzxUxuln1H8Ytd3+zAWjKBnXa0+WU7xNaWaHKC
bhN19T2ZhXeoQlBgjtfxFhhDdnTZ4wgM5fhEkbU9PbMDIgO2GGQiHoY/GaWtfs0L
dFYDwqPO3Mw2XpUDLEAs
=cJQN
-----END PGP SIGNATURE-----

3
PackageKit-1.1.9.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a49ffa7ee4f023589a3520afd498a951eb10e2e0b81972c9f767d27a6addbf47
size 1436288

View File

@ -0,0 +1,16 @@
-----BEGIN PGP SIGNATURE-----
iQIcBAABAgAGBQJanXUKAAoJEICFj6OPYq90aHYQAImBKtnzdvgwjzwYH76PlZzG
XW41lEkLZGqN6ZOLc+EccMyGhAmGimghBPNUyKNycpwPPX4FXw9bMd1+k9RxGb1T
uhH3qS5UmuCuzzDloVCIpkxNn0hfpDeAqKU+gSGVvsHyWQTGZeDV54Xt26uFFmei
fOWLGENx09qGD+4lRmV0wpxRa8SaeVS0TFh1bRMNCcg0S3cMql7FReXUkegRjc/8
RyTcXQbYqpS7DOmdNwnzLE/6ODQYRCbS/l10GeHW6yK6jW0j+hUjSuEr5If2LV1r
+bFpMIHndh25HyTFqR06/ZJ+MzZ6yIGgLPbzJLePmMx0LFmZOjcwg9gNj2pnWEIG
GC8Y4iABau1fbUsKxXwBZJgBSSy3IzzQJwk5Gb2FfwmR+FQHZxOVhM6Kh3WLaVcs
2wUY+7zDF231HlozFQ6Z3D6T78WiZVJN6Jw0Jlky8bT5dVIwoOSrsBaDZaILRQBQ
AOLQQ0M7cOPpP4xVEM3V+Ljs1X9rXtRN1IwLhJX5XqWpRogep+7pSPvdGe/MonGc
+F/RcO31MKzw8goT5kQizKa53t7fdheAq+GeH0+Jf6vSAKMBov/OBMd35hszqjGe
0UlIjx4qNUDgSFXHfriFl4YLidMaeyr3a7yrk1NoOsUksvBGoawFAgyl6UfimzRK
pXash033FLFmSeJ0UfH0
=tMyq
-----END PGP SIGNATURE-----

View File

@ -0,0 +1,64 @@
Index: PackageKit-1.1.7/backends/zypp/pk-backend-zypp.cpp
===================================================================
--- PackageKit-1.1.7.orig/backends/zypp/pk-backend-zypp.cpp
+++ PackageKit-1.1.7/backends/zypp/pk-backend-zypp.cpp
@@ -2151,6 +2151,59 @@ pk_backend_get_details (PkBackend *backe
pk_backend_job_thread_create (job, backend_get_details_thread, NULL, NULL);
}
+/**
+ * backend_get_details_local_thread:
+ */
+static void
+backend_get_details_local_thread (PkBackendJob *job, GVariant *params, gpointer user_data)
+{
+ MIL << endl;
+ RepoManager manager;
+ ZyppJob zjob(job);
+ ZYpp::Ptr zypp = zjob.get_zypp();
+
+ gchar **full_paths;
+ g_variant_get (params, "(^a&s)", &full_paths);
+
+ if (zypp == NULL){
+ return;
+ }
+
+ pk_backend_job_set_status (job, PK_STATUS_ENUM_QUERY);
+
+ for (guint i = 0; full_paths[i]; i++) {
+
+ // check if file is really a rpm
+ Pathname rpmPath (full_paths[i]);
+ target::rpm::RpmHeader::constPtr rpmHeader = target::rpm::RpmHeader::readPackage (rpmPath, target::rpm::RpmHeader::NOSIGNATURE);
+
+ if (rpmHeader == NULL) {
+ zypp_backend_finished_error (
+ job, PK_ERROR_ENUM_INTERNAL_ERROR,
+ "%s is not valid rpm-File", full_paths[i]);
+ return;
+ }
+
+ pk_backend_job_details (job,
+ (rpmHeader->tag_name () + ";" + rpmHeader->tag_version () + "-" + rpmHeader->tag_release () + ";" + rpmHeader->tag_arch ().asString () + ";").c_str (),
+ rpmHeader->tag_summary ().c_str (),
+ rpmHeader->tag_license ().c_str (),
+ get_enum_group (rpmHeader->tag_group ()),
+ rpmHeader->tag_description ().c_str (),
+ rpmHeader->tag_url ().c_str (),
+ (gulong)rpmHeader->tag_size ().blocks (zypp::ByteCount::B));
+ }
+}
+
+/**
+ * pk_backend_get_details_local:
+ */
+void
+pk_backend_get_details_local (PkBackend *backend, PkBackendJob *job, gchar **full_paths)
+{
+ pk_backend_job_thread_create (job, backend_get_details_local_thread, NULL, NULL);
+}
+
static void
backend_get_distro_upgrades_thread(PkBackendJob *job, GVariant *params, gpointer user_data)
{

View File

@ -1,8 +1,33 @@
-------------------------------------------------------------------
Mon Mar 5 17:11:37 UTC 2018 - dimstar@opensuse.org
- Update to version 1.1.9:
+ Fix missing PK_STATUS_ENUM_RUN_HOOK in pk-enum.c.
+ Fix Qt annotation on DBus signature.
+ client: Fix an invalid read when cancelling races with Finish.
+ engine: Fix a memory leak when handling GetTransactionList.
+ Fix getting user session ID with D-Bus "user bus" model.
+ Fix g_object_ref() type cast warnings with glib 2.56.
+ Rename "Software Sources" to "Software Repositories".
+ transaction: Don't leak polkit authority.
+ transaction: Fix a memory leak when authorizing actions.
+ transaction: Log transaction completed messages on debug, not
info level.
+ Backends:
- zypp: remove memory leak from zypp backend.
- Various changes related to aptcc, dnf, slack and urpmi.
-------------------------------------------------------------------
Wed Feb 28 16:38:10 UTC 2018 - dimstar@opensuse.org
- Modernize spec-file by calling spec-cleaner
-------------------------------------------------------------------
Thu Feb 22 06:51:52 UTC 2018 - sckang@suse.com
- Add PackageKit-zypp-backend-get-details-local.patch: Implement
GetDetailsLocal method in zypp backend (bsc#1008287).
-------------------------------------------------------------------
Mon Feb 19 11:25:34 UTC 2018 - dimstar@opensuse.org

View File

@ -24,7 +24,7 @@
%define _fillupdir %{_localstatedir}/adm/fillup-templates
%endif
Name: PackageKit
Version: 1.1.8
Version: 1.1.9
Release: 0
Summary: Simple software installation management software
License: GPL-2.0-or-later
@ -40,6 +40,8 @@ Patch0: PackageKit-avoid-endless-loop-on-autoupdate.patch
Patch1: PackageKit-zypp-backend-improve-refresh-cache.patch
# PATCH-FIX-OPENSUSE PackageKit-cron-without-sleep.patch boo#1071521 dimstar@opensuse.org -- Do not sleep in the cron job; our cron mechansim has sufficient randomization
Patch2: PackageKit-cron-without-sleep.patch
# PATCH-FIX-UPSTREAM PackageKit-zypp-backend-get-details-local.patch bsc#1008287 sckang -- Implement GetDetailsLocal method in zypp backend
Patch3: PackageKit-zypp-backend-get-details-local.patch
BuildRequires: NetworkManager-devel
BuildRequires: fdupes
BuildRequires: gcc-c++
@ -224,6 +226,7 @@ This package provides the upstream default configuration for PackageKit.
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%if !0%{?is_opensuse}
translation-update-upstream
%endif