update man-page to document the sync command
This commit is contained in:
parent
de7e9b6a1e
commit
9619657f17
@ -115,6 +115,18 @@ See the \fBEXAMPLES\fP section below for details.
|
||||
.B remove <package1> [<package2> ...]
|
||||
Remove packages listed in this order
|
||||
|
||||
.TP
|
||||
.B sync [\-\-install\-root=<dir>] [collection1 ... collectionN]
|
||||
Reach out to remote servers defined in \fB/etc/ports\fP (or \fB<dir>/etc/ports\fP if
|
||||
\-\-install\-root is given), and bring the local ports collections up to date. The sync
|
||||
command processes all sync files whose suffix matches an executable file in
|
||||
\fB/etc/ports/drivers\fP, unless specific collections are passed as arguments, in which case
|
||||
only those collections are synchronized. If the same collection is listed in \fB/etc/ports\fP
|
||||
with different suffixes, then the matching drivers are called in lexographic order. This
|
||||
feature allows for multi-stage processing, e.g. if you want to apply local patches and then
|
||||
update the manifests. For further details on the ports system and the format of the
|
||||
{httpup,rsync,git} files, see \fBports(8)\fB.
|
||||
|
||||
.TP
|
||||
.B sysup [\-\-softdeps] [\-\-nodeps]
|
||||
Update all installed packages which are outdated. Sorts by hard dependencies
|
||||
|
@ -2340,11 +2340,11 @@ void PrtGet::syncPorts()
|
||||
m_returnValue = PG_GENERAL_ERROR;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (! repo_active) {
|
||||
cerr << *itc << ": not a valid port collection" << endl;
|
||||
}
|
||||
}
|
||||
}
|
||||
} else { // sync all active repositories
|
||||
list<string> activeRepos;
|
||||
size_t pos;
|
||||
|
Loading…
Reference in New Issue
Block a user