i think i fixed it- wasn't rendering correct rel_ver
This commit is contained in:
parent
3252303573
commit
3d537e42bc
@ -1,17 +1,14 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import argparse
|
||||
import configparser
|
||||
import copy
|
||||
import datetime
|
||||
import os
|
||||
import platform
|
||||
import pprint
|
||||
import re
|
||||
import socket
|
||||
import subprocess
|
||||
import sys
|
||||
from collections import OrderedDict
|
||||
|
||||
cfgfile = os.path.join(os.environ['HOME'],
|
||||
'.config',
|
||||
@ -155,12 +152,28 @@ class MirrorMgr(object):
|
||||
self.strvars['releases'] = [i.strip() for i in \
|
||||
self.repo['releases'].format(
|
||||
**self.strvars).split(',')]
|
||||
self._repo_chk(repo)
|
||||
for arch in self.strvars['arches']:
|
||||
for rel_ver in self.strvars['releases']:
|
||||
self._clear_tpl(repo, arch, rel_ver)
|
||||
self._repo_chk(repo)
|
||||
self._repo_sync(repo)
|
||||
return()
|
||||
|
||||
def _clear_tpl(self, repo, arch, rel_ver):
|
||||
self.repo = copy.deepcopy(dict(self.cfg[repo]))
|
||||
self.strvars['name'] = repo
|
||||
# This should be safe since the only thing that makes sense here is
|
||||
# {cur_arch}, which we populate in __init__().
|
||||
self.strvars['arches'] = [i.strip() for i in \
|
||||
self.repo['arches'].format(
|
||||
**self.strvars).split(',')]
|
||||
self.strvars['releases'] = [i.strip() for i in \
|
||||
self.repo['releases'].format(
|
||||
**self.strvars).split(',')]
|
||||
self.strvars['arch'] = arch
|
||||
self.strvars['rel_ver'] = rel_ver
|
||||
self._repo_sync(repo)
|
||||
self.strvars['name'] = repo
|
||||
self._repo_chk(repo)
|
||||
return()
|
||||
|
||||
def _repo_sync(self, repo):
|
||||
@ -277,10 +290,6 @@ class MirrorMgr(object):
|
||||
pass
|
||||
return()
|
||||
# The Business-End(TM)
|
||||
for arch in self.strvars['arches']:
|
||||
for rel_ver in self.strvars['releases']:
|
||||
self.strvars['arch'] = arch
|
||||
self.strvars['rel_ver'] = rel_ver
|
||||
chkmnt()
|
||||
chkrsync()
|
||||
chkdest()
|
||||
|
Loading…
Reference in New Issue
Block a user