491fd965c0
* devtree: Add DIMM running speed * spd: Print dimm rank information * Display proper logical name of network device - Drop no longer needed lswh-logical-name-iface.patc OBS-URL: https://build.opensuse.org/package/show/hardware/lshw?expand=0&rev=29
30 lines
1.0 KiB
Diff
30 lines
1.0 KiB
Diff
From 5e58d66598908249f44d349d22efdc4524f0cfcb Mon Sep 17 00:00:00 2001
|
|
From: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
|
|
Date: Mon, 29 Apr 2019 22:39:08 +0530
|
|
Subject: [PATCH] Fix version output
|
|
|
|
Display latest version only when its greater than current version.
|
|
|
|
"lshw -version" tries to get current version from upstream repository.
|
|
If it contains old version then output becomes confusing (as running
|
|
version > latest version).
|
|
|
|
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
|
|
---
|
|
src/lshw.cc | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
Index: lshw-B.02.18+git.20190613/src/lshw.cc
|
|
===================================================================
|
|
--- lshw-B.02.18+git.20190613.orig/src/lshw.cc
|
|
+++ lshw-B.02.18+git.20190613/src/lshw.cc
|
|
@@ -121,7 +121,7 @@ char **argv)
|
|
printf("%s\n", getpackageversion());
|
|
if(latest)
|
|
{
|
|
- if(strcmp(latest, getpackageversion()) != 0)
|
|
+ if(strcmp(latest, getpackageversion()) >= 0)
|
|
fprintf(stderr, _("the latest version is %s\n"), latest);
|
|
}
|
|
exit(0);
|