diff --git a/mods-available/reposerver.mod b/mods-available/reposerver.mod index f2fbc68..d67dd86 100644 --- a/mods-available/reposerver.mod +++ b/mods-available/reposerver.mod @@ -1221,9 +1221,9 @@ function send_installed_packages_status # Cas Redhat if [ "$OS_FAMILY" == "Redhat" ];then if [ -f "/usr/bin/dnf" ];then - dnf repoquery -a --installed --qf="%{name} %{epoch}:%{version}-%{release}.%{arch}" > "$INSTALLED_PACKAGES_TMP" + dnf repoquery -q -a --installed --qf="%{name} %{epoch}:%{version}-%{release}.%{arch}" > "$INSTALLED_PACKAGES_TMP" else - repoquery -a --installed --qf="%{name} %{epoch}:%{version}-%{release}.%{arch}" > "$INSTALLED_PACKAGES_TMP" + repoquery -q -a --installed --qf="%{name} %{epoch}:%{version}-%{release}.%{arch}" > "$INSTALLED_PACKAGES_TMP" fi fi # Cas Debian @@ -1295,9 +1295,9 @@ 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 --upgrades --latest-limit 1 -a --qf="%{name} %{epoch}:%{version}-%{release}.%{arch}" --upgrades >> "$CHECK_UPDATE_TMP" + dnf repoquery -q --upgrades --latest-limit 1 -a --qf="%{name} %{epoch}:%{version}-%{release}.%{arch}" --upgrades > "$AVAILABLE_PACKAGES_TMP" else - repoquery -a --qf="%{name} %{epoch}:%{version}-%{release}.%{arch}" --pkgnarrow=updates > "$CHECK_UPDATE_TMP" + repoquery -q -a --qf="%{name} %{epoch}:%{version}-%{release}.%{arch}" --pkgnarrow=updates > "$AVAILABLE_PACKAGES_TMP" fi fi # Cas Debian diff --git a/src/02_check-packages-before-update b/src/02_check-packages-before-update index 78cca85..16c9c99 100644 --- a/src/02_check-packages-before-update +++ b/src/02_check-packages-before-update @@ -14,15 +14,17 @@ function checkPackagesBeforeUpdate apt-get clean && apt-get -qq --allow-releaseinfo-change update fi + echo -e "\n Generating packages list..." + # Temporary file to work with CHECK_UPDATE_TMP="/tmp/linupdate_check-update.tmp" # List packages available for update if [ "$OS_FAMILY" == "Redhat" ];then if [ -f "/usr/bin/dnf" ];then - dnf repoquery --upgrades --latest-limit 1 -a --qf="%{name} %{version}-%{release}.%{arch} %{repoid}" --upgrades >> "$CHECK_UPDATE_TMP" + dnf repoquery -q --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" + repoquery -q -a --qf="%{name} %{version}-%{release}.%{arch} %{repoid}" --pkgnarrow=updates > "$CHECK_UPDATE_TMP" fi fi if [ "$OS_FAMILY" == "Debian" ];then