1 |
commit: e7927bf7b80ac5b2b8cf53a9b6d300f47074a500 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Aug 1 11:18:54 2011 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 1 11:18:54 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=e7927bf7 |
7 |
|
8 |
post_emerge: just return instead of sys.exit() |
9 |
|
10 |
--- |
11 |
pym/_emerge/main.py | 8 +------- |
12 |
1 files changed, 1 insertions(+), 7 deletions(-) |
13 |
|
14 |
diff --git a/pym/_emerge/main.py b/pym/_emerge/main.py |
15 |
index 28431c5..2830214 100644 |
16 |
--- a/pym/_emerge/main.py |
17 |
+++ b/pym/_emerge/main.py |
18 |
@@ -308,7 +308,6 @@ def post_emerge(myaction, myopts, myfiles, |
19 |
Update News Items |
20 |
Commit mtimeDB |
21 |
Display preserved libs warnings |
22 |
- Exit Emerge |
23 |
|
24 |
@param myaction: The action returned from parse_opts() |
25 |
@type myaction: String |
26 |
@@ -324,9 +323,6 @@ def post_emerge(myaction, myopts, myfiles, |
27 |
@type mtimedb: MtimeDB class instance |
28 |
@param retval: Emerge's return value |
29 |
@type retval: Int |
30 |
- @rype: None |
31 |
- @returns: |
32 |
- 1. Calls sys.exit(retval) |
33 |
""" |
34 |
|
35 |
root_config = trees[target_root]["root_config"] |
36 |
@@ -357,7 +353,7 @@ def post_emerge(myaction, myopts, myfiles, |
37 |
if not vardbapi._pkgs_changed: |
38 |
display_news_notification(root_config, myopts) |
39 |
# If vdb state has not changed then there's nothing else to do. |
40 |
- sys.exit(retval) |
41 |
+ return |
42 |
|
43 |
vdb_path = os.path.join(root_config.settings['EROOT'], portage.VDB_PATH) |
44 |
portage.util.ensure_dirs(vdb_path) |
45 |
@@ -396,8 +392,6 @@ def post_emerge(myaction, myopts, myfiles, |
46 |
myaction is None and "@world" in myfiles: |
47 |
show_depclean_suggestion() |
48 |
|
49 |
- sys.exit(retval) |
50 |
- |
51 |
def show_depclean_suggestion(): |
52 |
out = portage.output.EOutput() |
53 |
msg = "After world updates, it is important to remove " + \ |