From 711db8abbce0a0fd72f11c536ad91bf8150839f6 Mon Sep 17 00:00:00 2001 From: Ludovic <54670129+lbr38@users.noreply.github.com> Date: Mon, 22 Jul 2024 16:28:28 +0200 Subject: [PATCH] patch --- mods-available/reposerver.mod | 4 ++-- src/02_check-packages-before-update | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mods-available/reposerver.mod b/mods-available/reposerver.mod index d67dd86..e7fa4f9 100644 --- a/mods-available/reposerver.mod +++ b/mods-available/reposerver.mod @@ -1223,7 +1223,7 @@ function send_installed_packages_status if [ -f "/usr/bin/dnf" ];then dnf repoquery -q -a --installed --qf="%{name} %{epoch}:%{version}-%{release}.%{arch}" > "$INSTALLED_PACKAGES_TMP" else - repoquery -q -a --installed --qf="%{name} %{epoch}:%{version}-%{release}.%{arch}" > "$INSTALLED_PACKAGES_TMP" + repoquery -a --installed --qf="%{name} %{epoch}:%{version}-%{release}.%{arch}" > "$INSTALLED_PACKAGES_TMP" fi fi # Cas Debian @@ -1297,7 +1297,7 @@ function send_available_packages_status if [ -f "/usr/bin/dnf" ];then dnf repoquery -q --upgrades --latest-limit 1 -a --qf="%{name} %{epoch}:%{version}-%{release}.%{arch}" --upgrades > "$AVAILABLE_PACKAGES_TMP" else - repoquery -q -a --qf="%{name} %{epoch}:%{version}-%{release}.%{arch}" --pkgnarrow=updates > "$AVAILABLE_PACKAGES_TMP" + repoquery -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 16c9c99..9a1db23 100644 --- a/src/02_check-packages-before-update +++ b/src/02_check-packages-before-update @@ -24,7 +24,7 @@ function checkPackagesBeforeUpdate if [ -f "/usr/bin/dnf" ];then dnf repoquery -q --upgrades --latest-limit 1 -a --qf="%{name} %{version}-%{release}.%{arch} %{repoid}" --upgrades >> "$CHECK_UPDATE_TMP" else - repoquery -q -a --qf="%{name} %{version}-%{release}.%{arch} %{repoid}" --pkgnarrow=updates > "$CHECK_UPDATE_TMP" + repoquery -a --qf="%{name} %{version}-%{release}.%{arch} %{repoid}" --pkgnarrow=updates > "$CHECK_UPDATE_TMP" fi fi if [ "$OS_FAMILY" == "Debian" ];then