Commit graph

20 commits

Author SHA1 Message Date
Michael Scherer
e8dbb4e4f2 Mark conf_file as a path, for various user expansion 2016-04-14 21:15:07 +02:00
Toshio Kuratomi
9835b6a477 Fail due to no dnf module installed earlier as we use a dnf utility function to determine if we have permission to install packages. 2016-03-04 09:43:23 -08:00
Jan Chaloupka
d011149baf dnf module: package not installed with state=latest
dnf: name=PACKAGE state=latest is reponsible for two use cases:
- to install a package if not already installed.
- to update the package to the latest if already installed.

The latter use cases is not handled properly as base.upgrade does not
throw dnf.exceptions.MarkingError if a package is not installed.

Setting base.conf.best = True ensures a package is installed or
updated to the latest when calling base.install.

Sign-off: jsilhan@redhat.com
Sign-off: jchaloup@redhat.com
2016-02-12 15:51:48 +01:00
Toshio Kuratomi
b1e9dc0b52 Allow dnf to remove dependent packages of a package that is being removed
Fixes #1517
2016-02-02 10:40:38 -08:00
Toshio Kuratomi
0b9e9fd852 Move existing check for root before we make expensive network calls 2015-11-02 08:00:46 -08:00
Toshio Kuratomi
da426da308 Change documented requirement from dnf to python-dnf as dnf could be taken to mean the command line tool.
Fixes #1032
2015-10-04 21:32:54 -07:00
ToBeReplaced
0712d2f551 Fix fail_json call in _mark_package_install 2015-09-21 22:50:52 -06:00
ToBeReplaced
e82f6e9463 Rewrite dnf module.
This fully implements all expected functionality of the dnf module.

Group removal may behave oddly due to hiccups in tagging groups as being
installed.

A pkg_types option could be added to specify the group package types.
2015-07-11 01:29:18 -06:00
ToBeReplaced
495af842fc Add support for state=latest and * 2015-07-10 00:09:19 +03:00
ToBeReplaced
050e619e7b Add change reporting, enablerepo support, and gpgcheck.
disable_gpg_check was configured backwards, so it was toggled. Typos in
enablerepo/disablerepo are removed. fill_sack() calls are relocated to
occur after repo decisions. The "changed" key is now set for new
installations.
2015-07-10 00:09:19 +03:00
Igor Gnatenko
5d99dcfe4f typo fix in oneliners
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2015-07-10 00:09:19 +03:00
Toshio Kuratomi
c798019c73 Fix nevra, fixes to docs and copyright info 2015-07-10 00:09:19 +03:00
Igor Gnatenko
bbc8dae006 add ability to install packages
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2015-07-10 00:09:19 +03:00
Igor Gnatenko
25d61b7d01 remove all and start from scratch
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2015-07-10 00:09:19 +03:00
Greg DeKoenigsberg
004dedba8a Changes to author formatting, remove emails 2015-06-16 14:32:39 -04:00
Toshio Kuratomi
a1a1c23205 Bandaid dnf module to temporarily fix some major problems
- Backport config file handling from the DNF module rewrite #527
  (Current config handling does not work with dnf and leads to
  tracebacks when run as an unprivileged user).
- Make a mandatory requirement on yum-utils (for /usr/bin/repoquery)
  because none of the fallback code works for dnf (it's unported yum API
  code).

Both of these issues will be fixed better in the dnf rewrite when it is
feature complete.

Fixes #471
2015-05-25 19:29:55 -07:00
Brian Coca
edf519a0c2 moar quotes 2015-05-14 09:37:00 -04:00
Greg DeKoenigsberg
8725fe7273 Adding author's github id 2015-05-14 00:07:56 -04:00
Brian Coca
dd681321b3 corrected version added 2015-02-03 22:31:46 -05:00
Toshio Kuratomi
41d5029012 Move dnf and bower plugins to proper subdirs 2015-01-30 07:34:46 -08:00
Renamed from packaging/dnf.py (Browse further)