View | Details | Raw Unified | Return to bug 28750
Collapse All | Expand All

(-)a/branches/ucs-3.1/ucs/base/univention-config-registry/debian/changelog (+6 lines)
 Lines 1-3    Link Here 
1
univention-config-registry (8.0.4-9) unstable; urgency=low
2
3
  * Force dpkg-divert --local (Bug #28750)
4
5
 -- Philipp Hahn <hahn@univention.de>  Fri, 12 Oct 2012 13:53:15 +0200
6
1
univention-config-registry (8.0.4-8) unstable; urgency=low
7
univention-config-registry (8.0.4-8) unstable; urgency=low
2
8
3
  * Add support for search patterns (Bug #18254, Bug #28563)
9
  * Add support for search patterns (Bug #18254, Bug #28563)
(-)a/branches/ucs-3.1/ucs/base/univention-config-registry/python/univention/config_registry/handler.py (-3 / +3 lines)
 Lines 246-252   class ConfigHandlerDiverting(ConfigHandler): Link Here 
246
	def install_divert(self):
246
	def install_divert(self):
247
		"""Prepare file for diversion."""
247
		"""Prepare file for diversion."""
248
		deb = '%s.debian' % self.to_file
248
		deb = '%s.debian' % self.to_file
249
		self._call_silent('dpkg-divert', '--quiet', '--rename',
249
		self._call_silent('dpkg-divert', '--quiet', '--rename', '--local',
250
				'--divert', deb,
250
				'--divert', deb,
251
				'--add', self.to_file)
251
				'--add', self.to_file)
252
		# Make sure a valid file still exists
252
		# Make sure a valid file still exists
 Lines 261-267   class ConfigHandlerDiverting(ConfigHandler): Link Here 
261
		except EnvironmentError:
261
		except EnvironmentError:
262
			pass
262
			pass
263
		deb = '%s.debian' % self.to_file
263
		deb = '%s.debian' % self.to_file
264
		self._call_silent('dpkg-divert', '--quiet', '--rename',
264
		self._call_silent('dpkg-divert', '--quiet', '--rename', '--local',
265
				'--divert', deb,
265
				'--divert', deb,
266
				'--remove', self.to_file)
266
				'--remove', self.to_file)
267
267
 Lines 683-689   class ConfigHandlers: Link Here 
683
						continue
683
						continue
684
					if ':' != diversion:  # local diversion
684
					if ':' != diversion:  # local diversion
685
						continue
685
						continue
686
					assert path_from not in to_remove  # no dulicates
686
					assert path_from not in to_remove  # no duplicates
687
					try:
687
					try:
688
						handler = wanted.pop(path_from)
688
						handler = wanted.pop(path_from)
689
					except KeyError:
689
					except KeyError:

Return to bug 28750