Author: jkupec Date: Tue Oct 23 14:56:43 2007 New Revision: 7608 URL: http://svn.opensuse.org/viewcvs/zypp?rev=7608&view=rev Log: - docs update Modified: trunk/zypper/doc/zypper.8 trunk/zypper/src/zypper.cc Modified: trunk/zypper/doc/zypper.8 URL: http://svn.opensuse.org/viewcvs/zypp/trunk/zypper/doc/zypper.8?rev=7608&r1=7607&r2=7608&view=diff ============================================================================== --- trunk/zypper/doc/zypper.8 (original) +++ trunk/zypper/doc/zypper.8 Tue Oct 23 14:56:43 2007 @@ -366,6 +366,18 @@ .TP .I \-R, \-\-root <dir> Operates on a different root directory. +.TP +.I \-D, \-\-reposd\-dir <dir> +Use the specified directory to look for the repository definition (*.repo) files. +The default value is /etc/zypp/repos.d. +.TP +.I \-D, \-\-cache\-dir <dir> +Use an alternative directory to look for the repository meta-data cache database file (zypp.db). +The default value is /var/cache/zypp. +.TP +.I \-D, \-\-raw\-cache\-dir <dir> +Use the specified directory for storing raw copies of repository meta-data files. +The default value is /var/cache/zypp/raw. .SH "METADATA REFRESH POLICY" .LP @@ -408,7 +420,11 @@ .SH "FILES" .TP .B /etc/zypp/repos.d -Directory containing repository configuration (*.repo) files. You can use the \fBrepo\fR commands to manipulate these files, or you can edit them yourself. In either case, after doing the modifications, executing \fBzypper refresh\fR is strongly recommended. +Directory containing repository definition (*.repo) files. +You can use the \fBrepo\fR commands to manipulate these files, or you can edit +them yourself. In either case, after doing the modifications, executing +\fBzypper refresh\fR is strongly recommended. +Use the \-\-reposd\-dir global option to use an alternative directory for this purpose. .TP .B /etc/zypp/zypp.conf ZYpp configuration file. @@ -418,9 +434,12 @@ .TP .B /var/cache/zypp/raw Directory for storing raw metadata contained in repositories. +Use the \-\-raw\-cache\-dir global option to use an alternative directory for this purpose. .TP .B /var/cache/zypp/zypp.db Sqlite database file containing pre-parsed metadata of all repositories. +Use the \-\-cache\-dir global option to use an alternative directory +for the zypp.db file. .TP .B ~/.zypper_history Command history for the shell. Modified: trunk/zypper/src/zypper.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/zypper/src/zypper.cc?rev=7608&r1=7607&r2=7608&view=diff ============================================================================== --- trunk/zypper/src/zypper.cc (original) +++ trunk/zypper/src/zypper.cc Tue Oct 23 14:56:43 2007 @@ -82,10 +82,9 @@ {"non-interactive", no_argument, 0, 'n'}, {"no-gpg-checks", no_argument, 0, 0 }, {"root", required_argument, 0, 'R'}, - {"cache-dir", required_argument, 0, 'C'}, {"reposd-dir", required_argument, 0, 'D'}, + {"cache-dir", required_argument, 0, 'C'}, {"raw-cache-dir", required_argument, 0, 0 }, - {"zypp-dirs", required_argument, 0, 'Z'}, {"opt", optional_argument, 0, 'o'}, {"disable-system-resolvables", optional_argument, 0, 'o'}, {0, 0, 0, 0} @@ -106,7 +105,11 @@ "\t--rug-compatible, -r\tTurn on rug compatibility.\n" "\t--non-interactive, -n\tDon't ask anything, use default answers automatically.\n" "\t--no-gpg-checks\t\tIgnore GPG check failures and continue.\n" - "\t--root, -R <dir>\tOperate on a different root directory.\n"); + "\t--root, -R <dir>\tOperate on a different root directory.\n" + "\t--reposd-dir, D <dir>\tUse alternative repository definition files directory.\n" + "\t--cache-dir, C <dir>\tUse alternative meta-data cache database directory.\n" + "\t--raw-cache-dir <dir>\tUse alternative raw meta-data cache directory\n" + ); if (gopts.count("rug-compatible")) gSettings.is_rug_compatible = true; @@ -156,14 +159,14 @@ gSettings.root_dir = gopts["root"].front(); } - if (gopts.count("cache-dir")) { - gSettings.rm_options.repoCachePath = gopts["cache-dir"].front(); - } - if (gopts.count("reposd-dir")) { gSettings.rm_options.knownReposPath = gopts["reposd-dir"].front(); } + if (gopts.count("cache-dir")) { + gSettings.rm_options.repoCachePath = gopts["cache-dir"].front(); + } + if (gopts.count("raw-cache-dir")) { gSettings.rm_options.repoRawCachePath = gopts["raw-cache-dir"].front(); } -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org