diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2017-06-21 14:53:04 +0200 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2017-06-21 14:53:04 +0200 |
commit | 8d41ebcedb603464affcf3a69215538c83b5affc (patch) | |
tree | 8545fb49e2a39b7f60bf45c266a5453a8b5b13bf /compiler | |
parent | e9975cdbd681e82484fea72d8fffd110a4b463d7 (diff) | |
download | vala-8d41ebcedb603464affcf3a69215538c83b5affc.tar.gz |
compiler: Use API_VERSION instead of stripping PACKAGE_SUFFIX
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/valacompiler.vala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/valacompiler.vala b/compiler/valacompiler.vala index 8a87525c9..1260135b8 100644 --- a/compiler/valacompiler.vala +++ b/compiler/valacompiler.vala @@ -531,7 +531,7 @@ class Vala.Compiler { stdout.printf ("Vala %s\n", Config.BUILD_VERSION); return 0; } else if (api_version) { - stdout.printf ("%s\n", Config.PACKAGE_SUFFIX.substring (1)); + stdout.printf ("%s\n", Config.API_VERSION); return 0; } @@ -614,7 +614,7 @@ class Vala.Compiler { stdout.printf ("Vala %s\n", Config.BUILD_VERSION); return 0; } else if (api_version) { - stdout.printf ("%s\n", Config.PACKAGE_SUFFIX.substring (1)); + stdout.printf ("%s\n", Config.API_VERSION); return 0; } |