Skip to content

Commit

Permalink
patch
Browse files Browse the repository at this point in the history
  • Loading branch information
lbr38 committed Jul 22, 2024
1 parent e35a920 commit 5b46176
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mods-available/reposerver.mod
Original file line number Diff line number Diff line change
Expand Up @@ -1294,7 +1294,7 @@ function send_available_packages_status
if [ "$OS_FAMILY" == "Redhat" ];then
# Récupération des paquets disponibles pour mise à jour
if [ -f "/usr/bin/dnf" ];then
dnf repoquery -a --qf="%{name} %{epoch}:%{version}-%{release}.%{arch}" --upgrades >> "$CHECK_UPDATE_TMP"
dnf repoquery --upgrades --latest-limit 1 -a --qf="%{name} %{epoch}:%{version}-%{release}.%{arch}" --upgrades >> "$CHECK_UPDATE_TMP"
else
repoquery -a --qf="%{name} %{epoch}:%{version}-%{release}.%{arch}" --pkgnarrow=updates > "$CHECK_UPDATE_TMP"
fi
Expand Down
2 changes: 1 addition & 1 deletion src/02_check-packages-before-update
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function checkPackagesBeforeUpdate
# List packages available for update
if [ "$OS_FAMILY" == "Redhat" ];then
if [ -f "/usr/bin/dnf" ];then
dnf repoquery -a --qf="%{name} %{version}-%{release}.%{arch} %{repoid}" --upgrades >> "$CHECK_UPDATE_TMP"
dnf repoquery --upgrades --latest-limit 1 -a --qf="%{name} %{version}-%{release}.%{arch} %{repoid}" --upgrades >> "$CHECK_UPDATE_TMP"
else
repoquery -a --qf="%{name} %{version}-%{release}.%{arch} %{repoid}" --pkgnarrow=updates > "$CHECK_UPDATE_TMP"
fi
Expand Down

0 comments on commit 5b46176

Please sign in to comment.