From 7145c0734b471e97fe1d8fc540e17f793e25d436 Mon Sep 17 00:00:00 2001 From: Demosthenes Mateo Jr Date: Tue, 21 May 2019 12:15:03 +1000 Subject: [PATCH] Improved handling of mirror feature Ensure that packages are kept in sync when mirroring a repo by skipping "repomanage". -m option automatically does -g --- dtmrepo | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dtmrepo b/dtmrepo index 34f299a..2ab2274 100755 --- a/dtmrepo +++ b/dtmrepo @@ -408,6 +408,8 @@ gen_repodata() { if [ "${SELECT}" -eq 1 ]; then _PROTECTREPO=1 + elif [ "${MIRROR}" -eq 1 ]; then + _PROTECTREPO=1 elif [ ! -z "${protectrepo}" ]; then echo ${_REPODIR} | egrep -q "$(echo ${protectrepo} | sed -r 's/[ ,]+/|/g')" && _PROTECTREPO=1 fi @@ -638,6 +640,7 @@ while getopts 'acefgiumvxpd:k:r:s:' opt; do m) MIRROR=1 UPDATE=1 SYNCALL=1 + GENREPO=1 ;; r) REPO=${OPTARG} ;;