That's what original rpm also does by default

Signed-off-by: Ludwig Nussel <[email protected]>
---
 archival/rpm.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/archival/rpm.c b/archival/rpm.c
index a53a3e7bf..3799e3752 100644
--- a/archival/rpm.c
+++ b/archival/rpm.c
@@ -476,7 +476,8 @@ int rpm_main(int argc, char **argv)
 
                        if (!(func & (rpm_query_info|rpm_query_list))) {
                                /* If just a straight query, just give package 
name */
-                               printf("%s-%s-%s\n", rpm_getstr0(TAG_NAME), 
rpm_getstr0(TAG_VERSION), rpm_getstr0(TAG_RELEASE));
+                               printf("%s-%s-%s.%s\n", rpm_getstr0(TAG_NAME), 
rpm_getstr0(TAG_VERSION),
+                                               rpm_getstr0(TAG_RELEASE), 
rpm_getstr0(TAG_ARCH));
                        }
                        if (func & rpm_query_info) {
                                /* Do the nice printout */
-- 
2.36.1

_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to