Skip to content

Commit

Permalink
Merge branch 'rpm-software-management:master' into progressive-galib/…
Browse files Browse the repository at this point in the history
…update-readme.rst
  • Loading branch information
progressive-galib authored Dec 19, 2024
2 parents cf0d097 + 607b79a commit cf8eb2a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions dnf/automatic/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ def main(args):
try:
conf = AutomaticConfig(opts.conf_path, opts.downloadupdates,
opts.installupdates)
emitters = build_emitters(conf)
with dnf.Base() as base:
cli = dnf.cli.Cli(base)
cli._read_conf_file()
Expand Down Expand Up @@ -351,7 +352,6 @@ def main(args):
return 0

lst = output.list_transaction(trans, total_width=80)
emitters = build_emitters(conf)
emitters.notify_available(lst)
if not conf.commands.download_updates:
emitters.commit()
Expand Down Expand Up @@ -379,8 +379,8 @@ def main(args):
(conf.commands.reboot == 'when-needed' and base.reboot_needed())):
exit_code = os.waitstatus_to_exitcode(os.system(conf.commands.reboot_command))
if exit_code != 0:
raise dnf.exceptions.Error('reboot command returned nonzero exit code: %d', exit_code)
except dnf.exceptions.Error as exc:
raise dnf.exceptions.Error('reboot command returned nonzero exit code: %d' % exit_code)
except Exception as exc:
logger.error(_('Error: %s'), ucd(exc))
if conf is not None and conf.emitters.send_error_messages and emitters is not None:
emitters.notify_error(_('Error: %s') % str(exc))
Expand Down
10 changes: 6 additions & 4 deletions doc/command_ref.rst
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,13 @@ Options
.. _disableexcludes-label:

``--disableexcludes=[all|main|<repoid>], --disableexcludepkgs=[all|main|<repoid>]``
Disable the configuration file excludes. Takes one of the following three options:
Disable ``excludepkgs`` and ``includepkgs`` configuration options. Takes one of the following three options:

* ``all``, disables all configuration file excludes
* ``main``, disables excludes defined in the ``[main]`` section
* ``repoid``, disables excludes defined for the given repository
* ``all``, disables all ``excludepkgs`` and ``includepkgs`` configurations
* ``main``, disables ``excludepkgs`` and ``includepkgs`` defined in the ``[main]`` section
* ``repoid``, disables ``excludepkgs`` and ``includepkgs`` defined for the given repository

Note that the \-\ :ref:`-exclude <exclude_option-label>` option appends to the ``[main]`` ``excludepkgs`` configuration and therefore is disabled when ``main`` or ``all`` is specified.

``--disable, --set-disabled``
Disable specified repositories (automatically saves). The option has to be used together with the
Expand Down
4 changes: 1 addition & 3 deletions po/ko.po
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# MinWoo Joh <[email protected]>, 2015. #zanata
# Eun-Ju Kim <[email protected]>, 2016. #zanata
# Ludek Janda <[email protected]>, 2018. #zanata, 2020.
# simmon <[email protected]>, 2021, 2022.
# Kim InSoo <[email protected]>, 2022.
# 김인수 <[email protected]>, 2022, 2023.
# 김인수 <[email protected]>, 2021, 2022, 2023, 2024.
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
Expand Down

0 comments on commit cf8eb2a

Please sign in to comment.