Commits

Michał Górny committed c9224d9

Support EVCS_OFFLINE.

git-2 & bzr use EVCS_OFFLINE instead of ESCM_OFFLINE.

Fixes: http://bugs.gentoo.org/show_bug.cgi?id=364545

Comments (0)

Files changed (3)

SmartLiveRebuild/cli.py

 	opt.add_option('-N', '--no-network', action='store_false', dest='network',
 		help='Disable network interaction and just aggregate already updated repositories (requires --local-rev not set).')
 	opt.add_option('-O', '--no-offline', action='store_false', dest='offline',
-		help='Disable setting ESCM_OFFLINE for emerge.')
+		help='Disable setting ESCM_OFFLINE & EVCS_OFFLINE for emerge.')
 	opt.add_option('-p', '--pretend', action='store_true', dest='pretend',
 		help='Only print a list of the packages which were updated; do not call emerge to rebuild them.')
 	opt.add_option('-P', '--profile', action='store', dest='profile',

SmartLiveRebuild/core.py

 				opts.offline = False
 			else:
 				os.environ['ESCM_OFFLINE'] = 'true'
+				os.environ['EVCS_OFFLINE'] = 'true'
 
 		if opts.allow_downgrade == 'always':
 			packages = [pkgsplit(x)[0] for x in packages]

SmartLiveRebuild/sets.py

 				s = self._settings
 				s.unlock()
 				s['ESCM_OFFLINE'] = 'true'
+				s['EVCS_OFFLINE'] = 'true'
 				s.backup_changes('ESCM_OFFLINE')
+				s.backup_changes('EVCS_OFFLINE')
 				s.lock()
 
 	@classmethod