Richard Hughes | 17 Jun 2013 15:51
Picon

Small API fixup

I've just committed this:

commit c0f93fb6119be8fe821a9f0191a2e655dc529d30
Author: Richard Hughes <richard@...>
Date:   Mon Jun 17 14:48:53 2013 +0100

    Make pk_backend_job_files() accept an array of strings

    At the moment C/C++ backends have to convert from char** to char* which the
    daemon promptly converts back to char**.

    There's no point penalising all the backends for the spawned
backends sake and
    doing all the splitting and joining hurts performance for packages
that have a
    lot of files.

A couple of the non-spawned backends will need a tiny patch in the
next couple of weeks. I'll fix dummy and zif now.

Thanks,

Richard.
Anders F Björklund | 16 Jun 2013 22:00
Picon
Gravatar

FreeBSD and Ports/Pkg


I merged the updates for the Ports backend and for FreeBSD builds.

It updates the backend to 0.8, and fixes some portability issues...

Apparently there are some GSOC projects working on a "Pkg" backend:

https://wiki.freebsd.org/pkgng (it would be native, rather than Ruby)

--anders

Ikey Doherty | 8 Jun 2013 18:18
Gravatar

[PATCH] Implement 'download-packages'

# HG changeset patch
# User Ikey Doherty <ikey@...>
# Date 1370708058 -3600
# Node ID 09d65a071a3f87af374d01f44804b1c1246c7d3f
# Parent  e879418c1a584364fe9f035dd17633bef4eb4ac6
Implement 'download-packages'

diff -r e879418c1a58 -r 09d65a071a3f backends/pisi/pisiBackend.py
--- a/backends/pisi/pisiBackend.py	Sat Jun 08 13:46:12 2013 +0100
+++ b/backends/pisi/pisiBackend.py	Sat Jun 08 17:14:18 2013 +0100
 <at>  <at>  -245,7 +245,43  <at>  <at> 
             self.update_detail(package_id, updates, obsoletes, vendor_url,
                 bugzilla_url, cve_url, "none", update_message, changelog,
                 state, issued, updated)
-    
+
+    def download_packages(self, directory, package_ids):
+        """ Download the given packages to a directory """
+        self.allow_cancel (False)
+        self.percentage (None)
+        self.status (STATUS_DOWNLOAD)
+        
+        packages = list()
+        
+        def progress_cb (**kw):
+            self.percentage (int(kw['percent']))
+            
+        ui = SimplePisiHandler ()
+        for package_id in package_ids:
+            package = self.get_package_from_id (package_id)[0]
(Continue reading)

Ikey Doherty | 8 Jun 2013 14:55
Gravatar

[PATCH 0 of 4] Improve the PiSi backend

Improve the PiSi backend, and make it work with the 0.8.9 release.
Ikey Doherty | 8 Jun 2013 01:22
Gravatar

[PATCH] Make pisi backend usable once more

# Make the PiSi backend usable once more
# This patch is intended only for testing, and is in need of review and
# suggestions.
diff -ruNb a/backends/pisi/pisiBackend.py b/backends/pisi/pisiBackend.py
--- a/backends/pisi/pisiBackend.py	2013-04-11 12:58:36.000000000 +0100
+++ b/backends/pisi/pisiBackend.py	2013-06-08 00:05:55.906656197 +0100
 <at>  <at>  -170,14 +170,16  <at>  <at> 

          if self.packagedb.has_package(package):
              pkg = self.packagedb.get_package(package)
+            repo = self.packagedb.get_package_repo (pkg.name, None)
+            pkg_id = self.get_package_id (pkg.name, 
self.__get_package_version(pkg), pkg.architecture, repo[1])

              if self.groups.has_key(pkg.partOf):
                  group = self.groups[pkg.partOf]
              else:
                  group = GROUP_UNKNOWN

