Skip to content

Commit

Permalink
Only clean metadata when cleaning dnf cache
Browse files Browse the repository at this point in the history
  • Loading branch information
ehelms committed Jan 23, 2024
1 parent 5d933e3 commit 69f302d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/foreman_maintain/package_manager/dnf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def list_installed_packages(queryformat = '%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}
end

def clean_cache(assumeyes: false)
dnf_action('clean', 'all', :assumeyes => assumeyes)
dnf_action('clean', 'metadata', :assumeyes => assumeyes)
end

def module_enabled?(name)
Expand Down

0 comments on commit 69f302d

Please sign in to comment.