Author: jkupec
Date: Tue Sep 9 11:28:23 2008
New Revision: 10966
URL: http://svn.opensuse.org/viewcvs/zypp?rev=10966&view=rev
Log:
- vcmp&tos to docs
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=10966&r1=10965&r2=10966&view=diff
==============================================================================
--- trunk/zypper/doc/zypper.8 (original)
+++ trunk/zypper/doc/zypper.8 Tue Sep 9 11:28:23 2008
@@ -1,4 +1,4 @@
-.TH "zypper" "8" "0.12.1" "zypper" "System Tools"
+.TH "zypper" "8" "0.12.3" "zypper" "System Tools"
.SH "SYNTAX"
.LP
zypper [\fI\-\-global\-options\fR] <\fBcommand\fR> [\fI\-\-command\-options\fR] [\fBcommand-arguments\fR]
@@ -732,7 +732,6 @@
TODO
-
.SS Package Locks Management
Package locks server the purpose of preventing changes to the set of installed
packages on the system. The locks are stored in form of a \fIquery\fR in
@@ -767,6 +766,26 @@
.I \-r, \-\-repo
Restrict the lock to the specified repository.
+
+.SS Other Commands
+
+.TP
+.B versioncmp (vcmp) <version1> <version2>
+Compare the versions supplied as arguments and tell whether version1 is older
+or newer than version2 or the two version strings match.
+
+The default output is in human-friendly form. If \fB--terse\fR global option
+is used, the result is an integer number, negative/positive if version1 is
+older/newer than version2, zero if they match.
+
+.TP
+.B targetos (tos)
+Shows the ID string of the target operating system. The string has a form of
+\fBdistroname-arch\fR. The string is determined by libzypp, the \fBdistroname\fR
+is read from <current-rootdir>/etc/products.d/baseproduct and the architecture
+is determined from uname and CPU flags.
+
+
.SH "GLOBAL OPTIONS"
.TP
Modified: trunk/zypper/src/Zypper.cc
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/zypper/src/Zypper.cc?rev=10966&r1=10965&r2=10966&view=diff
==============================================================================
--- trunk/zypper/src/Zypper.cc (original)
+++ trunk/zypper/src/Zypper.cc Tue Sep 9 11:28:23 2008
@@ -234,6 +234,12 @@
"\tremovelock, rl\t\tRemove a package lock.\n"
"\tlocks, ll\t\tList current package locks.\n"
);
+
+ static string help_other_commands = _("\tOther Commands:\n"
+ "\tversioncmp, vcmp\tCompare two version strings.\n"
+ "\ttargetos, tos\t\tPrint the target operating system ID string.\n"
+ );
+
static string help_usage = _(
" Usage:\n"
"\tzypper [--global-options] <command> [--command-options] [arguments]\n"
@@ -249,6 +255,7 @@
zypper.out().info(help_package_commands, Out::QUIET);
zypper.out().info(help_query_commands, Out::QUIET);
zypper.out().info(help_lock_commands, Out::QUIET);
+ zypper.out().info(help_other_commands, Out::QUIET);
print_command_help_hint(zypper);
}
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org