From 20129f5ac0f54e6dad65618f23252485f365bed7 Mon Sep 17 00:00:00 2001 From: brent s Date: Sat, 21 Apr 2018 00:52:25 -0400 Subject: [PATCH] "stop whining!" - arnold schwarzenegger --- centos/repoclone/repoclone.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/centos/repoclone/repoclone.py b/centos/repoclone/repoclone.py index 56846a8..095d97c 100755 --- a/centos/repoclone/repoclone.py +++ b/centos/repoclone/repoclone.py @@ -131,6 +131,7 @@ class MirrorMgr(object): print(('A configuration file has been automatically generated for ' + 'you at {0}. You should review and customize it, because it ' + 'most likely will not work out of the box.').format(cfgfile)) + exit('Exiting to give you the chance to customize it...') return() def parse_cfg(self): @@ -216,8 +217,15 @@ class MirrorMgr(object): # CentOS 7 main doesn't have an i686. if self.strvars['rel_ver'] == 7: for e in errors[:]: - if re.search('^rsync: change_dir.*/6/.*$', e): + rgx = re.compile(('^rsync: change_dir.*/i[36]86/.*' + + 'failed:\s*No\s+such\s+file\s+or\s+' + + 'directory.*$')) + if rgx.search(e): errors.remove(e) + for e in errors[:]: + if e.startswith(('rsync error: some files/attrs were not ' + + 'transferred (see previous errors)')): + errors.remove(e) if os.isatty(sys.stdin.fileno()) and errors: print('[{0}] We encountered some errors:'.format(repo)) for e in errors: