# HG changeset patch # User Sylvain Thénault # Date 1323351177 -3600 # Node ID 29cdde6bb9ef92fff3753c9bc4e700b3e2fc5184 # Parent 6510654269a6c4481f66a3ace78b99aad0d898dd# Parent 7b2c7f3d370303bdcd6ac264da75bc7ef0ce3eda backport stable diff -r 6510654269a6 -r 29cdde6bb9ef .hgtags --- a/.hgtags Thu Dec 08 14:30:00 2011 +0100 +++ b/.hgtags Thu Dec 08 14:32:57 2011 +0100 @@ -235,3 +235,5 @@ 0a3cb5e60d57a7a9851371b4ae487094ec2bf614 cubicweb-debian-version-3.13.9-1 5c4390eb10c3fe76a81e6fccec109d7097dc1a8d cubicweb-version-3.14.0 0bfe22fceb383b46d62b437bf5dd0141a714afb8 cubicweb-debian-version-3.14.0-1 +2ad4e5173c73a43804c265207bcabb8940bd42f4 cubicweb-version-3.13.10 +2eab9a5a6bf8e3b0cf706bee8cdf697759c0a33a cubicweb-debian-version-3.13.10-1 diff -r 6510654269a6 -r 29cdde6bb9ef __pkginfo__.py diff -r 6510654269a6 -r 29cdde6bb9ef cwconfig.py --- a/cwconfig.py Thu Dec 08 14:30:00 2011 +0100 +++ b/cwconfig.py Thu Dec 08 14:32:57 2011 +0100 @@ -1149,7 +1149,7 @@ def _gettext_init(self): """set language for gettext""" - from gettext import translation + from cubicweb.gettext import translation path = join(self.apphome, 'i18n') for language in self.available_languages(): self.info("loading language %s", language) diff -r 6510654269a6 -r 29cdde6bb9ef debian/changelog --- a/debian/changelog Thu Dec 08 14:30:00 2011 +0100 +++ b/debian/changelog Thu Dec 08 14:32:57 2011 +0100 @@ -4,6 +4,12 @@ -- Sylvain Thénault Wed, 09 Nov 2011 17:17:45 +0100 +cubicweb (3.13.10-1) unstable; urgency=low + + * new upstream release + + -- Sylvain Thénault Thu, 08 Dec 2011 13:22:05 +0100 + cubicweb (3.13.9-1) unstable; urgency=low * new upstream release diff -r 6510654269a6 -r 29cdde6bb9ef migration.py --- a/migration.py Thu Dec 08 14:30:00 2011 +0100 +++ b/migration.py Thu Dec 08 14:32:57 2011 +0100 @@ -270,7 +270,10 @@ def unicode_raw_input(prompt): return unicode(raw_input(prompt), sys.stdin.encoding) interact(banner, readfunc=unicode_raw_input, local=local_ctx) - readline.write_history_file(histfile) + try: + readline.write_history_file(histfile) + except IOError: + pass # delete instance's confirm attribute to avoid questions del self.confirm self.need_wrap = True @@ -412,7 +415,7 @@ basecubes = [c for c in origcubes if not c in toremove] self.config._cubes = tuple(self.config.expand_cubes(basecubes)) removed = [p for p in origcubes if not p in self.config._cubes] - if not cube in removed: + if not cube in removed and cube in origcubes: raise ConfigurationError("can't remove cube %s, " "used as a dependency" % cube) return removed