Skip to content

Commit

Permalink
Improved handling of mirror feature
Browse files Browse the repository at this point in the history
Ensure that packages are kept in sync when mirroring a repo by skipping "repomanage".
-m option automatically does -g
  • Loading branch information
dtmateojr authored May 21, 2019
1 parent c9a9018 commit 7145c07
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dtmrepo
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -638,6 +640,7 @@ while getopts 'acefgiumvxpd:k:r:s:' opt; do
m) MIRROR=1
UPDATE=1
SYNCALL=1
GENREPO=1
;;
r) REPO=${OPTARG}
;;
Expand Down

0 comments on commit 7145c07

Please sign in to comment.