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 95a8bab commit 57755b9
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions mods-available/reposerver.mod
Original file line number Diff line number Diff line change
Expand Up @@ -1393,10 +1393,18 @@ function genFullHistory

# Récupération de tous les ID d'évènements dans la base de données de yum
if [ "$HISTORY_START" == "newest" ];then
YUM_HISTORY_IDS=$(yum history list all | tail -n +4 | awk '{print $1}' | grep -v "history")
if [ -f "/usr/bin/dnf" ];then
YUM_HISTORY_IDS=$(dnf history list | tail -n +4 | awk '{print $1}' | grep -v "history")
else
YUM_HISTORY_IDS=$(yum history list all | tail -n +4 | awk '{print $1}' | grep -v "history")
fi
fi
if [ "$HISTORY_START" == "oldest" ];then
YUM_HISTORY_IDS=$(yum history list all | tail -n +4 | awk '{print $1}' | grep -v "history" | tac)
if [ -f "/usr/bin/dnf" ];then
YUM_HISTORY_IDS=$(dnf history list | tail -n +4 | awk '{print $1}' | grep -v "history" | tac)
else
YUM_HISTORY_IDS=$(yum history list all | tail -n +4 | awk '{print $1}' | grep -v "history" | tac)
fi
fi

# Pour chaque évènement on peut récupérer la date et l'heure de début et la date et l'heure de fin
Expand Down

0 comments on commit 57755b9

Please sign in to comment.