-            self.details("%s-%s" % (pkg.name, 
self.__get_package_version(pkg)),
-                            pkg.license,
+            self.details(pkg_id,
+                            ",".join (pkg.license),
                              group,
                              pkg.description,
                              pkg.packageURI,
 <at>  <at>  -193,14 +195,16  <at>  <at> 
          package = self.get_package_from_id(package_ids[0])[0]

(Continue reading)

Richard Hughes | 20 May 2013 15:40
Picon

PackageKit 0.8.9

Release early, release often:

Version 0.8.9
~~~~~~~~~~~~~
Released: 2013-05-20

Backends:
 - yum: Update the comps->group mapping for Fedora 19 (Richard Hughes)
 - yum: When converting to unicode special case YumBaseError (Richard Hughes)

New Features:
 - Add 'pkcon backend-details' to be get details of the selected
backend (Richard Hughes)

Bugfixes:
 - Add fallback for older libarchive (Anders F Bjorklund)
 - Do not rely on Python2 to write UTF-8 strings (Richard Hughes)
 - Do not use -fPIE when calling g-ir-scanner (Richard Hughes)
 - Ensure the package is removed from the sack properly (Richard Hughes)
 - Modify CodingStyle (Murilo Opsfelder Araujo)

Richard
Murilo Opsfelder Araujo | 10 May 2013 03:30
Picon

[PATCH] CodingStyle: add -lp option to indent and fix typos

The indent -lp option gives the same effect described in "Overlong lines"
section.

Signed-off-by: Murilo Opsfelder Araujo <mopsfelder@...>
---
 CodingStyle | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/CodingStyle b/CodingStyle
index edfee01..abd4231 100644
--- a/CodingStyle
+++ b/CodingStyle
 <at>  <at>  -1,6 +1,7  <at>  <at> 
 == Indent ==

-Use "indent -kr -i8 -pcs -lps -psl *.c" to convert to "mostly correct" indenting levels.
+Use "indent -kr -i8 -pcs -lp -lps -psl *.c" to convert to "mostly correct"
+indenting levels.

 == Tabs ==

 <at>  <at>  -8,7 +9,7  <at>  <at>  Tabs are the size of 8 spaces, and should be used in preference to spaces.

 == Overlong lines ==

-Functions that are two long for one line are intented with tabs and then 
+Functions that are too long for one line are indented with tabs and then
 spaces to the start of the bracket:

 libnotify_event ("HAL does not have PowerManagement capability",
(Continue reading)

Richard Hughes | 9 May 2013 14:47
Picon

PackageKit-Qt 0.8.8 released!

Version 0.8.8
~~~~~~~~~~~~~
Released: 2013-05-09

New Features:
 - Adding Provides property to Daemon (Daniel Nicoletti)
 - Adding some Meta information (Daniel Nicoletti)
 - Adds the transactionFlags to the Transaction class (Daniel Nicoletti)
 - Add TransactionFlags registration (Daniel Nicoletti)
 - Implement connectNotify and disconnectNotify (Daniel Nicoletti)

Bugfixes:
 - Add missing declare enums (Daniel Nicoletti)
 - Fix searchGroups() be iterating over the flaged values (Daniel Nicoletti)
 - Ignore Interface isValid() check (Daniel Nicoletti)
 - Improve error handling and make it easier for QML use it (Daniel Nicoletti)
 - Make sure we set an error if we fail to contact PackageKit (Daniel Nicoletti)
 - Use the correct version of the LGPL library (Richard Hughes)

Tarballs available here: http://www.packagekit.org/releases/

Richard.
Richard Hughes | 8 May 2013 10:56
Picon

PackageKit 0.8.8 released!

Version 0.8.8
~~~~~~~~~~~~~
Released: 2013-05-08

Notes:
 - PackageKit now allow local active users to install signed software without
   prompting for authentication. If you need to change this you will need to
   either install a PolicyKit override or just patch the policy file.

Libraries:
 - Add some public getters to PkUpdateDetail (Richard Hughes)
 - Don't use the default main context in sync PkClient methods
(Giovanni Campagna)
 - When getting desktop data try the installed prefix, and then the
system copy (Richard Hughes)

Backends:
 - alpm: Account for minor API changes in alpm 8 (Jonathan Conder)
 - alpm: Add GPGDir config option (Jonathan Conder)
 - alpm: Add new error codes (Jonathan Conder)
 - alpm: Allow forced install of untrusted packages (Jonathan Conder)
 - alpm: Fix freedesktop.org bug #44713 (Jonathan Conder)
 - alpm: Fix locale and proxy support (Jonathan Conder)
 - alpm: Implement preliminary signature checking (Jonathan Conder)
 - alpm: Improve and update config file parsing (Jonathan Conder)
 - alpm: Improve messages and status/progress reports (Jonathan Conder)
 - alpm: Make use of new package origin API (Jonathan Conder)
 - alpm: Port configuration logic to new API (Jonathan Conder)
 - alpm: Port enum constants to new API (Jonathan Conder)
 - alpm: Port error messagess to new API (Jonathan Conder)
(Continue reading)

Eugen Wissner | 20 Apr 2013 17:43
Picon

slapt backend

Hi,

I'm one of the developer of Gnome Desktop for Slackware Linux (droplinegnome.org). I was thinking about using slapt-get as default installer (or writing my one) and packagekit/gnome-packagekit as graphic and administration interface to it. I've tried to build the last packagekit with slapt backend and it fails. The last git update of slapt backend is dated with 07.2012. Is there anyone who is working on slapt support in the packagekit? I would be happy to help if I can.

Thanks.
Best regards
Eugene Wissner
<div><div dir="ltr">
<div>
<div>
<div>
<div>Hi,<br><br>
</div>I'm one of the developer of Gnome Desktop for Slackware Linux (<a href="http://droplinegnome.org">droplinegnome.org</a>). I was thinking about using slapt-get as default installer (or writing my one) and packagekit/gnome-packagekit as graphic and administration interface to it. I've tried to build the last packagekit with slapt backend and it fails. The last git update of slapt backend is dated with 07.2012. Is there anyone who is working on slapt support in the packagekit? I would be happy to help if I can.<br><br>
</div>Thanks.<br>
</div>Best regards<br>
</div>Eugene Wissner<br>
</div></div>
Lukas Vacek | 14 Apr 2013 03:14
Picon

extremely quick search for available package names matching a pattern

Hello there,

I am developing a Gnome Shell extension which shows available software to install. The user can type, for example, "opent" and then just click "openttd" to install the package. It's pretty decent. :-) https://extensions.gnome.org/extension/95/appsearch/

This works all fine on Debian/Ubuntu using "apt-cache pkgnames [ prefix ]". I am doing my best to support PackageKit as well but getting the results fast enough is a bit problematic.

At the moment I use "pkcon -p resolve <search_term>" which is very quick and works fine, however, this works only for exact matches.

I have experimented with "pkcon -p search name <search_term>" and indeed it works fine but it's just too slow for this use case :-( ... it can take up to several  (sometimes more than 5) seconds to get results.

Is there a faster way to get all available packages with names matching a pattern? (No need for regex or so, actually, just prefix match will do)

Thanks!
Lukas

<div><p>Hello there,<br><br>I am developing a Gnome Shell extension which shows available software to install. The user can type, for example, "opent" and then just click "openttd" to install the package. It's pretty decent. :-) <a href="https://extensions.gnome.org/extension/95/appsearch/">https://extensions.gnome.org/extension/95/appsearch/</a><br><br>This works all fine on Debian/Ubuntu using "apt-cache pkgnames [ prefix ]". I am doing my best to support PackageKit as well but getting the results fast enough is a bit problematic.<br><br>At the moment I use<span class="s2"> "pkcon </span><span class="p"></span><span class="s2">-p </span><span class="s2">resolve &lt;search_term&gt;" which </span>is very quick and works fine, however, this works only for exact matches. <br><br>I have experimented with "pkcon -p search name &lt;search_term&gt;" and indeed it works fine but it's just too slow for this use case :-( ... it can take up to several&nbsp; (sometimes more than 5) seconds to get results.<br><br>Is there a faster way to get all available packages with names matching a pattern? (No need for regex or so, actually, just prefix match will do)<br><br>Thanks!<br>Lukas<br></p></div>

Gmane