[PACKAGE_RELEASE=$withval], [PACKAGE_RELEASE=""])
AC_DEFINE_UNQUOTED(
- [PACKAGE_VERSION],
+ [PACKAGE_FULLVERSION],
["$PACKAGE_VERSION$PACKAGE_RELEASE"],
[The package version string])
#include "version.h"
void cli_version(void) {
- printf("%s %s\n", program_invocation_short_name, PACKAGE_VERSION);
+ printf("%s %s\n", program_invocation_short_name, PACKAGE_FULLVERSION);
}
#include "lib/terminal.h"
#include "lib/version.h"
-const char* argp_program_version = PACKAGE_VERSION;
+const char* argp_program_version = PACKAGE_FULLVERSION;
enum {
OPT_ARCH = 1,
#include "lib/repo.h"
#include "lib/upload.h"
-const char* argp_program_version = PACKAGE_VERSION;
+const char* argp_program_version = PACKAGE_FULLVERSION;
static const struct command commands[] = {
{ "build", cli_client_build, 1, -1, 0 },
#include "lib/command.h"
#include "lib/daemon.h"
-const char* argp_program_version = PACKAGE_VERSION;
+const char* argp_program_version = PACKAGE_FULLVERSION;
static const char* doc = "The Pakfire Build Daemon";
#define MAX_REPOS 16
-const char* argp_program_version = PACKAGE_VERSION;
+const char* argp_program_version = PACKAGE_FULLVERSION;
static const char* args_doc =
"install PACKAGES...\n"
goto ERROR;
// Send our version
- r = pakfire_xfer_add_query(xfer, "version", "%s", PACKAGE_VERSION);
+ r = pakfire_xfer_add_query(xfer, "version", "%s", PACKAGE_FULLVERSION);
if (r < 0)
goto ERROR;
return NULL;
// Add the version
- r = PyModule_AddStringConstant(module, "__version__", PACKAGE_VERSION);
+ r = PyModule_AddStringConstant(module, "__version__", PACKAGE_FULLVERSION);
if (r < 0)
goto ERROR;