View | Details | Raw Unified | Return to bug 23345 | Differences between
and this patch

Collapse All | Expand All

(-)univention-updater/debian/changelog (+6 lines)
 Lines 1-3    Link Here 
1
univention-updater (7.0.20-1) unstable; urgency=low
2
3
  * Print traceback when exception occurs (Bug #23345)
4
5
 -- Philipp Hahn <hahn@univention.de>  Wed, 17 Aug 2011 15:33:42 +0200
6
1
univention-updater (7.0.19-1) unstable; urgency=low
7
univention-updater (7.0.19-1) unstable; urgency=low
2
8
3
  * Hide output of external ucr (Bug #23202)
9
  * Hide output of external ucr (Bug #23202)
(-)univention-updater/conffiles/etc/apt/sources.list.d/18_ucs-online-security.list (-2 / +4 lines)
 Lines 2-7    Link Here 
2
2
3
@!@
3
@!@
4
import sys
4
import sys
5
import traceback
5
from univention.updater import UniventionUpdater
6
from univention.updater import UniventionUpdater
6
7
7
try:
8
try:
 Lines 13-21    Link Here 
13
		print '# The online repository is disabled and can be enabled with:'
14
		print '# The online repository is disabled and can be enabled with:'
14
		print '#   univention-config-registry set repository/online=true'
15
		print '#   univention-config-registry set repository/online=true'
15
		print ''
16
		print ''
16
except:
17
except Exception:
17
	print '# An error occurred during the repository check. The error message:'
18
	print '# An error occurred during the repository check. The error message:'
18
	print '#   %s: %s' % sys.exc_info()[:2]
19
	for line in traceback.format_exc():
20
		print '#   %s' % line
19
	print '#'
21
	print '#'
20
	print ''
22
	print ''
21
	print '# After fixing this issue, you should rewrite this file with the following command:'
23
	print '# After fixing this issue, you should rewrite this file with the following command:'
(-)univention-updater/conffiles/etc/apt/sources.list.d/20_ucs-online-component.list (-2 / +4 lines)
 Lines 2-7    Link Here 
2
2
3
@!@
3
@!@
4
import sys
4
import sys
5
import traceback
5
from univention.updater import UniventionUpdater
6
from univention.updater import UniventionUpdater
6
7
7
try:
8
try:
 Lines 13-21    Link Here 
13
		print '# The online repository is disabled and can be enabled with:'
14
		print '# The online repository is disabled and can be enabled with:'
14
		print '#   univention-config-registry set repository/online=true'
15
		print '#   univention-config-registry set repository/online=true'
15
		print ''
16
		print ''
16
except:
17
except Exception:
17
	print '# An error occurred during the repository check. The error message:'
18
	print '# An error occurred during the repository check. The error message:'
18
	print '#   %s: %s' % sys.exc_info()[:2]
19
	for line in traceback.format_exc():
20
		print '#   %s' % line
19
	print '#'
21
	print '#'
20
	print ''
22
	print ''
21
	print '# After fixing this issue, you should rewrite this file with the following command:'
23
	print '# After fixing this issue, you should rewrite this file with the following command:'
(-)univention-updater/conffiles/etc/apt/sources.list.d/15_ucs-online-version.list (-2 / +4 lines)
 Lines 2-7    Link Here 
2
2
3
@!@
3
@!@
4
import sys
4
import sys
5
import traceback
5
from univention.updater import UniventionUpdater
6
from univention.updater import UniventionUpdater
6
7
7
try:
8
try:
 Lines 13-21    Link Here 
13
		print '# The online repository is disabled and can be enabled with:'
14
		print '# The online repository is disabled and can be enabled with:'
14
		print '#   univention-config-registry set repository/online=true'
15
		print '#   univention-config-registry set repository/online=true'
15
		print ''
16
		print ''
16
except:
17
except Exception:
17
	print '# An error occurred during the repository check. The error message:'
18
	print '# An error occurred during the repository check. The error message:'
18
	print '#   %s: %s' % sys.exc_info()[:2]
19
	for line in traceback.format_exc():
20
		print '#   %s' % line
19
	print '#'
21
	print '#'
20
	print ''
22
	print ''
21
	print '# After fixing this issue, you should rewrite this file with the following command:'
23
	print '# After fixing this issue, you should rewrite this file with the following command:'
(-)univention-updater/conffiles/etc/apt/mirror.list (-3 / +4 lines)
 Lines 11-17    Link Here 
11
11
12
@!@
12
@!@
13
import sys
13
import sys
14
14
import traceback
15
from univention.updater import UniventionMirror, UCS_Version
15
from univention.updater import UniventionMirror, UCS_Version
16
16
17
try:
17
try:
 Lines 30-38    Link Here 
30
		print mirror.print_version_repositories( clean = True, dists = False, start = start, end = end )
30
		print mirror.print_version_repositories( clean = True, dists = False, start = start, end = end )
31
		print mirror.print_security_repositories( clean = True, start = start, end = end, all_security_updates = True )
31
		print mirror.print_security_repositories( clean = True, start = start, end = end, all_security_updates = True )
32
		print mirror.print_component_repositories(clean=True, start=start, end=end, for_mirror_list=True)
32
		print mirror.print_component_repositories(clean=True, start=start, end=end, for_mirror_list=True)
33
except:
33
except Exception:
34
	print '# An error occurred during the repository check. The error message:'
34
	print '# An error occurred during the repository check. The error message:'
35
	print '#   %s: %s' % sys.exc_info()[:2]
35
	for line in traceback.format_exc():
36
		print '#   %s' % line
36
	print '#'
37
	print '#'
37
	print ''
38
	print ''
38
	print '# After fixing this issue, you should rewrite this file with the following command:'
39
	print '# After fixing this issue, you should rewrite this file with the following command:'

Return to bug 23345