This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch master
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=d06eaaa3b7a16a3636e278f8f467cb4e5dfab836

The following commit(s) were added to refs/heads/master by this push:
     new d06eaaa3b dpkg: Do not include the architecture with --robot --version
d06eaaa3b is described below

commit d06eaaa3b7a16a3636e278f8f467cb4e5dfab836 (HEAD -> master)
Author: Guillem Jover <[email protected]>
AuthorDate: Sat Jun 27 10:53:47 2020 +0200

    dpkg: Do not include the architecture with --robot --version
    
    Fixes: commit 934741712f54226c26d909f6210e17164cc8936c
---
 debian/changelog | 1 +
 src/main.c       | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 00eba01fe..faf6ba5e7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,6 @@
 dpkg (1.20.2) UNRELEASED; urgency=medium
 
+  * dpkg: Do not include the architecture with --robot --version.
   * Build system:
     - Set SHELL in the test environment.
     - Do not fail if po4a is not found, and search for it just once.
diff --git a/src/main.c b/src/main.c
index 21c882348..3482ed1e2 100644
--- a/src/main.c
+++ b/src/main.c
@@ -59,7 +59,7 @@ static void DPKG_ATTR_NORET
 printversion(const struct cmdinfo *ci, const char *value)
 {
   if (f_robot) {
-    printf("%s", PACKAGE_RELEASE);
+    printf("%s", PACKAGE_VERSION);
   } else {
     printf(_("Debian '%s' package management program version %s.\n"),
            DPKG, PACKAGE_RELEASE);

-- 
Dpkg.Org's dpkg

Reply via email to