Commit Graph

24 Commits

Author SHA1 Message Date
Richard Hughes
39d9271f43 hif: Remove some unused functions 2014-09-03 13:13:51 +01:00
Richard Hughes
ef4549db2b hif: Use hif_source_commit() for new versions of the library 2014-09-03 09:56:07 +01:00
Richard Hughes
a6c552f5bf yum: Remove the yum backend
This has been broken since December 2013, and unmaintained for a much longer
time than that.
2014-09-02 13:17:48 +01:00
Richard Hughes
91de5320ba hif: Support setting DESTDIR from packagekit-direct 2014-08-29 19:44:50 +01:00
Richard Hughes
cdd0b4573d hif: Regenerate the SAT indexes when refreshing the cache
We want searching to be super-quick after a cache refresh, and we don't want to
wait the ~10 seconds while hawkey is rebuilding the SAT database for ~5 repos.

This also allows us to have a pre-generated cache on the LiveCD if we're using
packagekit-direct refresh.
2014-08-29 13:30:26 +01:00
Richard Hughes
3382ad3853 hif: Fix a crash when refreshing a repo that is not enabled 2014-08-29 13:05:06 +01:00
Richard Hughes
8ffab1c856 hif: Fix up a few state warnings when refreshing 2014-08-29 12:48:06 +01:00
Richard Hughes
18f790d469 Use __attribute__(cleanup) to simplify memory cleanup 2014-08-27 18:19:18 +01:00
Richard Hughes
e1a44ca733 hif: Make the HyQuery refcounting easier to understand 2014-08-10 10:46:06 +01:00
Radek Holy
870a49c4bd hif: Use new hawkey API for getting advisory details
Minor edits and fixes by Kalev Lember <kalevlember@gmail.com>.
2014-07-17 14:50:23 +02:00
Kalev Lember
2927330e4f hif: Include both available and installed packages in NEWEST filter
If we have a sack of:

INSTALLED myawesomepackage-1.0
AVAILABLE myawesomepackage-1.0
AVAILABLE myawesomepackage-1.1
AVAILABLE myawesomepackage-1.2

... include latest packages in the INSTALLED state and latest packages
in the AVAILABLE state in the NEWEST filter results, so that we return:

INSTALLED myawesomepackage-1.0
AVAILABLE myawesomepackage-1.2

This matches the previous yum backend behaviour and simplifies code on
the gnome-software side.

https://bugzilla.redhat.com/show_bug.cgi?id=1113935
2014-07-08 13:54:07 +02:00
Kalev Lember
b4f7d62b7a hif: Fix up a signature mismatch with a libhif signal handler
https://bugs.freedesktop.org/show_bug.cgi?id=80689
2014-06-29 23:04:48 +03:00
Richard Hughes
44f2cf60c9 hif: Allow untrused packages to be installed again
Now we're using HifContext rather than creating the HifTransaction each time we
have to un-set the only-trusted flag manually.
2014-06-20 13:06:31 +01:00
Richard Hughes
5c7894a1f1 hif: Use hif_transaction_download() 2014-05-16 09:42:19 +01:00
Richard Hughes
c3ddce1a4e Use hif_context_get_installonly_pkgs() from libhif 2014-05-15 14:16:52 +01:00
Richard Hughes
8ab56e016c hif: Use hif_context_get_native_arches() 2014-05-15 11:36:51 +01:00
Richard Hughes
42c2bdd5f4 hif: Rely on libhif doing the rpmdb watching 2014-05-15 11:36:51 +01:00
Kalev Lember
9e5942caa1 hif: Reimplement multiple kernel package installation
We had existing code that allowed us to keep multiple kernel packages
installed, but this had broken at some point. This commit reimplements it using
current hawkey API, simplifying code and making it work again.

Signed-off-by: Richard Hughes <richard@hughsie.com>
2014-05-13 09:18:29 +01:00
Richard Hughes
c4626b2c1f hif: Adapt to hif_package_set_action() API change 2014-05-09 11:22:17 +01:00
Richard Hughes
31e370f99d hif: Use the new hif_goal_get_packages() API from libhif 2014-05-08 16:34:19 +01:00
Richard Hughes
6a9fa4f302 hif: Set the context parameters before setting it up 2014-05-08 16:34:19 +01:00
Richard Hughes
9c8c072ce9 hif: Fix compile warning for new libhif versions 2014-05-08 16:34:19 +01:00
Richard Hughes
fb8fc14085 hif: Use hif_context_get_install_root() 2014-05-07 17:57:41 +01:00
Richard Hughes
01853a21ad hawkey: Port to libhif and rename the backend to "Hif"
It's disingenuous at best to call this the "hawkey" backend.
2014-05-07 15:23:50 +01:00