}
),
(
+ ['-c', '--cached'],
+ {
+ 'action': 'store_true',
+ 'help': 'only update the cached (mirrored) repositories'
+ }
+ ),
+ (
['-i', '--integration'],
{
'action': 'store_true',
def run(self, args):
+ if args.cached:
+ self.updateCached()
+ return
+
# Updating instances
names = args.names
if args.all:
if len(Mlist) < 1:
raise Exception('No instances to work on. Exiting...')
- # Updating cache
- print 'Updating cached repositories'
- self.Wp.updateCachedClones(verbose=False)
+ self.updateCached()
errors = []
logging.warning('- %s' % M.get('identifier'))
# Remove sys.exit and handle error code
sys.exit(1)
+
+ def updateCached(self):
+ # Updating cache
+ print 'Updating cached repositories'
+ self.Wp.updateCachedClones(verbose=False)