Also mirror updates for fedora

Now that the releases mirror is working properly, we can also mirror
updates.  Use 2 commands to reduce the complexity.

Change-Id: I762e55fb7fe0c5ebfb7810545ddb4d5ccfedf2ff
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2017-01-13 15:45:08 -05:00
parent ec2b70d169
commit 94266e9d55

View File

@ -25,7 +25,7 @@ if ! [ -f $BASE/$REPO ]; then
fi
date --iso-8601=ns
echo "Running rsync..."
echo "Running rsync releases..."
$K5START rsync -rlptDvz \
--delete \
--delete-excluded \
@ -40,6 +40,22 @@ $K5START rsync -rlptDvz \
--exclude="Workstation" \
$MIRROR/fedora/$REPO/ $BASE/$REPO/
REPO=updates/25
if ! [ -f $BASE/$REPO ]; then
$K5START mkdir -p $BASE/$REPO
fi
date --iso-8601=ns
echo "Running rsync updates..."
$K5START rsync -rlptDvz \
--delete \
--delete-excluded \
--exclude="armhfp/" \
--exclude="i386/" \
--exclude="SRPMS/" \
--exclude="x86_64/debug" \
$MIRROR/fedora/$REPO/ $BASE/$REPO/
# TODO(pabelanger): Validate rsync process
date --iso-8601=ns | $K5START tee $BASE/timestamp.txt