summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-03-09 02:42:13 +0000
committerZac Medico <zmedico@gentoo.org>2010-03-09 02:42:13 +0000
commitb3396a7004f6cc7c4bdcbb731503b10f91754a4a (patch)
tree0a4d12506db3028458fa14a3c4237488ac60fea1
parentEscape hyphens. (trunk r15775) (diff)
downloadportage-multirepo-b3396a7004f6cc7c4bdcbb731503b10f91754a4a.tar.gz
portage-multirepo-b3396a7004f6cc7c4bdcbb731503b10f91754a4a.tar.bz2
portage-multirepo-b3396a7004f6cc7c4bdcbb731503b10f91754a4a.zip
Clean up/sync docs for emerge --sync, and add a note about PORTAGE_SYNC_STALE.
(trunk r15776) svn path=/main/branches/2.1.7/; revision=15780
-rw-r--r--man/emerge.125
-rw-r--r--pym/_emerge/help.py37
2 files changed, 45 insertions, 17 deletions
diff --git a/man/emerge.1 b/man/emerge.1
index 496ada83..ce4adb94 100644
--- a/man/emerge.1
+++ b/man/emerge.1
@@ -205,11 +205,26 @@ the package name. \fBTake caution\fR as the descriptions are also
matched as regular expressions.
.TP
.BR \-\-sync
-Initiates a portage tree update with one of the rsync.gentoo.org
-mirrors. \fBNote that any changes you have made to the portage
-tree will be erased\fR. Except for special circumstances,
-this uses \fBrsync\fR to do the update. See \fBmake.conf\fR(5)'s
-description of PORTDIR_OVERLAY for a method to avoid deletions.
+This updates the portage tree that is located in the
+directory that the PORTDIR variable refers to (default
+location is /usr/portage). The SYNC variable specifies
+the remote URI from which files will be synchronized.
+The \fBPORTAGE_SYNC_STALE\fR variable configures
+warnings that are shown when emerge \-\-sync has not
+been executed recently.
+
+\fBWARNING:\fR
+The emerge \-\-sync action will modify and/or delete
+files located inside the directory that the PORTDIR
+variable refers to (default location is /usr/portage).
+For more information, see the PORTDIR documentation in
+the make.conf(5) man page.
+
+\fBNOTE:\fR
+The \fBemerge\-webrsync\fR program will download the entire
+portage tree as a tarball, which is much faster than emerge
+\-\-sync for first time syncs.
+
.TP
.BR "\-\-unmerge " (\fB\-C\fR)
\fBWARNING: This action can remove important packages!\fR Removes
diff --git a/pym/_emerge/help.py b/pym/_emerge/help.py
index 8b08b55f..c138f66d 100644
--- a/pym/_emerge/help.py
+++ b/pym/_emerge/help.py
@@ -195,18 +195,31 @@ def help(myopts, havecolor=1):
print(" emerge -S 'perl.*module'")
print()
print(" "+green("--sync"))
- print(" Tells emerge to update the Portage tree as specified in")
- print(" The SYNC variable found in /etc/make.conf. By default, SYNC instructs")
- print(" emerge to perform an rsync-style update with rsync.gentoo.org.")
- print()
- print(" 'emerge-webrsync' exists as a helper app to emerge --sync, providing a")
- print(" method to receive the entire portage tree as a tarball that can be")
- print(" extracted and used. First time syncs would benefit greatly from this.")
- print()
- print(" "+turquoise("WARNING:"))
- print(" If using our rsync server, emerge will clean out all files that do not")
- print(" exist on it, including ones that you may have created. The exceptions")
- print(" to this are the distfiles, local and packages directories.")
+ desc = "This updates the portage tree that is located in the " + \
+ "directory that the PORTDIR variable refers to (default " + \
+ "location is /usr/portage). The SYNC variable specifies " + \
+ "the remote URI from which files will be synchronized. " + \
+ "The PORTAGE_SYNC_STALE variable configures " + \
+ "warnings that are shown when emerge --sync has not " + \
+ "been executed recently."
+ for line in wrap(desc, desc_width):
+ print(desc_indent + line)
+ print()
+ print(desc_indent + turquoise("WARNING:"))
+ desc = "The emerge --sync action will modify and/or delete " + \
+ "files located inside the directory that the PORTDIR " + \
+ "variable refers to (default location is /usr/portage). " + \
+ "For more information, see the PORTDIR documentation in " + \
+ "the make.conf(5) man page."
+ for line in wrap(desc, desc_width):
+ print(desc_indent + line)
+ print()
+ print(desc_indent + green("NOTE:"))
+ desc = "The emerge-webrsync program will download the entire " + \
+ "portage tree as a tarball, which is much faster than emerge " + \
+ "--sync for first time syncs."
+ for line in wrap(desc, desc_width):
+ print(desc_indent + line)
print()
print(" "+green("--unmerge")+" ("+green("-C")+" short option)")
print(" "+turquoise("WARNING: This action can remove important packages!"))