From 9619657f17c79150368a7e2c629ff6e2b4b77cfc Mon Sep 17 00:00:00 2001 From: John McQuah Date: Mon, 4 Dec 2023 01:04:14 +0000 Subject: [PATCH] update man-page to document the sync command --- doc/prt-get.8 | 12 ++++++++++++ src/prtget.cpp | 4 ++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/doc/prt-get.8 b/doc/prt-get.8 index c66681d..3721089 100644 --- a/doc/prt-get.8 +++ b/doc/prt-get.8 @@ -115,6 +115,18 @@ See the \fBEXAMPLES\fP section below for details. .B remove [ ...] Remove packages listed in this order +.TP +.B sync [\-\-install\-root=] [collection1 ... collectionN] +Reach out to remote servers defined in \fB/etc/ports\fP (or \fB/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 diff --git a/src/prtget.cpp b/src/prtget.cpp index 59c6931..88dc4fe 100644 --- a/src/prtget.cpp +++ b/src/prtget.cpp @@ -2340,9 +2340,9 @@ void PrtGet::syncPorts() m_returnValue = PG_GENERAL_ERROR; } } - if (! repo_active) { + } + if (! repo_active) { cerr << *itc << ": not a valid port collection" << endl; - } } } } else { // sync all active repositories