Hello, This patch give more detailed explanation for reposync --arch usage.
Cheers, Marcelo Moreira de Mello -- Marcelo Moreira de Mello RHCA RHCSS RHCVA Software Maintenance Engineer/SEG gpg id: 2048R/FDB110E5 gpg fingerprint: 3BE7 EF71 4DD7 6812 D309 8F18 BD42 D095 FDB1 10E5
From: Marcelo Moreira de Mello <[email protected]> Date: Tue, 23 Aug 2011 00:05:50 -0300 Subject: [PATCH] BZ#732593 - Detailed usage for --arch option --- docs/reposync.1 | 6 +++++- reposync.py | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/reposync.1 b/docs/reposync.1 index c1bc818..edc05cc 100644 --- a/docs/reposync.1 +++ b/docs/reposync.1 @@ -14,7 +14,7 @@ Display a help message, and then quit. Config file to use (defaults to /etc/yum.conf). .IP "\fB\-a ARCH, \-\-arch=ARCH\fP" Act as if running the specified arch (default: current arch, note: does -not override $releasever). +not override $releasever. x86_64 is a superset for i*86.). .IP "\fB\-\-source\fP" Also download .src.rpm files. .IP "\fB\-r REPOID, \-\-repoid=REPOID\fP" @@ -28,6 +28,8 @@ Path to download packages to: defaults to current directory. Remove packages that fail GPG signature checking after downloading. .IP "\fB\-u, \-\-urls\fP" Just list urls of what would be downloaded, don't download. +.IP "\fB\-l, \-\-plugins\fP" +Enable yum plugin support. .IP "\fB\-n, \-\-newest-only\fP" Download only newest packages per-repo. .IP "\fB\-q, \-\-quiet\fP" @@ -41,6 +43,8 @@ Output as little information as possible. \fB reposync --repoid=updates --repoid=extras\fP .IP "Sync all packages from the 'updates' repo to the \fBrepos\fP directory:" \fB reposync -p repos --repoid=updates\fP +.IP "Sync all packages from the 'updates' repo to the \fBrepos\fP directory excluding x86_64 arch. Edit \fI/etc/yum.conf\fR adding option \fBexclude=*.x86_64\fR. Then: +\fBreposync -p repos --repoid=updates\fP .SH "FILES" \fBreposync\fP uses the yum libraries for retrieving information and packages. If no configuration file is specified, the default yum diff --git a/reposync.py b/reposync.py index 6aa49cc..aadb072 100755 --- a/reposync.py +++ b/reposync.py @@ -96,7 +96,7 @@ def parseArgs(): parser.add_option("-c", "--config", default='/etc/yum.conf', help='config file to use (defaults to /etc/yum.conf)') parser.add_option("-a", "--arch", default=None, - help='act as if running the specified arch (default: current arch, note: does not override $releasever)') + help='act as if running the specified arch. (default: current arch, note: does not override $releasever. x86_64 is a superset for i*86.)') parser.add_option("--source", default=False, dest="source", action="store_true", help='operate on source packages') parser.add_option("-r", "--repoid", default=[], action='append', -- 1.7.6
_______________________________________________ Yum-devel mailing list [email protected] http://lists.baseurl.org/mailman/listinfo/yum-devel
