Esempio n. 1
0
    def _sync_callback(self, proc):
        """
		This is called in the parent process, serially, for each of the
		sync jobs when they complete. Some cache backends such as sqlite
		may require that cache access be performed serially in the
		parent process like this.
		"""
        repo = proc.kwargs['repo']
        exitcode = proc.returncode
        updatecache_flg = False
        if proc.returncode == os.EX_OK:
            exitcode, message, updatecache_flg, hooks_enabled = proc.result

        if updatecache_flg and "metadata-transfer" not in self.settings.features:
            updatecache_flg = False

        if updatecache_flg and \
         os.path.exists(os.path.join(
         repo.location, 'metadata', 'md5-cache')):

            # Only update cache for repo.location since that's
            # the only one that's been synced here.
            action_metadata(self.settings,
                            self.portdb,
                            self.emerge_config.opts,
                            porttrees=[repo.location])
Esempio n. 2
0
	def _sync_callback(self, exitcode, updatecache_flg):
		if updatecache_flg and "metadata-transfer" not in self.settings.features:
			updatecache_flg = False

		if updatecache_flg and \
			os.path.exists(os.path.join(
			self.repo.location, 'metadata', 'md5-cache')):

			# Only update cache for repo.location since that's
			# the only one that's been synced here.
			action_metadata(self.settings, self.portdb, self.emerge_config.opts,
				porttrees=[self.repo.location])
Esempio n. 3
0
    def _sync_callback(self, exitcode, updatecache_flg):
        if updatecache_flg and "metadata-transfer" not in self.settings.features:
            updatecache_flg = False

        if updatecache_flg and \
         os.path.exists(os.path.join(
         self.repo.location, 'metadata', 'md5-cache')):

            # Only update cache for repo.location since that's
            # the only one that's been synced here.
            action_metadata(self.settings,
                            self.portdb,
                            self.emerge_config.opts,
                            porttrees=[self.repo.location])
Esempio n. 4
0
    def _sync_callback(self, proc):
        """
		This is called in the parent process, serially, for each of the
		sync jobs when they complete. Some cache backends such as sqlite
		may require that cache access be performed serially in the
		parent process like this.
		"""
        repo = proc.kwargs["repo"]
        exitcode = proc.returncode
        updatecache_flg = False
        if proc.returncode == os.EX_OK:
            exitcode, message, updatecache_flg, hooks_enabled = proc.result

        if updatecache_flg and "metadata-transfer" not in self.settings.features:
            updatecache_flg = False

        if updatecache_flg and os.path.exists(os.path.join(repo.location, "metadata", "md5-cache")):

            # Only update cache for repo.location since that's
            # the only one that's been synced here.
            action_metadata(self.settings, self.portdb, self.emerge_config.opts, porttrees=[repo.location])