Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 184063 Details for
Bug 261381
[PATCH] SYNC_METHOD
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
cleanup some of the action_sync() code
0001-code-cleanup.patch (text/plain), 1.29 KB, created by
Caleb Cushing
on 2009-03-05 22:58:34 UTC
(
hide
)
Description:
cleanup some of the action_sync() code
Filename:
MIME Type:
Creator:
Caleb Cushing
Created:
2009-03-05 22:58:34 UTC
Size:
1.29 KB
patch
obsolete
>diff --git a/main/tags/2.2_rc23/pym/_emerge/__init__.py b/main/tags/2.2_rc23/pym/_emerge/__init__.py >index 04155d6..d974e11 100644 >--- a/main/tags/2.2_rc23/pym/_emerge/__init__.py >+++ b/main/tags/2.2_rc23/pym/_emerge/__init__.py >@@ -12030,8 +12030,16 @@ def show_mask_docs(): > def action_sync(settings, trees, mtimedb, myopts, myaction): > xterm_titles = "notitles" not in settings.features > emergelog(xterm_titles, " === sync") >- myportdir = settings.get("PORTDIR", None) > out = portage.output.EOutput() >+ >+ myportdir = settings.get("PORTDIR", None) >+ syncuri = settings.get("SYNC", "").strip() >+ >+ if not syncuri: >+ writemsg_level("!!! SYNC is undefined. Is /etc/make.globals missing?\n", >+ noiselevel=-1, level=logging.ERROR) >+ return 1 >+ > if not myportdir: > sys.stderr.write("!!! PORTDIR is undefined. Is /etc/make.globals missing?\n") > sys.exit(1) >@@ -12068,11 +12076,6 @@ def action_sync(settings, trees, mtimedb, myopts, myaction): > umask = umask | 0020 > spawn_kwargs["umask"] = umask > >- syncuri = settings.get("SYNC", "").strip() >- if not syncuri: >- writemsg_level("!!! SYNC is undefined. Is /etc/make.globals missing?\n", >- noiselevel=-1, level=logging.ERROR) >- return 1 > > vcs_dirs = frozenset([".git", ".svn", "CVS", ".hg"]) > vcs_dirs = vcs_dirs.intersection(os.listdir(myportdir))
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 261381
: 184063 |
184064