Skip to content
This repository was archived by the owner on Sep 5, 2025. It is now read-only.
This repository was archived by the owner on Sep 5, 2025. It is now read-only.

[Bug]: dnf5 order problem #24

@Stricken1670

Description

@Stricken1670

Is this a critical security issue?

  • This is not a security issue.

Describe the Bug

Error: Execution of '/usr/bin/dnf -y --best --allowerasing install ffmpeg' returned 2: Unknown argument "--allowerasing" for command "dnf5". Add "--help" for more information about the arguments.
The argument is available for commands: builddep, group upgrade, group install, swap, system-upgrade download, reinstall, downgrade, debuginfo-install, distro-sync, upgrade, install. (It has to be placed after the command.)
Error: /Stage[main]/Desktop_fedora::Common_packages/Package[ffmpeg]/ensure: change from 'purged' to 'present' failed: Execution of '/usr/bin/dnf -y --best --allowerasing install ffmpeg' returned 2: Unknown argument "--allowerasing" for command "dnf5". Add "--help" for more information about the arguments.

After a bit of testing I noticed:

#  /usr/bin/dnf --allowerasing install ffmpeg 
Unknown argument "--allowerasing" for command "dnf5". Add "--help" for more information about the arguments.
The argument is available for commands: builddep, group upgrade, group install, swap, system-upgrade download, reinstall, downgrade, debuginfo-install, distro-sync, upgrade, install. (It has to be placed after the command.)
#  /usr/bin/dnf install --allowerasing ffmpeg
Updating and loading repositories:
Repositories loaded.
Package "ffmpeg-7.1.1-3.fc41.x86_64" is already installed.

So the ordering of the arguments is wrong:

The recipe that triggered the error is:

  package{ ['ffmpeg', 'libavcodec-freeworld']:
    ensure          => installed,
    install_options => ['--best', '--allowerasing'],
  }

I'll have a look at this problem, perhaps I can come up with a PR.

Environment

Version openvox-agent-8.14.0
Platform Fedora 41

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions