-------------------------------------------------------------------
-Sat Nov 4 15:15:07 CET 2006 - mvidner@suse.cz
+Sat Nov 4 15:33:46 CET 2006 - mvidner@suse.cz
- Ported zypper (except zypp-checkpatches) to libzypp-1.x.x.
- Show patch messages.
- Callbacks: fixed more warnings about unused variables.
+- Fixed zypper --version.
-------------------------------------------------------------------
Fri Nov 3 17:48:09 CET 2006 - mvidner@suse.cz
// (initially based on dmacvicar's zmart)
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <iostream>
#include <fstream>
#include <sstream>
"\t--rug-compatible, -r\tTurn on rug compatibility\n"
;
- if (gopts.count("version")) {
- cerr << "zypper 0.1" << endl;
- return 0;
- }
-
if (gopts.count("verbose")) {
gSettings.verbose += gopts["verbose"].size();
cerr << "verbosity " << gSettings.verbose << endl;
if (help) {
cerr << help_global_options << help_commands;
}
+ else if (gopts.count("version")) {
+ cerr << PACKAGE_STRING;
+#ifdef LIBZYPP_1xx
+ cerr << " (libzypp-1.x.x)";
+#endif
+ cerr << endl;
+ }
else {
cerr << "Try -h for help" << endl;
}